	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_rx_queue_update_write_ptr   ## -- Begin function il_rx_queue_update_write_ptr
	.p2align	4, 0x90
_il_rx_queue_update_write_ptr:          ## @il_rx_queue_update_write_ptr
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rdi), %r12d
	leaq	16(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_S_POWER_PMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_CSR_UCODE_DRV_GP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	__il_rd
	movq	_CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_D_INFO
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_il_set_bit
	jmp	LBB0_5
LBB0_4:
	movl	12(%rbx), %edx
	andl	$-8, %edx
	movl	%edx, 8(%rbx)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_il_wr
	movq	$0, (%rbx)
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_POWER_PMI,4,2                ## @S_POWER_PMI
	.comm	_CSR_UCODE_DRV_GP1,4,2          ## @CSR_UCODE_DRV_GP1
	.comm	_CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP,4,2 ## @CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx queue requesting wakeup, GP1 = 0x%x\n"

	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ,4,2 ## @CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_rx_queue_update_write_ptr   ; -- Begin function il_rx_queue_update_write_ptr
	.p2align	2
_il_rx_queue_update_write_ptr:          ; @il_rx_queue_update_write_ptr
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	w22, [x0, #4]
	add	x19, x1, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _S_POWER_PMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_POWER_PMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _CSR_UCODE_DRV_GP1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	__il_rd
Lloh6:
	adrp	x8, _CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_INFO
Lloh11:
	adrp	x8, _CSR_GP_CNTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_GP_CNTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_il_set_bit
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21, #12]
	and	w2, w8, #0xfffffff8
	str	w2, [x21, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_il_wr
	str	xzr, [x21]
LBB0_5:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_S_POWER_PMI,4,2                ; @S_POWER_PMI
	.comm	_CSR_UCODE_DRV_GP1,4,2          ; @CSR_UCODE_DRV_GP1
	.comm	_CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP,4,2 ; @CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx queue requesting wakeup, GP1 = 0x%x\n"

	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ,4,2 ; @CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ
.subsections_via_symbols
