// File: /workspace/github_c_makefile_star2_O1/dlbeer[P]ufat/main.c
// Function: cmd_chattr
static int cmd_chattr(struct ufat *uf, const struct options *opt)
{
	struct ufat_dirent ent;
	int err;
	int i;

	if (!opt->argc) {
		fprintf(stderr, "You must specify a file path\n");
		return -1;
	}

	if (require_file(uf, opt->argv[0], &ent) < 0)
		return -1;

	for (i = 1; i < opt->argc; i++)
		if (parse_attribute(opt->argv[i], &ent) < 0)
			return -1;

	err = ufat_update_attributes(uf, &ent);
	if (err < 0) {
		fprintf(stderr, "ufat_dir_update_attributes: %s\n",
			ufat_strerror(err));
		return -1;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
cmpl $0x0, 0x40(%rsi)
je 0x6109
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rsi), %rax
movq (%rax), %rsi
leaq 0x8(%rsp), %rdx
callq 0x62cd
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
js 0x60f5
movq %rbx, (%rsp)
cmpl $0x2, 0x40(%r14)
jl 0x60e1
movl $0x1, %ebx
leaq 0x50(%rsp), %r13
movq 0x38(%r14), %rax
movq (%rax,%rbx,8), %r15
movzbl (%r15), %eax
cmpl $0x2b, %eax
je 0x5ee7
cmpl $0x7e, %eax
je 0x5ee7
cmpl $0x3d, %eax
jne 0x5f78
incq %r15
xorl %ecx, %ecx
movzbl (%r15), %edx
movl $0x20, %esi
cmpl $0x60, %edx
jg 0x5f0b
cmpl $0x51, %edx
jg 0x5f34
cmpl $0x41, %edx
je 0x5f4e
cmpl $0x48, %edx
je 0x5f1e
jmp 0x5f55
cmpl $0x71, %edx
jg 0x5f25
cmpl $0x61, %edx
je 0x5f4e
cmpl $0x68, %edx
jne 0x606b
movl $0x2, %esi
jmp 0x5f4e
cmpl $0x72, %edx
je 0x5f49
cmpl $0x73, %edx
je 0x5f42
jmp 0x606b
cmpl $0x52, %edx
je 0x5f49
cmpl $0x53, %edx
jne 0x606b
movl $0x4, %esi
jmp 0x5f4e
movl $0x1, %esi
orl %esi, %ecx
incq %r15
jmp 0x5eec
testl %edx, %edx
jne 0x606b
cmpl $0x3d, %eax
je 0x602c
cmpl $0x2b, %eax
jne 0x6032
orl %ecx, 0x34(%rsp)
jmp 0x6038
movl $0x40, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x1080
movb $0x0, 0x8f(%rsp)
movq %r13, %rdi
movl $0x3d, %esi
callq 0x10f0
testq %rax, %rax
je 0x60a6
movq %rax, %r12
incq %r12
movb $0x0, (%rax)
movq %r13, %rdi
leaq 0x1c5e(%rip), %rsi      # 0x7c17
callq 0x1040
testl %eax, %eax
je 0x6057
movq %r13, %rdi
leaq 0x1c53(%rip), %rsi      # 0x7c23
callq 0x1040
testl %eax, %eax
je 0x6061
movq %r13, %rdi
leaq 0x1c48(%rip), %rsi      # 0x7c2f
callq 0x1040
testl %eax, %eax
je 0x6088
movq %r13, %rdi
leaq 0x1c3d(%rip), %rsi      # 0x7c3b
callq 0x1040
testl %eax, %eax
je 0x6097
movq %r13, %rdi
leaq 0x1c32(%rip), %rsi      # 0x7c47
callq 0x1040
testl %eax, %eax
jne 0x60cb
movq %r12, %rdi
leaq 0x40(%rsp), %rsi
jmp 0x6090
movl %ecx, 0x34(%rsp)
jmp 0x6038
notl %ecx
andl %ecx, 0x34(%rsp)
xorl %eax, %eax
testl %eax, %eax
js 0x60f5
incq %rbx
movslq 0x40(%r14), %rax
cmpq %rax, %rbx
jl 0x5ec8
jmp 0x60e1
movq %r12, %rdi
leaq 0x38(%rsp), %rsi
jmp 0x6090
movq %r12, %rdi
leaq 0x3a(%rsp), %rsi
jmp 0x609f
movsbl %dl, %edx
movq 0x4f83(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0x1beb(%rip), %rsi      # 0x7c6a
xorl %eax, %eax
callq 0x1140
jmp 0x60c1
movq %r12, %rdi
leaq 0x3c(%rsp), %rsi
callq 0x63c4
jmp 0x603a
movq %r12, %rdi
leaq 0x3e(%rsp), %rsi
callq 0x64fc
jmp 0x603a
movq 0x4f4b(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0x1b3b(%rip), %rsi      # 0x7bf2
movq %r15, %rdx
xorl %eax, %eax
callq 0x1140
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x603a
movq 0x4f26(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0x1b77(%rip), %rsi      # 0x7c53
movq %r13, %rdx
jmp 0x60ba
leaq 0x8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x447c
xorl %ebp, %ebp
testl %eax, %eax
js 0x6110
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x169f
jmp 0x6117
movl %eax, %edi
callq 0x1679
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x60f5