	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_txq_inc_wr_ptr
_iwl_pcie_txq_inc_wr_ptr:               ## @iwl_pcie_txq_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r12
	movl	(%rbx), %r15d
	leaq	16(%rbx), %rdi
	callq	_lockdep_assert_held
	movq	(%r14), %rax
	movq	8(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.1:
	cmpl	(%r12), %r15d
	je	LBB0_5
## %bb.2:
	movq	_STATUS_TPOWER_PMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	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_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_IWL_DEBUG_INFO
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_iwl_set_bit
	movl	$1, 4(%rbx)
	jmp	LBB0_6
LBB0_5:
	movl	8(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_IWL_DEBUG_TX
	cmpl	$0, 12(%rbx)
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_HBUS_TARG_WRPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$8, %r15d
	orl	8(%rbx), %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	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	"Tx queue %d requesting wakeup, GP1 = 0x%x\n"

	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
L_.str.1:                               ## @.str.1
	.asciz	"Q:%d WR: 0x%x\n"

	.comm	_HBUS_TARG_WRPTR,4,2            ## @HBUS_TARG_WRPTR
	.no_dead_strip	_iwl_pcie_txq_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_txq_inc_wr_ptr
_iwl_pcie_txq_inc_wr_ptr:               ; @iwl_pcie_txq_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	x19, x1
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x22, x0
	mov	x0, x19
	ldr	w21, [x0], #16
	bl	_lockdep_assert_held
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _STATUS_TPOWER_PMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_TPOWER_PMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
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	_iwl_read32
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_5
; %bb.4:
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_IWL_DEBUG_INFO
Lloh11:
	adrp	x8, _CSR_GP_CNTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_GP_CNTRL@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_set_bit
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
	ldr	w3, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_IWL_DEBUG_TX
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_7
LBB0_6:
	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_7:
Lloh16:
	adrp	x8, _HBUS_TARG_WRPTR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HBUS_TARG_WRPTR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x19, #8]
	orr	w2, w8, w21, lsl #8
	mov	x0, 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
	b	_iwl_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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	"Tx queue %d requesting wakeup, GP1 = 0x%x\n"

	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
l_.str.1:                               ; @.str.1
	.asciz	"Q:%d WR: 0x%x\n"

	.comm	_HBUS_TARG_WRPTR,4,2            ; @HBUS_TARG_WRPTR
	.no_dead_strip	_iwl_pcie_txq_inc_wr_ptr
.subsections_via_symbols
