	.file	"extr_cmds.c_do_chmod.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"usage: %s mode file-name\n"
.LC1:
	.string	" "
.LC2:
	.string	"(mode and file-name) "
.LC3:
	.string	"SITE CHMOD %s %s"
	.text
	.p2align 4
	.globl	do_chmod
	.type	do_chmod, @function
do_chmod:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	edi, 2
	je	.L7
	jle	.L9
.L4:
	cmp	edi, 3
	je	.L5
.L7:
	mov	rsi, QWORD PTR [rsi]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR code[rip], -1
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rsi]
	mov	rsi, QWORD PTR 8[rsi]
	lea	rdi, .LC3[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	command@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR line[rip]
	lea	rsi, .LC1[rip]
	call	strcat@PLT
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	mov	rbx, QWORD PTR line[rip]
	mov	rdi, rbx
	call	strlen@PLT
	lea	rdi, [rbx+rax*4]
	call	gets@PLT
	xor	eax, eax
	call	makeargv@PLT
	mov	edi, DWORD PTR margc[rip]
	mov	rsi, QWORD PTR margv[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	do_chmod, .-do_chmod
	.comm	stdout,4,4
	.comm	margv,8,8
	.comm	margc,4,4
	.comm	line,8,8
	.comm	code,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmds.c_do_chmod.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usage: %s mode file-name\012\000"
	.align	2
.LC1:
	.ascii	" \000"
	.align	2
.LC2:
	.ascii	"(mode and file-name) \000"
	.align	2
.LC3:
	.ascii	"SITE CHMOD %s %s\000"
	.text
	.align	2
	.global	do_chmod
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_chmod, %function
do_chmod:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #2
	push	{r4, r5, r6, lr}
	beq	.L7
	ble	.L9
.L4:
	cmp	r0, #3
	beq	.L5
.L7:
	ldr	r1, [r1]
	ldr	r0, .L10
	bl	printf
	ldr	r3, .L10+4
	ldr	r0, [r3]
	bl	fflush
	mvn	r2, #0
	ldr	r3, .L10+8
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, .L10+12
	ldmib	r1, {r1, r2}
	pop	{r4, r5, r6, lr}
	b	command
.L9:
	ldr	r4, .L10+16
	ldr	r5, [r4]
	mov	r0, r5
	bl	strlen
	mov	r2, #2
	ldr	r1, .L10+20
	add	r0, r5, r0
	bl	memcpy
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, .L10+4
	ldr	r0, [r3]
	bl	fflush
	ldr	r4, [r4]
	mov	r0, r4
	bl	strlen
	add	r0, r4, r0, lsl #2
	bl	gets
	bl	makeargv
	ldr	r2, .L10+28
	ldr	r3, .L10+32
	ldr	r0, [r2]
	ldr	r1, [r3]
	b	.L4
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	stdout
	.word	code
	.word	.LC3
	.word	line
	.word	.LC1
	.word	.LC2
	.word	margc
	.word	margv
	.size	do_chmod, .-do_chmod
	.comm	stdout,4,4
	.comm	margv,4,4
	.comm	margc,4,4
	.comm	line,4,4
	.comm	code,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
