	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASYNC_pause_job                ## -- Begin function ASYNC_pause_job
	.p2align	4, 0x90
_ASYNC_pause_job:                       ## @ASYNC_pause_job
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_async_get_ctx
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	8(%rax), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	cmpq	$0, 16(%rax)
	jne	LBB0_6
## %bb.3:
	movq	_ASYNC_JOB_PAUSING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	leaq	4(%r14), %rdi
	movl	$1, %ebx
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_async_fibre_swapcontext
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	callq	_async_wait_ctx_reset_counts
	jmp	LBB0_6
LBB0_4:
	movq	_ASYNC_F_ASYNC_PAUSE_JOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASYNC_R_FAILED_TO_SWAP_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASYNCerr
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNC_JOB_PAUSING,4,2          ## @ASYNC_JOB_PAUSING
	.comm	_ASYNC_F_ASYNC_PAUSE_JOB,4,2    ## @ASYNC_F_ASYNC_PAUSE_JOB
	.comm	_ASYNC_R_FAILED_TO_SWAP_CONTEXT,4,2 ## @ASYNC_R_FAILED_TO_SWAP_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASYNC_pause_job                ; -- Begin function ASYNC_pause_job
	.p2align	2
_ASYNC_pause_job:                       ; @ASYNC_pause_job
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_async_get_ctx
	cbz	x0, LBB0_5
; %bb.1:
	mov	x1, x0
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_5
; %bb.2:
	ldr	x8, [x1, #16]
	cbnz	x8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _ASYNC_JOB_PAUSING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASYNC_JOB_PAUSING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	add	x0, x19, #4
	mov	w2, #1
	bl	_async_fibre_swapcontext
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x19]
	bl	_async_wait_ctx_reset_counts
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh3:
	adrp	x8, _ASYNC_F_ASYNC_PAUSE_JOB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASYNC_F_ASYNC_PAUSE_JOB@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ASYNC_R_FAILED_TO_SWAP_CONTEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASYNC_R_FAILED_TO_SWAP_CONTEXT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ASYNCerr
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASYNC_JOB_PAUSING,4,2          ; @ASYNC_JOB_PAUSING
	.comm	_ASYNC_F_ASYNC_PAUSE_JOB,4,2    ; @ASYNC_F_ASYNC_PAUSE_JOB
	.comm	_ASYNC_R_FAILED_TO_SWAP_CONTEXT,4,2 ; @ASYNC_R_FAILED_TO_SWAP_CONTEXT
.subsections_via_symbols
