	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_job_handler                    ## -- Begin function job_handler
	.p2align	4, 0x90
_job_handler:                           ## @job_handler
	.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	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_CLD_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.11:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_stop_received@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	8(%rbx), %edi
	movq	_SIGCONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kill                           ## TAILCALL
LBB0_1:
	movq	_CLD_EXITED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	8(%rbx), %edi
	leaq	-12(%rbp), %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	movl	-12(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movq	_exit_received@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_CLD_CONTINUED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movl	8(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
	movq	_cont_received@GOTPCREL(%rip), %rax
LBB0_9:
	movl	$1, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLD_STOPPED,8,3                ## @CLD_STOPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: stop received\n"

	.comm	_stop_received,4,2              ## @stop_received
	.comm	_SIGCONT,4,2                    ## @SIGCONT
	.comm	_CLD_EXITED,8,3                 ## @CLD_EXITED
L_.str.1:                               ## @.str.1
	.asciz	"%d: exit received\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"!WIFEXITED(status)"

	.comm	_exit_received,4,2              ## @exit_received
	.comm	_CLD_CONTINUED,8,3              ## @CLD_CONTINUED
L_.str.4:                               ## @.str.4
	.asciz	"%d: cont received\n"

	.comm	_cont_received,4,2              ## @cont_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_job_handler                    ; -- Begin function job_handler
	.p2align	2
_job_handler:                           ; @job_handler
	.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	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CLD_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLD_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh5:
	adrp	x8, _stop_received@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stop_received@GOTPAGEOFF]
	mov	w9, #1
Lloh7:
	str	w9, [x8]
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _SIGCONT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGCONT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_kill
LBB0_2:
Lloh11:
	adrp	x9, _CLD_EXITED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CLD_EXITED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [x19, #8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #8]
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbnz	w0, LBB0_7
; %bb.6:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_7:
Lloh20:
	adrp	x8, _exit_received@GOTPAGE
Lloh21:
	ldr	x8, [x8, _exit_received@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x9, _CLD_CONTINUED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CLD_CONTINUED@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	w1, [x19, #8]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh27:
	adrp	x8, _cont_received@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cont_received@GOTPAGEOFF]
LBB0_10:
	mov	w9, #1
	str	w9, [x8]
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CLD_STOPPED,8,3                ; @CLD_STOPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: stop received\n"

	.comm	_stop_received,4,2              ; @stop_received
	.comm	_SIGCONT,4,2                    ; @SIGCONT
	.comm	_CLD_EXITED,8,3                 ; @CLD_EXITED
l_.str.1:                               ; @.str.1
	.asciz	"%d: exit received\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"!WIFEXITED(status)"

	.comm	_exit_received,4,2              ; @exit_received
	.comm	_CLD_CONTINUED,8,3              ; @CLD_CONTINUED
l_.str.4:                               ; @.str.4
	.asciz	"%d: cont received\n"

	.comm	_cont_received,4,2              ; @cont_received
.subsections_via_symbols
