	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_wqe
_get_wqe:                               ## @get_wqe
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_queue_head
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_wqe_state_posted@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	testq	%r14, %r14
	jne	LBB0_3
LBB0_10:
	movq	_COMPST_EXIT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_COMPST_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_wqe_state_done@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_COMPST_COMP_WQE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_wqe_state_error@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_COMPST_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	_COMPST_CHECK_PSN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wqe_state_posted,8,3           ## @wqe_state_posted
	.comm	_COMPST_DONE,4,2                ## @COMPST_DONE
	.comm	_COMPST_EXIT,4,2                ## @COMPST_EXIT
	.comm	_wqe_state_done,8,3             ## @wqe_state_done
	.comm	_COMPST_COMP_WQE,4,2            ## @COMPST_COMP_WQE
	.comm	_wqe_state_error,8,3            ## @wqe_state_error
	.comm	_COMPST_ERROR,4,2               ## @COMPST_ERROR
	.comm	_COMPST_CHECK_PSN,4,2           ## @COMPST_CHECK_PSN
	.no_dead_strip	_get_wqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_wqe
_get_wqe:                               ; @get_wqe
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x0]
	bl	_queue_head
	str	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _wqe_state_posted@GOTPAGE
Lloh1:
	ldr	x9, [x9, _wqe_state_posted@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _COMPST_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMPST_DONE@GOTPAGEOFF]
LBB0_3:
Lloh5:
	adrp	x9, _COMPST_EXIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COMPST_EXIT@GOTPAGEOFF]
	cmp	x19, #0
	csel	x8, x9, x8, eq
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh7:
	adrp	x9, _wqe_state_done@GOTPAGE
Lloh8:
	ldr	x9, [x9, _wqe_state_done@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _COMPST_COMP_WQE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMPST_COMP_WQE@GOTPAGEOFF]
	b	LBB0_4
LBB0_7:
Lloh12:
	adrp	x9, _wqe_state_error@GOTPAGE
Lloh13:
	ldr	x9, [x9, _wqe_state_error@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _COMPST_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COMPST_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
Lloh17:
	adrp	x8, _COMPST_CHECK_PSN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COMPST_CHECK_PSN@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_wqe_state_posted,8,3           ; @wqe_state_posted
	.comm	_COMPST_DONE,4,2                ; @COMPST_DONE
	.comm	_COMPST_EXIT,4,2                ; @COMPST_EXIT
	.comm	_wqe_state_done,8,3             ; @wqe_state_done
	.comm	_COMPST_COMP_WQE,4,2            ; @COMPST_COMP_WQE
	.comm	_wqe_state_error,8,3            ; @wqe_state_error
	.comm	_COMPST_ERROR,4,2               ; @COMPST_ERROR
	.comm	_COMPST_CHECK_PSN,4,2           ; @COMPST_CHECK_PSN
	.no_dead_strip	_get_wqe
.subsections_via_symbols
