	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_block_txq_ptrs
_iwl_trans_pcie_block_txq_ptrs:         ## @iwl_trans_pcie_block_txq_ptrs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, 8(%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	(%rax), %rcx
	movslq	(%rcx), %rcx
	addl	$256, %ebx                      ## imm = 0x100
	cmpq	%rcx, %r14
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	cmpq	%rcx, %r14
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %r15
	leaq	4(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	8(%r15), %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	8(%r15)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HBUS_TARG_WRPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	orl	%ebx, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_write32
	jmp	LBB0_8
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HBUS_TARG_WRPTR,4,2            ## @HBUS_TARG_WRPTR
	.no_dead_strip	_iwl_trans_pcie_block_txq_ptrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_trans_pcie_block_txq_ptrs
_iwl_trans_pcie_block_txq_ptrs:         ; @iwl_trans_pcie_block_txq_ptrs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	ldr	x8, [x20]
	ldr	x9, [x8]
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x21, x0
	mov	w23, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _HBUS_TARG_WRPTR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HBUS_TARG_WRPTR@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, #1
	str	w8, [x26, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x9, [x8]
	ldrsw	x9, [x9]
	add	w23, w23, #256
	cmp	x24, x9
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	cmp	x24, x9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	ldr	x26, [x8, x24, lsl #3]
	add	x22, x26, #4
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w8, [x26, #8]
	cbnz	w19, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #8]
	subs	w8, w8, #1
	str	w8, [x26, #8]
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	ldr	w8, [x26]
	orr	w2, w8, w23
	mov	x0, x20
	bl	_iwl_write32
	b	LBB0_3
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HBUS_TARG_WRPTR,4,2            ; @HBUS_TARG_WRPTR
	.no_dead_strip	_iwl_trans_pcie_block_txq_ptrs
.subsections_via_symbols
