	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_pdkill                    ## -- Begin function test_pdkill
	.p2align	4, 0x90
_test_pdkill:                           ## @test_pdkill
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PASSED@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pdfork
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	jne	LBB0_3
## %bb.14:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_handle_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	$3600, %edi                     ## imm = 0xE10
	callq	_sleep
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_3:
	movl	-32(%rbp), %edi
	leaq	-40(%rbp), %rsi
	callq	_pdgetpid
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_FAIL
LBB0_5:
	movl	$100, %edi
	callq	_usleep
	movl	-32(%rbp), %edi
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pdkill
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_FAIL
LBB0_7:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	movq	-40(%rbp), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_8
## %bb.9:
	cmpl	(%r14), %r15d
	jne	LBB0_12
## %bb.10:
	movl	-28(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	-28(%rbp), %edi
	callq	_WEXITSTATUS
	jmp	LBB0_13
LBB0_12:
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PASSED,4,2                     ## @PASSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pdfork"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_handle_signal,4,2              ## @handle_signal
	.comm	_FAILED,4,2                     ## @FAILED
L_.str.1:                               ## @.str.1
	.asciz	"pdgetpid"

L_.str.2:                               ## @.str.2
	.asciz	"pdkill"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_pdkill                    ; -- Begin function test_pdkill
	.p2align	2
_test_pdkill:                           ; @test_pdkill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x19, _PASSED@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PASSED@GOTPAGEOFF]
	ldr	w20, [x19]
	sub	x0, x29, #20
	mov	w1, #0
	bl	_pdfork
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cbnz	w0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _SIGINT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _handle_signal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _handle_signal@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_signal
	mov	w0, #3600
	bl	_sleep
Lloh8:
	adrp	x8, _FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_exit
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
	ldur	w0, [x29, #-20]
	add	x1, sp, #16
	bl	_pdgetpid
	cbz	w0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FAIL
LBB0_6:
	mov	w0, #100
	bl	_usleep
	ldur	w0, [x29, #-20]
Lloh15:
	adrp	x8, _SIGINT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_pdkill
	cbz	w0, LBB0_8
; %bb.7:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FAIL
LBB0_8:
	ldr	x0, [sp, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	mov	x8, x0
	ldr	x0, [sp, #16]
	cmp	x8, x0
	b.ne	LBB0_9
; %bb.10:
	ldr	w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_13
; %bb.11:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x8, _FAILED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PASSED,4,2                     ; @PASSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pdfork"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_handle_signal,4,2              ; @handle_signal
	.comm	_FAILED,4,2                     ; @FAILED
l_.str.1:                               ; @.str.1
	.asciz	"pdgetpid"

l_.str.2:                               ; @.str.2
	.asciz	"pdkill"

.subsections_via_symbols
