	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_mountprog
_exec_mountprog:                        ## @exec_mountprog
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.2:
	leaq	-28(%rbp), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_waitpid
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	-28(%rbp), %edi
	callq	_WIFEXITED
	movl	-28(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	callq	_WEXITSTATUS
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	-28(%rbp), %edi
	callq	_WEXITSTATUS
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_9
LBB0_7:
	callq	_WIFSIGNALED
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	_sys_siglist@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %edi
	callq	_WTERMSIG
	movl	(%rbx,%rax,4), %edx
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warnx
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	__PATH_SYSPATH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_execvP
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_warn
	cmpb	$47, (%r15)
	je	LBB0_16
## %bb.15:
	movslq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_16:
	movl	$1, %edi
	callq	_exit
LBB0_17:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork"

	.comm	__PATH_SYSPATH,4,2              ## @_PATH_SYSPATH
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"exec %s not found"

L_.str.2:                               ## @.str.2
	.asciz	"in path: %s"

L_.str.3:                               ## @.str.3
	.asciz	"waitpid"

L_.str.4:                               ## @.str.4
	.asciz	"%s: %s"

	.comm	_sys_siglist,8,3                ## @sys_siglist
	.no_dead_strip	_exec_mountprog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_mountprog
_exec_mountprog:                        ; @exec_mountprog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_fork
	cbz	w0, LBB0_11
; %bb.1:
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.2:
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_7
; %bb.4:
	bl	_WEXITSTATUS
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	b	LBB0_9
LBB0_7:
	bl	_WIFSIGNALED
	cbz	w0, LBB0_10
; %bb.8:
Lloh2:
	adrp	x8, _sys_siglist@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sys_siglist@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	ldr	w0, [sp, #12]
	bl	_WTERMSIG
	ldr	w8, [x20, x0, lsl #2]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh7:
	adrp	x19, __PATH_SYSPATH@GOTPAGE
Lloh8:
	ldr	x19, [x19, __PATH_SYSPATH@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_execvP
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ENOENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
	str	x20, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	ldrb	w8, [x20]
	cmp	w8, #47
	b.eq	LBB0_14
; %bb.13:
	ldrsw	x1, [x19]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
LBB0_14:
	mov	w0, #1
	bl	_exit
LBB0_15:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork"

	.comm	__PATH_SYSPATH,4,2              ; @_PATH_SYSPATH
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"exec %s not found"

l_.str.2:                               ; @.str.2
	.asciz	"in path: %s"

l_.str.3:                               ; @.str.3
	.asciz	"waitpid"

l_.str.4:                               ; @.str.4
	.asciz	"%s: %s"

	.comm	_sys_siglist,8,3                ; @sys_siglist
	.no_dead_strip	_exec_mountprog
.subsections_via_symbols
