	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpl	$1, %edi
	je	LBB0_34
## %bb.1:
	xorl	%eax, %eax
	movq	_dirpath@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	movq	(%rbx), %rcx
	movb	$0, 1(%rcx,%rax)
	movq	(%rbx), %rcx
	movb	$0, 2(%rcx,%rax)
	movq	(%rbx), %rcx
	movb	$0, 3(%rcx,%rax)
	addq	$4, %rax
	cmpq	$256, %rax                      ## imm = 0x100
	jne	LBB0_2
## %bb.3:
	movq	8(%r14), %rsi
	movq	(%rbx), %rdi
	callq	_strcpy
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_strlen
	addq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	(%rbx), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
LBB0_7:
	movq	(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %r15
	movq	_O_SYNC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r15), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%eax, %edi
	callq	_close
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	jle	LBB0_20
## %bb.10:
	movq	(%rbx), %rdi
	movl	(%r12), %esi
	orl	(%r15), %esi
	callq	_open
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_sleep
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$16, %edx
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movl	$1, %edi
	callq	_sleep
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$16, %edx
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	movl	$1, %edi
	callq	_sleep
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$16, %edx
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_16:
	movl	$1, %edi
	callq	_sleep
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$16, %edx
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_18:
	movl	$1, %edi
	callq	_sleep
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$16, %edx
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_32
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
LBB0_31:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_32
LBB0_20:
	jne	LBB0_32
## %bb.21:
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	callq	_open
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_sleep
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fchown
	cmpl	$-1, %eax
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_23:
	movl	$1, %edi
	callq	_sleep
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fchown
	cmpl	$-1, %eax
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_25:
	movl	$1, %edi
	callq	_sleep
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fchown
	cmpl	$-1, %eax
	jne	LBB0_27
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_27:
	movl	$1, %edi
	callq	_sleep
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fchown
	cmpl	$-1, %eax
	jne	LBB0_29
## %bb.28:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_29:
	movl	$1, %edi
	callq	_sleep
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fchown
	cmpl	$-1, %eax
	je	LBB0_30
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_35
## %bb.33:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_31
LBB0_34:
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %edi
	callq	_exit
LBB0_8:
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_35:
	callq	___stack_chk_fail
LBB0_5:
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Usage: %s <mount point>\n"

	.comm	_dirpath,8,3                    ## @dirpath
L_.str.2:                               ## @.str.2
	.asciz	"TMP_DIR"

	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.3:                               ## @.str.3
	.asciz	"%s: mkdir(<%s>, 0777) failed: errno (decimal)=%d\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_SYNC,4,2                     ## @O_SYNC
L_.str.4:                               ## @.str.4
	.asciz	"%s: open(<%s>, O_RDONLY|O_SYNC) failed: errno (decimal)=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"readdir failed"

L_.str.6:                               ## @.str.6
	.asciz	"chown failed"

.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	w0, #1
	b.eq	LBB0_31
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x21, _dirpath@GOTPAGE
Lloh4:
	ldr	x21, [x21, _dirpath@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	strb	wzr, [x9, x8]
	add	x8, x8, #1
	cmp	x8, #256
	b.ne	LBB0_2
; %bb.3:
	ldr	x1, [x19, #8]
	ldr	x0, [x21]
	bl	_strcpy
	ldr	x20, [x21]
	mov	x0, x20
	bl	_strlen
	add	x0, x20, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcat
	ldr	x0, [x21]
	mov	w1, #511
	bl	_mkdir
	cbz	w0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _EEXIST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
LBB0_5:
Lloh13:
	adrp	x20, _O_RDONLY@GOTPAGE
Lloh14:
	ldr	x20, [x20, _O_RDONLY@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	w8, [x20]
Lloh15:
	adrp	x22, _O_SYNC@GOTPAGE
Lloh16:
	ldr	x22, [x22, _O_SYNC@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	bl	_open
	tbnz	w0, #31, LBB0_32
; %bb.6:
	bl	_close
	bl	_fork
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.7:
	ldr	x0, [x21]
	ldr	w8, [x20]
	ldr	w9, [x22]
	orr	w1, w9, w8
	bl	_open
	mov	x19, x0
	mov	w0, #1
	bl	_sleep
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #16
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_9:
	mov	w0, #1
	bl	_sleep
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #16
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_11:
	mov	w0, #1
	bl	_sleep
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #16
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_13:
	mov	w0, #1
	bl	_sleep
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #16
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.14:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_15:
	mov	w0, #1
	bl	_sleep
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #16
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_28
; %bb.16:
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_17:
	bl	_printf
	b	LBB0_28
LBB0_18:
	cbnz	x0, LBB0_28
; %bb.19:
	ldr	x0, [x21]
	ldr	w1, [x20]
	bl	_open
	mov	x19, x0
	mov	w0, #1
	bl	_sleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_fchown
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.20:
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_21:
	mov	w0, #1
	bl	_sleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_fchown
	cmn	w0, #1
	b.ne	LBB0_23
; %bb.22:
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_23:
	mov	w0, #1
	bl	_sleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_fchown
	cmn	w0, #1
	b.ne	LBB0_25
; %bb.24:
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_25:
	mov	w0, #1
	bl	_sleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_fchown
	cmn	w0, #1
	b.ne	LBB0_27
; %bb.26:
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_27:
	mov	w0, #1
	bl	_sleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_fchown
	cmn	w0, #1
	b.eq	LBB0_30
LBB0_28:
	ldr	x8, [sp, #40]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.29:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_30:
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_31:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh40:
	adrp	x0, l_.str.1@PAGE
Lloh41:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_35
LBB0_32:
	ldr	x8, [x19]
	ldr	x9, [x21]
Lloh42:
	adrp	x10, _errno@GOTPAGE
Lloh43:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_35
LBB0_33:
	bl	___stack_chk_fail
LBB0_34:
	ldr	x9, [x19]
	ldr	x10, [x21]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh47:
	adrp	x0, l_.str.3@PAGE
Lloh48:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_35:
	bl	_printf
	mov	w0, #-1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Usage: %s <mount point>\n"

	.comm	_dirpath,8,3                    ; @dirpath
l_.str.2:                               ; @.str.2
	.asciz	"TMP_DIR"

	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.3:                               ; @.str.3
	.asciz	"%s: mkdir(<%s>, 0777) failed: errno (decimal)=%d\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_SYNC,4,2                     ; @O_SYNC
l_.str.4:                               ; @.str.4
	.asciz	"%s: open(<%s>, O_RDONLY|O_SYNC) failed: errno (decimal)=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"readdir failed"

l_.str.6:                               ; @.str.6
	.asciz	"chown failed"

.subsections_via_symbols
