	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_txq_free
_iwl_pcie_txq_free:                     ## @iwl_pcie_txq_free
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r12
	movq	8(%rax), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %r14
	movq	8(%r15), %rbx
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_iwl_pcie_txq_unmap
	cmpl	%r13d, (%r12)
	jne	LBB0_5
## %bb.2:
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_kzfree
	movq	8(%r14), %rax
	movl	(%rax,%rbx,8), %edi
	callq	_kzfree
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	32(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	leaq	32(%r14), %r13
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	imull	4(%r12), %esi
	movq	40(%r14), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movl	(%r14), %esi
	shll	$2, %esi
	movq	24(%r14), %rdx
	movq	16(%r14), %rcx
	movq	%rbx, %rdi
	callq	_dma_free_coherent
LBB0_7:
	movq	8(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
	leaq	4(%r14), %rdi
	callq	_del_timer_sync
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iwl_pcie_txq_free
.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_free
_iwl_pcie_txq_free:                     ; @iwl_pcie_txq_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x1
	mov	x21, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, w23, sxtw #3]
	ldr	x20, [x21, #8]
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x21
	mov	x1, x23
	bl	_iwl_pcie_txq_unmap
	ldr	w8, [x22]
	cmp	w8, w23
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	bl	_kzfree
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x23]
	bl	_kzfree
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x23, x19
	ldr	x2, [x23, #32]!
	cbz	x2, LBB0_8
; %bb.7:
	ldr	w8, [x22, #4]
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldr	x3, [x19, #40]
	mov	x0, x20
	bl	_dma_free_coherent
	stp	xzr, xzr, [x23]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	ldp	x3, x2, [x19, #16]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	add	x0, x19, #4
	bl	_del_timer_sync
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memset
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iwl_pcie_txq_free
.subsections_via_symbols
