	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_chmod                       ## -- Begin function do_chmod
	.p2align	4, 0x90
_do_chmod:                              ## @do_chmod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$2, %edi
	je	LBB0_4
## %bb.1:
	jg	LBB0_3
## %bb.2:
	movq	_line@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcat
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	(%rbx,%rax,4), %rdi
	callq	_gets
	xorl	%eax, %eax
	callq	_makeargv
	movq	_margc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_margv@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_3:
	cmpl	$3, %edi
	jne	LBB0_4
## %bb.5:
	movq	8(%rsi), %rax
	movq	16(%rsi), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_command                        ## TAILCALL
LBB0_4:
	movq	(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s mode file-name\n"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_code,4,2                       ## @code
	.comm	_line,8,3                       ## @line
L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.asciz	"(mode and file-name) "

	.comm	_margc,4,2                      ## @margc
	.comm	_margv,8,3                      ## @margv
L_.str.3:                               ## @.str.3
	.asciz	"SITE CHMOD %s %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_chmod                       ; -- Begin function do_chmod
	.p2align	2
_do_chmod:                              ; @do_chmod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x1]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x20, _stdout@GOTPAGE
Lloh6:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	b.gt	LBB0_4
; %bb.3:
Lloh7:
	adrp	x19, _line@GOTPAGE
Lloh8:
	ldr	x19, [x19, _line@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcat
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w0, [x20]
	bl	_fflush
	ldr	x19, [x19]
	mov	x0, x19
	bl	_strlen
	add	x0, x19, x0, lsl #2
	bl	_gets
	bl	_makeargv
Lloh13:
	adrp	x8, _margc@GOTPAGE
Lloh14:
	ldr	x8, [x8, _margc@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _margv@GOTPAGE
Lloh17:
	ldr	x8, [x8, _margv@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
LBB0_4:
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.5:
	ldp	x8, x2, [x1, #8]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_command
LBB0_6:
	ldr	x8, [x1]
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w0, [x20]
LBB0_7:
	bl	_fflush
Lloh23:
	adrp	x8, _code@GOTPAGE
Lloh24:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh25:
	str	w9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s mode file-name\n"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_code,4,2                       ; @code
	.comm	_line,8,3                       ; @line
l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.asciz	"(mode and file-name) "

	.comm	_margc,4,2                      ; @margc
	.comm	_margv,8,3                      ; @margv
l_.str.3:                               ; @.str.3
	.asciz	"SITE CHMOD %s %s"

.subsections_via_symbols
