	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_txq_unmap
_iwl_pcie_txq_unmap:                    ## @iwl_pcie_txq_unmap
	.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, %r12d
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r13
	movq	8(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rbx
	leaq	16(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	8(%rbx), %rcx
	cmpq	%rcx, (%rbx)
	jne	LBB0_1
LBB0_10:
	leaq	20(%rbx), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	___skb_dequeue
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_iwl_op_mode_free_skb
	jmp	LBB0_12
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_wake_queue                 ## TAILCALL
LBB0_1:
	movq	%r13, %rax
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	cmpq	%rcx, (%rbx)
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_IWL_DEBUG_TX_REPLY
	cmpl	%r12d, (%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_iwl_pcie_free_tso_page
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwl_pcie_txq_free_tfd
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_iwl_queue_inc_wrap
	movq	%rax, 8(%rbx)
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	%r12d, (%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_iwl_pcie_clear_cmd_in_flight
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Q %d Free %d\n"

	.no_dead_strip	_iwl_pcie_txq_unmap
.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_unmap
_iwl_pcie_txq_unmap:                    ; @iwl_pcie_txq_unmap
	.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	x22, x1
	mov	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8, w22, sxtw #3]
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_bh
	ldp	x8, x3, [x20]
	cmp	x8, x3
	b.ne	LBB0_5
LBB0_1:
	add	x22, x20, #20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_queue_empty
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	___skb_dequeue
	mov	x1, x0
	ldr	w0, [x19]
	bl	_iwl_op_mode_free_skb
	b	LBB0_2
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x19
	mov	x1, x20
	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
	b	_iwl_wake_queue
LBB0_5:
	add	x24, x23, #4
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_spin_unlock_irqrestore
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	x8, x3, [x20]
	cmp	x8, x3
	b.eq	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x22
	bl	_IWL_DEBUG_TX_REPLY
	ldr	w8, [x23]
	cmp	w8, w22
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	ldr	x26, [x8, x9, lsl #3]
	cmp	x26, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_iwl_pcie_free_tso_page
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_pcie_txq_free_tfd
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_iwl_queue_inc_wrap
	str	x0, [x20, #8]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	w8, [x23]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_iwl_pcie_clear_cmd_in_flight
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Q %d Free %d\n"

	.no_dead_strip	_iwl_pcie_txq_unmap
.subsections_via_symbols
