	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	movq	_vflag@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$117, %eax
	jle	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$118, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r14)
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$109, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$112, %eax
	jne	LBB0_5
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_6:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, (%r15,%rbx,8)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_usage
LBB0_8:
	leaq	(%r15,%rbx,8), %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.9:
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_S_IRWXO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	callq	_setmode
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_errx
LBB0_16:
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_S_IRWXO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_getmode
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_free
LBB0_17:
	movq	(%r12), %rdi
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	jne	LBB0_18
LBB0_34:
	movl	%r13d, %edi
	callq	_exit
LBB0_18:
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%rsi, %rdi
	callq	_dirname
	movq	%rax, %rsi
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, %r13d
LBB0_33:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%r12), %rdi
	addq	$8, %r12
	testq	%rdi, %rdi
	je	LBB0_34
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ebx, %esi
	callq	_mkdir
	testq	%rax, %rax
	js	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, %r15d
	cmpl	$0, (%r14)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%ebx, %esi
	callq	_build
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_32
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpl	$1, %r15d
	jne	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r12), %rdi
	movl	%ebx, %esi
	callq	_chmod
	cmpl	$-1, %eax
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r12), %rsi
	jmp	LBB0_31
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rsi
	movq	_ENOTDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m:pv"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_vflag,4,2                      ## @vflag
	.comm	_optind,8,3                     ## @optind
	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IRWXO,4,2                    ## @S_IRWXO
L_.str.1:                               ## @.str.1
	.asciz	"invalid file mode: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	mov	x19, #0
Lloh0:
	adrp	x23, _optarg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
	mov	w26, #1
Lloh2:
	adrp	x24, _vflag@GOTPAGE
Lloh3:
	ldr	x24, [x24, _vflag@GOTPAGEOFF]
	mov	w25, #1
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmp	w0, #117
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #118
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w26, [x24]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #109
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #112
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x23]
	b	LBB0_3
LBB0_10:
Lloh6:
	adrp	x8, _optind@GOTPAGE
Lloh7:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x26, x20, x8, lsl #3
	ldr	x8, [x26]
	cbnz	x8, LBB0_12
; %bb.11:
	bl	_usage
LBB0_12:
	cbnz	x19, LBB0_30
; %bb.13:
Lloh9:
	adrp	x8, _S_IRWXU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_IRWXU@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _S_IRWXG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_IRWXG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _S_IRWXO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _S_IRWXO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	x0, [x26]
	cbz	x0, LBB0_33
LBB0_14:
	mov	w23, #0
Lloh18:
	adrp	x28, _ENOTDIR@GOTPAGE
Lloh19:
	ldr	x28, [x28, _ENOTDIR@GOTPAGEOFF]
Lloh20:
	adrp	x27, _ENOENT@GOTPAGE
Lloh21:
	ldr	x27, [x27, _ENOENT@GOTPAGEOFF]
Lloh22:
	adrp	x21, l_.str.3@PAGE
Lloh23:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh24:
	adrp	x22, l_.str.2@PAGE
Lloh25:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	bl	_warn
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w23, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x26, #8]!
	cbz	x0, LBB0_34
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	tbz	w25, #0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_mkdir
	tbnz	x0, #63, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x24]
	cbz	w8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x26]
	mov	x0, x21
	bl	_printf
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #1
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_build
	cbz	w0, LBB0_16
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	x19, LBB0_17
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x26]
	mov	x1, x20
	bl	_chmod
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x26]
	b	LBB0_15
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x28]
	ldr	x10, [x27]
	ldr	x1, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x1
	bl	_dirname
	mov	x1, x0
	b	LBB0_15
LBB0_30:
	mov	x0, x19
	bl	_setmode
	mov	x21, x0
	cbnz	x0, LBB0_32
; %bb.31:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_32:
Lloh31:
	adrp	x8, _S_IRWXU@GOTPAGE
Lloh32:
	ldr	x8, [x8, _S_IRWXU@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _S_IRWXG@GOTPAGE
Lloh35:
	ldr	x9, [x9, _S_IRWXG@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh37:
	adrp	x9, _S_IRWXO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _S_IRWXO@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_getmode
	mov	x20, x0
	mov	x0, x21
	bl	_free
	ldr	x0, [x26]
	cbnz	x0, LBB0_14
LBB0_33:
	mov	w0, #0
	bl	_exit
LBB0_34:
	mov	x0, x23
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m:pv"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_vflag,4,2                      ; @vflag
	.comm	_optind,8,3                     ; @optind
	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IRWXO,4,2                    ; @S_IRWXO
l_.str.1:                               ; @.str.1
	.asciz	"invalid file mode: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

.subsections_via_symbols
