	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_execute                        ## -- Begin function execute
	.p2align	4, 0x90
_execute:                               ## @execute
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	jne	LBB0_3
## %bb.9:
	xorl	%eax, %eax
	callq	*8(%r14)
	movl	%eax, %edi
	callq	_exit
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_3:
	leaq	-36(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.5:
	movl	-36(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-36(%rbp), %edi
	callq	_WEXITSTATUS
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movq	_PASSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	callq	_printf
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork"

	.comm	_FAILED,4,2                     ## @FAILED
L_.str.1:                               ## @.str.1
	.asciz	"%s %d - %s\n"

	.comm	_PASSED,4,2                     ## @PASSED
L_.str.2:                               ## @.str.2
	.asciz	"ok"

L_.str.3:                               ## @.str.3
	.asciz	"not ok"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_execute                        ; -- Begin function execute
	.p2align	2
_execute:                               ; @execute
	.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	x20, x1
	mov	x19, x0
	bl	_fork
	mov	x21, x0
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbnz	x21, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	blr	x8
	bl	_exit
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x21
	b.ne	LBB0_4
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	mov	x21, x0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
LBB0_8:
Lloh5:
	adrp	x8, _PASSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PASSED@GOTPAGEOFF]
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x10, l_.str.2@PAGE
Lloh11:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w21, w8
	csel	x1, x10, x9, eq
	ldr	x3, [x20]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_printf
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork"

	.comm	_FAILED,4,2                     ; @FAILED
l_.str.1:                               ; @.str.1
	.asciz	"%s %d - %s\n"

	.comm	_PASSED,4,2                     ; @PASSED
l_.str.2:                               ; @.str.2
	.asciz	"ok"

l_.str.3:                               ; @.str.3
	.asciz	"not ok"

.subsections_via_symbols
