	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opal_init_async_tokens         ## -- Begin function opal_init_async_tokens
	.p2align	4, 0x90
_opal_init_async_tokens:                ## @opal_init_async_tokens
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_async_token_pool@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	%edi, %ebx
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	movq	_M_FIRSTFIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	(%r12), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_vmem_create
	movq	%rax, (%r15)
	shll	$2, %ebx
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movl	%ebx, %edi
	callq	_malloc
	movq	_completions@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_OPAL_ASYNC_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_opal_handle_async_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EVENTHANDLER_PRI_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_EVENTHANDLER_REGISTER
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_async_token_pool,8,3           ## @async_token_pool
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OPAL Async"

	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_FIRSTFIT,4,2                 ## @M_FIRSTFIT
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_completions,4,2                ## @completions
	.comm	_OPAL_ASYNC_COMP,4,2            ## @OPAL_ASYNC_COMP
	.comm	_opal_handle_async_completion,4,2 ## @opal_handle_async_completion
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ## @EVENTHANDLER_PRI_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opal_init_async_tokens         ; -- Begin function opal_init_async_tokens
	.p2align	2
_opal_init_async_tokens:                ; @opal_init_async_tokens
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _async_token_pool@GOTPAGE
Lloh1:
	ldr	x20, [x20, _async_token_pool@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x21, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _M_WAITOK@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _M_FIRSTFIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _M_FIRSTFIT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w5, w9, w8
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	x2, x19
	mov	w3, #1
	mov	w4, #1
	bl	_vmem_create
	str	x0, [x20]
	lsl	w0, w19, #2
Lloh12:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
Lloh18:
	adrp	x8, _completions@GOTPAGE
Lloh19:
	ldr	x8, [x8, _completions@GOTPAGEOFF]
Lloh20:
	str	w0, [x8]
Lloh21:
	adrp	x8, _OPAL_ASYNC_COMP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OPAL_ASYNC_COMP@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _opal_handle_async_completion@GOTPAGE
Lloh25:
	ldr	x8, [x8, _opal_handle_async_completion@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _EVENTHANDLER_PRI_ANY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EVENTHANDLER_PRI_ANY@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x2, #0
	bl	_EVENTHANDLER_REGISTER
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_async_token_pool,8,3           ; @async_token_pool
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OPAL Async"

	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_FIRSTFIT,4,2                 ; @M_FIRSTFIT
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_completions,4,2                ; @completions
	.comm	_OPAL_ASYNC_COMP,4,2            ; @OPAL_ASYNC_COMP
	.comm	_opal_handle_async_completion,4,2 ; @opal_handle_async_completion
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ; @EVENTHANDLER_PRI_ANY
.subsections_via_symbols
