	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_wqe_complete_bit
_clear_wqe_complete_bit:                ## @clear_wqe_complete_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_CMDQ_WQE_HEADER
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movq	_BUFDESC_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_CMDQ_WQE_HEADER_GET
	movl	%eax, %edi
	callq	_cmdq_wqe_size_from_bdlen
	movq	_WQE_LCMD_SIZE@GOTPCREL(%rip), %rcx
	leaq	8(%rbx), %rdx
	cmpl	(%rcx), %eax
	cmovneq	%rbx, %rdx
	movq	$0, (%rdx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFDESC_LEN,4,2                ## @BUFDESC_LEN
	.comm	_WQE_LCMD_SIZE,4,2              ## @WQE_LCMD_SIZE
	.no_dead_strip	_clear_wqe_complete_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_wqe_complete_bit
_clear_wqe_complete_bit:                ; @clear_wqe_complete_bit
	.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	x19, x1
	mov	x0, x1
	bl	_CMDQ_WQE_HEADER
	ldr	w0, [x0]
	bl	_be32_to_cpu
Lloh0:
	adrp	x8, _BUFDESC_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFDESC_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_HINIC_CMDQ_WQE_HEADER_GET
	bl	_cmdq_wqe_size_from_bdlen
Lloh3:
	adrp	x8, _WQE_LCMD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WQE_LCMD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x9, x19, #8
	cmp	w0, w8
	csel	x8, x9, x19, eq
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wmb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFDESC_LEN,4,2                ; @BUFDESC_LEN
	.comm	_WQE_LCMD_SIZE,4,2              ; @WQE_LCMD_SIZE
	.no_dead_strip	_clear_wqe_complete_bit
.subsections_via_symbols
