	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clone_func
_clone_func:                            ## @clone_func
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rdx
	movq	%rdi, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %r14
	movq	%r14, %rsi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_getppid
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rcx, %rbx
	jne	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_getpid
	movq	%rax, %rcx
	movl	$2, %eax
	cmpq	%rcx, %rbx
	je	LBB0_4
## %bb.2:
	movq	-24(%rbp), %rcx
	movq	8(%rcx), %rax
	subq	%r14, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovsq	%rax, %rdx
	movl	$3, %eax
	cmpq	$1024, %rdx                     ## imm = 0x400
	ja	LBB0_4
## %bb.3:
	movq	_FROBVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	movq	_CHILDEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child: stack ~= %p, frobme = %p\n"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_FROBVAL,8,3                    ## @FROBVAL
	.comm	_CHILDEXIT,4,2                  ## @CHILDEXIT
	.no_dead_strip	_clone_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clone_func
_clone_func:                            ; @clone_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_printf
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_fflush
	ldr	x8, [sp, #8]
	ldr	x19, [x8]
	bl	_getppid
	cmp	x19, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x19, [x8]
	bl	_getpid
	cmp	x19, x0
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #2
	b	LBB0_7
LBB0_3:
	mov	w0, #1
	b	LBB0_7
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #8]
	add	x10, sp, #8
	subs	x9, x9, x10
	cneg	x9, x9, mi
	cmp	x9, #1024
	b.ls	LBB0_6
; %bb.5:
	mov	w0, #3
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x9, _FROBVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FROBVAL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x9, [x8, #8]
Lloh8:
	adrp	x8, _CHILDEXIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHILDEXIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child: stack ~= %p, frobme = %p\n"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_FROBVAL,8,3                    ; @FROBVAL
	.comm	_CHILDEXIT,4,2                  ; @CHILDEXIT
	.no_dead_strip	_clone_func
.subsections_via_symbols
