	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_killjob                        ## -- Begin function killjob
	.p2align	4, 0x90
_killjob:                               ## @killjob
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_getjob
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_JOBDONE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.1:
	cmpq	$0, 24(%r13)
	je	LBB0_3
## %bb.2:
	movq	16(%r13), %rax
	xorl	%edi, %edi
	subl	4(%rax), %edi
	movl	%r14d, %esi
	callq	_kill
	movq	%rax, %r15
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, 8(%r13)
	jle	LBB0_4
## %bb.5:
	movl	$-1, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r13), %rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rax,%rbx,8), %edi
	movl	%r14d, %esi
	callq	_kill
	testq	%rax, %rax
	cmovel	%r12d, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,8), %edi
	cmpl	$-1, %edi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_WIFSTOPPED
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_4:
	movl	$-1, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_JOBDONE,8,3                    ## @JOBDONE
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_killjob                        ; -- Begin function killjob
	.p2align	2
_killjob:                               ; @killjob
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_getjob
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _JOBDONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _JOBDONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #4]
	neg	w0, w8
	mov	x1, x19
	bl	_kill
	mov	x21, x0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #-1
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, x22
	ldr	w0, [x8, #4]
	mov	x1, x19
	bl	_kill
	cmp	x0, #0
	csel	w21, wzr, w21, eq
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #8]
	add	x22, x22, #8
	cmp	x23, x8
	b.ge	LBB0_4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x22]
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_WIFSTOPPED
	cbnz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w21, #0
	b	LBB0_9
LBB0_13:
	mov	w21, #-1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_JOBDONE,8,3                    ; @JOBDONE
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
