	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hp_sdc_dequeue_transaction     ## -- Begin function hp_sdc_dequeue_transaction
	.p2align	4, 0x90
_hp_sdc_dequeue_transaction:            ## @hp_sdc_dequeue_transaction
	.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	%rdi, %rbx
	movq	_hp_sdc@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	movq	_HP_SDC_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
LBB0_9:
	testb	$1, %al
	je	LBB0_12
## %bb.10:
	movq	8(%r14), %rax
	cmpq	%rbx, (%rax,%rcx,8)
	jne	LBB0_12
## %bb.11:
	movq	$0, (%rax,%rcx,8)
LBB0_12:
	movq	_hp_sdc@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %edx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	cmpq	%rbx, (%rsi,%rcx,8)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rsi,%rcx,8)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rsi
	cmpq	%rbx, 8(%rsi,%rcx,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 8(%rsi,%rcx,8)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_hp_sdc,16,3                    ## @hp_sdc
	.comm	_HP_SDC_QUEUE_LEN,4,2           ## @HP_SDC_QUEUE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hp_sdc_dequeue_transaction     ; -- Begin function hp_sdc_dequeue_transaction
	.p2align	2
_hp_sdc_dequeue_transaction:            ; @hp_sdc_dequeue_transaction
	.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, x0
Lloh0:
	adrp	x20, _hp_sdc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hp_sdc@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_irqsave
Lloh2:
	adrp	x8, _HP_SDC_QUEUE_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HP_SDC_QUEUE_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	lsl	x9, x9, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	cmp	x9, x8
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #8]
	ldr	x11, [x10, x8]
	cmp	x11, x19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x10, x8]
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x0, _hp_sdc@GOTPAGE
Lloh6:
	ldr	x0, [x0, _hp_sdc@GOTPAGEOFF]
	bl	_write_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_hp_sdc,16,3                    ; @hp_sdc
	.comm	_HP_SDC_QUEUE_LEN,4,2           ; @HP_SDC_QUEUE_LEN
.subsections_via_symbols
