	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Job_TokenWithdraw              ## -- Begin function Job_TokenWithdraw
	.p2align	4, 0x90
_Job_TokenWithdraw:                     ## @Job_TokenWithdraw
	.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
	movq	_wantToken@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_JOB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	movq	_aborting@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_jobTokensRunning@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_aborting@GOTPCREL(%rip), %rax
	movq	_FALSE@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rax)
	jne	LBB0_32
## %bb.3:
	movq	_jobTokensRunning@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_maxJobs@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_32
## %bb.4:
	movq	_tokenWaitJob@GOTPCREL(%rip), %r13
	movl	4(%r13), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	jns	LBB0_12
## %bb.7:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_10
## %bb.9:
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Fatal
LBB0_10:
	movl	(%r15), %edi
	callq	_DEBUG
	movq	_FALSE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_32
## %bb.11:
	leaq	L_.str.3(%rip), %r14
	jmp	LBB0_31
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_Fatal
	jmp	LBB0_28
LBB0_12:
	cmpl	$1, %eax
	sete	%cl
	jne	LBB0_22
## %bb.13:
	movb	-41(%rbp), %bl
	cmpb	$43, %bl
	je	LBB0_22
## %bb.14:
	movl	(%r15), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movsbl	%bl, %r14d
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	leaq	-42(%rbp), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	je	LBB0_17
## %bb.18:
	leaq	-41(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r12), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_19
LBB0_21:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_Fatal
	movb	$1, %cl
	movq	_jobTokensRunning@GOTPCREL(%rip), %r14
LBB0_22:
	movl	(%r14), %eax
	testb	%cl, %cl
	je	LBB0_29
## %bb.23:
	testl	%eax, %eax
	jne	LBB0_29
## %bb.24:
	leaq	-41(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rbx), %rax
	cmpq	%rax, (%r12)
	je	LBB0_25
LBB0_27:
	movq	_jobTokensRunning@GOTPCREL(%rip), %r14
LBB0_28:
	movl	(%r14), %eax
LBB0_29:
	incl	%eax
	movl	%eax, (%r14)
	movl	(%r15), %edi
	callq	_DEBUG
	movq	_TRUE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_32
## %bb.30:
	leaq	L_.str.6(%rip), %r14
LBB0_31:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_getpid
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_32:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wantToken,8,3                  ## @wantToken
	.comm	_JOB,4,2                        ## @JOB
	.comm	_debug_file,4,2                 ## @debug_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Job_TokenWithdraw(%d): aborting %d, running %d\n"

	.comm	_aborting,4,2                   ## @aborting
	.comm	_jobTokensRunning,4,2           ## @jobTokensRunning
	.comm	_maxJobs,4,2                    ## @maxJobs
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_tokenWaitJob,8,2               ## @tokenWaitJob
L_.str.1:                               ## @.str.1
	.asciz	"eof on job pipe!"

	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"job pipe read: %s"

L_.str.3:                               ## @.str.3
	.asciz	"(%d) blocked for token\n"

L_.str.4:                               ## @.str.4
	.asciz	"(%d) aborted by token %c\n"

L_.str.5:                               ## @.str.5
	.asciz	"A failure has been detected in another branch of the parallel make"

L_.str.6:                               ## @.str.6
	.asciz	"(%d) withdrew token\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Job_TokenWithdraw              ; -- Begin function Job_TokenWithdraw
	.p2align	2
_Job_TokenWithdraw:                     ; @Job_TokenWithdraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _wantToken@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wantToken@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x20, _JOB@GOTPAGE
Lloh4:
	ldr	x20, [x20, _JOB@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_DEBUG
Lloh5:
	adrp	x22, _aborting@GOTPAGE
Lloh6:
	ldr	x22, [x22, _aborting@GOTPAGEOFF]
Lloh7:
	adrp	x21, _jobTokensRunning@GOTPAGE
Lloh8:
	ldr	x21, [x21, _jobTokensRunning@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _debug_file@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	bl	_getpid
	mov	x2, x0
	ldr	w8, [x22]
	ldr	w9, [x21]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_2:
	ldr	w8, [x22]
	cbnz	w8, LBB0_11
; %bb.3:
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _maxJobs@GOTPAGE
Lloh15:
	ldr	x9, [x9, _maxJobs@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.4:
Lloh17:
	adrp	x22, _tokenWaitJob@GOTPAGE
Lloh18:
	ldr	x22, [x22, _tokenWaitJob@GOTPAGEOFF]
	ldr	w0, [x22, #4]
	add	x1, sp, #31
	mov	w2, #1
	bl	_read
	cbz	w0, LBB0_13
; %bb.5:
	tbz	w0, #31, LBB0_14
; %bb.6:
	ldr	w8, [x21]
	cbz	w8, LBB0_14
; %bb.7:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
Lloh22:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Fatal
LBB0_9:
	ldr	w0, [x20]
	bl	_DEBUG
Lloh27:
	adrp	x21, _FALSE@GOTPAGE
Lloh28:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.10:
Lloh29:
	adrp	x19, l_.str.3@PAGE
Lloh30:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_29
LBB0_11:
Lloh31:
	adrp	x21, _FALSE@GOTPAGE
Lloh32:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Fatal
	b	LBB0_26
LBB0_14:
	cmp	w0, #1
	cset	w8, eq
	b.ne	LBB0_22
; %bb.15:
	ldrb	w19, [sp, #31]
	cmp	w19, #43
	b.eq	LBB0_22
; %bb.16:
	ldr	w0, [x20]
	bl	_DEBUG
	cbz	x0, LBB0_18
; %bb.17:
	sxtb	w23, w19
Lloh35:
	adrp	x8, _debug_file@GOTPAGE
Lloh36:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh37:
	ldr	w19, [x8]
	bl	_getpid
	mov	x2, x0
	str	x23, [sp]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #4]
	add	x1, sp, #30
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_18
; %bb.19:
Lloh40:
	adrp	x19, _errno@GOTPAGE
Lloh41:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
Lloh42:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh43:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x1, sp, #31
	mov	w2, #1
	bl	_write
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_20
; %bb.21:
Lloh44:
	adrp	x0, l_.str.5@PAGE
Lloh45:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Fatal
	mov	w8, #1
LBB0_22:
	ldr	w9, [x21]
	cbz	w8, LBB0_27
; %bb.23:
	cbnz	w9, LBB0_27
; %bb.24:
Lloh46:
	adrp	x19, _errno@GOTPAGE
Lloh47:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
Lloh48:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh49:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x1, sp, #31
	mov	w2, #1
	bl	_write
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_25
LBB0_26:
	ldr	w9, [x21]
LBB0_27:
	add	w8, w9, #1
	str	w8, [x21]
	ldr	w0, [x20]
	bl	_DEBUG
Lloh50:
	adrp	x21, _TRUE@GOTPAGE
Lloh51:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.28:
Lloh52:
	adrp	x19, l_.str.6@PAGE
Lloh53:
	add	x19, x19, l_.str.6@PAGEOFF
LBB0_29:
Lloh54:
	adrp	x8, _debug_file@GOTPAGE
Lloh55:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh56:
	ldr	w20, [x8]
	bl	_getpid
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_fprintf
	b	LBB0_12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_wantToken,8,3                  ; @wantToken
	.comm	_JOB,4,2                        ; @JOB
	.comm	_debug_file,4,2                 ; @debug_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Job_TokenWithdraw(%d): aborting %d, running %d\n"

	.comm	_aborting,4,2                   ; @aborting
	.comm	_jobTokensRunning,4,2           ; @jobTokensRunning
	.comm	_maxJobs,4,2                    ; @maxJobs
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_tokenWaitJob,8,2               ; @tokenWaitJob
l_.str.1:                               ; @.str.1
	.asciz	"eof on job pipe!"

	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"job pipe read: %s"

l_.str.3:                               ; @.str.3
	.asciz	"(%d) blocked for token\n"

l_.str.4:                               ; @.str.4
	.asciz	"(%d) aborted by token %c\n"

l_.str.5:                               ; @.str.5
	.asciz	"A failure has been detected in another branch of the parallel make"

l_.str.6:                               ; @.str.6
	.asciz	"(%d) withdrew token\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
