	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function JobTokenAdd
_JobTokenAdd:                           ## @JobTokenAdd
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_JOB_TOKENS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_aborting@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movb	(%rcx,%rax), %r15b
	movb	%r15b, -33(%rbp)
	movq	_Job_error_token@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_ABORT_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_jobTokensRunning@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.3:
	movb	$43, -33(%rbp)
	movb	$43, %r12b
	jmp	LBB0_8
LBB0_4:
	movb	$43, %r12b
	cmpb	$43, %r15b
	je	LBB0_8
## %bb.5:
	movq	_tokenWaitJob@GOTPCREL(%rip), %r12
	leaq	-34(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	je	LBB0_6
## %bb.7:
	movl	%r15d, %r12d
LBB0_8:
	movq	_JOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	movq	(%r14), %rcx
	movsbl	%r12b, %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_fprintf
LBB0_10:
	movq	_tokenWaitJob@GOTPCREL(%rip), %r14
	leaq	-33(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rax
	cmpq	%rax, (%r12)
	je	LBB0_11
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JOB_TOKENS,8,3                 ## @JOB_TOKENS
	.comm	_aborting,8,3                   ## @aborting
	.comm	_Job_error_token,4,2            ## @Job_error_token
	.comm	_ABORT_ERROR,8,3                ## @ABORT_ERROR
	.comm	_jobTokensRunning,8,3           ## @jobTokensRunning
	.comm	_tokenWaitJob,8,2               ## @tokenWaitJob
	.comm	_JOB,4,2                        ## @JOB
	.comm	_debug_file,4,2                 ## @debug_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) aborting %d, deposit token %c\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.no_dead_strip	_JobTokenAdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function JobTokenAdd
_JobTokenAdd:                           ; @JobTokenAdd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _JOB_TOKENS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JOB_TOKENS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _aborting@GOTPAGE
Lloh4:
	ldr	x21, [x21, _aborting@GOTPAGEOFF]
	ldr	x9, [x21]
	ldrb	w22, [x8, x9]
	strb	w22, [sp, #15]
Lloh5:
	adrp	x8, _Job_error_token@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Job_error_token@GOTPAGEOFF]
Lloh7:
	adrp	x10, _ABORT_ERROR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ABORT_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	x10, [x10]
	cmp	w8, #0
	ccmp	x9, x10, #0, eq
Lloh11:
	adrp	x20, _tokenWaitJob@GOTPAGE
Lloh12:
	ldr	x20, [x20, _tokenWaitJob@GOTPAGEOFF]
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #43
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	add	x1, sp, #14
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_2
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _jobTokensRunning@GOTPAGE
Lloh14:
	ldr	x8, [x8, _jobTokensRunning@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
	mov	w22, #43
	strb	w22, [sp, #15]
LBB0_5:
Lloh16:
	adrp	x8, _JOB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _JOB@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_DEBUG
	cbz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _debug_file@GOTPAGE
Lloh20:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	bl	_getpid
	mov	x2, x0
	ldr	x3, [x21]
	sxtb	w4, w22
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_7:
Lloh24:
	adrp	x19, _errno@GOTPAGE
Lloh25:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
Lloh26:
	adrp	x21, _EAGAIN@GOTPAGE
Lloh27:
	ldr	x21, [x21, _EAGAIN@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x1, sp, #15
	mov	w2, #1
	bl	_write
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_8
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_JOB_TOKENS,8,3                 ; @JOB_TOKENS
	.comm	_aborting,8,3                   ; @aborting
	.comm	_Job_error_token,4,2            ; @Job_error_token
	.comm	_ABORT_ERROR,8,3                ; @ABORT_ERROR
	.comm	_jobTokensRunning,8,3           ; @jobTokensRunning
	.comm	_tokenWaitJob,8,2               ; @tokenWaitJob
	.comm	_JOB,4,2                        ; @JOB
	.comm	_debug_file,4,2                 ; @debug_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) aborting %d, deposit token %c\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.no_dead_strip	_JobTokenAdd
.subsections_via_symbols
