	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kill_child                     ## -- Begin function kill_child
	.p2align	4, 0x90
_kill_child:                            ## @kill_child
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_child@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_5
## %bb.1:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	callq	_killpg
	movq	(%rbx), %rdi
LBB0_4:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_killpg
	movq	(%rbx), %rdi
	leaq	-12(%rbp), %rsi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%eax, %eax
	callq	_cleanup
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_child,24,3                     ## @child
	.comm	_SIGTERM,8,3                    ## @SIGTERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kill_child                     ; -- Begin function kill_child
	.p2align	2
_kill_child:                            ; @kill_child
	.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
Lloh0:
	adrp	x19, _child@GOTPAGE
Lloh1:
	ldr	x19, [x19, _child@GOTPAGEOFF]
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
	ldp	x1, x8, [x19, #8]
	cmp	x1, #1
	ccmp	x8, #0, #4, ge
	b.eq	LBB0_3
; %bb.2:
	bl	_killpg
	ldr	x0, [x19]
LBB0_3:
Lloh2:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	bl	_killpg
	ldr	x0, [x19]
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	bl	_cleanup
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_child,24,3                     ; @child
	.comm	_SIGTERM,8,3                    ; @SIGTERM
.subsections_via_symbols
