	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_rxq_inc_wr_ptr
_iwl_pcie_rxq_inc_wr_ptr:               ## @iwl_pcie_rxq_inc_wr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %rdi
	callq	_lockdep_assert_held
	movq	(%r14), %rax
	movq	24(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_3:
	movl	12(%rbx), %edi
	movl	$8, %esi
	callq	_round_down
	movl	%eax, 4(%rbx)
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	movq	_IWL_DEVICE_FAMILY_22560@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.4:
	movq	_HBUS_TARG_WRPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FIRST_RX_QUEUE@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %edx
	addl	(%rcx), %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 8(%rcx)
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	callq	_RFH_Q_FRBDCB_WIDX_TRG
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_1:
	movq	_STATUS_TPOWER_PMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CSR_UCODE_DRV_GP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iwl_read32
	movq	_CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_INFO
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_iwl_set_bit
	movl	$1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_FH_RSCSR_CHNL0_WPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_write32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_TPOWER_PMI,4,2          ## @STATUS_TPOWER_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	_IWL_DEVICE_FAMILY_22560,8,3    ## @IWL_DEVICE_FAMILY_22560
	.comm	_HBUS_TARG_WRPTR,4,2            ## @HBUS_TARG_WRPTR
	.comm	_FIRST_RX_QUEUE,4,2             ## @FIRST_RX_QUEUE
	.comm	_FH_RSCSR_CHNL0_WPTR,4,2        ## @FH_RSCSR_CHNL0_WPTR
	.no_dead_strip	_iwl_pcie_rxq_inc_wr_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_rxq_inc_wr_ptr
_iwl_pcie_rxq_inc_wr_ptr:               ; @iwl_pcie_rxq_inc_wr_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	x20, x1
	mov	x19, x0
	add	x0, x1, #16
	bl	_lockdep_assert_held
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
LBB0_1:
	ldr	w0, [x20, #12]
	mov	w1, #8
	bl	_round_down
	mov	x2, x0
	str	w0, [x20, #4]
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _IWL_DEVICE_FAMILY_22560@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IWL_DEVICE_FAMILY_22560@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _HBUS_TARG_WRPTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HBUS_TARG_WRPTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _FIRST_RX_QUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIRST_RX_QUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	add	w8, w9, w8
	orr	w2, w2, w8, lsl #16
	b	LBB0_9
LBB0_3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_RFH_Q_FRBDCB_WIDX_TRG
	mov	x1, x0
	ldr	w2, [x20, #4]
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _STATUS_TPOWER_PMI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATUS_TPOWER_PMI@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_1
; %bb.6:
Lloh12:
	adrp	x8, _CSR_UCODE_DRV_GP1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_read32
Lloh15:
	adrp	x8, _CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.7:
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
Lloh20:
	adrp	x8, _CSR_GP_CNTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CSR_GP_CNTRL@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_set_bit
	mov	w8, #1
	str	w8, [x20]
	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
LBB0_8:
Lloh23:
	adrp	x8, _FH_RSCSR_CHNL0_WPTR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FH_RSCSR_CHNL0_WPTR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
LBB0_9:
	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	_iwl_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_TPOWER_PMI,4,2          ; @STATUS_TPOWER_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	_IWL_DEVICE_FAMILY_22560,8,3    ; @IWL_DEVICE_FAMILY_22560
	.comm	_HBUS_TARG_WRPTR,4,2            ; @HBUS_TARG_WRPTR
	.comm	_FIRST_RX_QUEUE,4,2             ; @FIRST_RX_QUEUE
	.comm	_FH_RSCSR_CHNL0_WPTR,4,2        ; @FH_RSCSR_CHNL0_WPTR
	.no_dead_strip	_iwl_pcie_rxq_inc_wr_ptr
.subsections_via_symbols
