	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function killchild
_killchild:                             ## @killchild
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_do_cmd_pid@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	cmpl	$2, %edi
	jl	LBB0_4
## %bb.1:
	movl	%ebx, %esi
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	callq	_kill
	movl	(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
LBB0_4:
	movl	$1, %edi
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.6:
	callq	_exit
LBB0_5:
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_do_cmd_pid,4,2                 ## @do_cmd_pid
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.no_dead_strip	_killchild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function killchild
_killchild:                             ; @killchild
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _do_cmd_pid@GOTPAGE
Lloh1:
	ldr	x20, [x20, _do_cmd_pid@GOTPAGEOFF]
	ldr	w0, [x20]
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w1, w8, w19, eq
	bl	_kill
	ldr	w0, [x20]
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
LBB0_2:
	mov	w0, #1
	cbnz	w19, LBB0_4
; %bb.3:
	bl	_exit
LBB0_4:
	bl	__exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_do_cmd_pid,4,2                 ; @do_cmd_pid
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.no_dead_strip	_killchild
.subsections_via_symbols
