	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_exec                        ## -- Begin function os_exec
	.p2align	4, 0x90
_os_exec:                               ## @os_exec
	.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
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	je	LBB0_3
## %bb.6:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.8:
	leaq	-288(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_waitpid
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
LBB0_5:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_3:
	leaq	-288(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_os_exec.cold.1
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function os_exec.cold.1
_os_exec.cold.1:                        ## @os_exec.cold.1
	.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	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_os_strdup
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_os_strdup
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, (%rbx)
	testq	%rax, %rax
	je	LBB1_1
## %bb.7:
	pushq	$1
	popq	%r14
	pushq	$32
	popq	%r13
	movq	%r15, %rdi
LBB1_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB1_5 Depth 2
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB1_9
LBB1_5:                                 ##   Parent Loop BB1_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, %al
	jne	LBB1_6
## %bb.4:                               ##   in Loop: Header=BB1_5 Depth=2
	movb	1(%rdi), %al
	incq	%rdi
	jmp	LBB1_5
LBB1_6:                                 ##   in Loop: Header=BB1_8 Depth=1
	testb	%al, %al
	je	LBB1_9
## %bb.2:                               ##   in Loop: Header=BB1_8 Depth=1
	leaq	1(%r14), %r12
	movq	%rdi, (%rbx,%r14,8)
	movl	%r13d, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB1_10
## %bb.3:                               ##   in Loop: Header=BB1_8 Depth=1
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	cmpq	$29, %r14
	movq	%r12, %r14
	jb	LBB1_8
	jmp	LBB1_10
LBB1_9:
	movq	%r14, %r12
LBB1_10:
	movl	%r12d, %eax
	andq	$0, (%rbx,%rax,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_execv
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	movq	%r15, %rdi
	callq	_os_free
	xorl	%edi, %edi
	callq	_exit
LBB1_1:
	pushq	$1
	popq	%r12
	jmp	LBB1_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork"

L_.str.1:                               ## @.str.1
	.asciz	"execv"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_exec                        ; -- Begin function os_exec
	.p2align	2
_os_exec:                               ; @os_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_fork
	tbnz	x0, #63, LBB0_7
; %bb.1:
	cbz	x0, LBB0_9
; %bb.2:
	cbz	w21, LBB0_4
; %bb.3:
	mov	x1, sp
	mov	w2, #0
	bl	_waitpid
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #-1
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
LBB0_9:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	_os_exec.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function os_exec.cold.1
_os_exec.cold.1:                        ; @os_exec.cold.1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_os_strdup
	mov	x19, x0
	mov	x0, x20
	bl	_os_strdup
	mov	x20, x0
	str	x19, [x21]
	cbz	x0, LBB1_10
; %bb.1:
	mov	w23, #1
	mov	x0, x20
LBB1_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_3 Depth 2
	ldrb	w8, [x0]
	cbz	w8, LBB1_8
LBB1_3:                                 ;   Parent Loop BB1_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #32
	b.ne	LBB1_5
; %bb.4:                                ;   in Loop: Header=BB1_3 Depth=2
	ldrb	w8, [x0, #1]!
	b	LBB1_3
LBB1_5:                                 ;   in Loop: Header=BB1_2 Depth=1
	cbz	w8, LBB1_8
; %bb.6:                                ;   in Loop: Header=BB1_2 Depth=1
	add	x24, x23, #1
	str	x0, [x21, x23, lsl #3]
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB1_9
; %bb.7:                                ;   in Loop: Header=BB1_2 Depth=1
	strb	wzr, [x0], #1
	cmp	x23, #29
	mov	x23, x24
	b.lo	LBB1_2
	b	LBB1_9
LBB1_8:
	mov	x24, x23
LBB1_9:
	str	xzr, [x21, w24, uxtw #3]
	mov	x0, x22
	mov	x1, x21
	bl	_execv
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	x0, x19
	bl	_os_free
	mov	x0, x20
	bl	_os_free
	mov	w0, #0
	bl	_exit
LBB1_10:
	mov	w24, #1
	b	LBB1_9
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork"

l_.str.1:                               ; @.str.1
	.asciz	"execv"

.subsections_via_symbols
