	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_gen2_free_tfd
_iwl_pcie_gen2_free_tfd:                ## @iwl_pcie_gen2_free_tfd
	.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
	movl	12(%rsi), %esi
	movq	%rbx, %rdi
	callq	_iwl_pcie_get_cmd_index
	movl	%eax, %r15d
	leaq	8(%rbx), %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rax
	movslq	%r15d, %rdx
	movq	%rdx, %r12
	shlq	$4, %r12
	leaq	(%rax,%r12), %r15
	addq	$8, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_iwl_pcie_get_tfd
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_iwl_pcie_gen2_tfd_unmap
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax,%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	callq	_iwl_op_mode_free_skb
	movq	(%rbx), %rax
	movq	$0, (%rax,%r12)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iwl_pcie_gen2_free_tfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_gen2_free_tfd
_iwl_pcie_gen2_free_tfd:                ; @iwl_pcie_gen2_free_tfd
	.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
	ldr	w1, [x1, #12]
	mov	x0, x19
	bl	_iwl_pcie_get_cmd_index
	mov	x21, x0
	add	x0, x19, #8
	bl	_lockdep_assert_held
	ldr	x8, [x19]
	add	x8, x8, w21, sxtw #4
	add	x22, x8, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_iwl_pcie_get_tfd
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_iwl_pcie_gen2_tfd_unmap
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	sxtw	x9, w21
	lsl	x21, x9, #4
	ldr	x1, [x8, x21]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	bl	_iwl_op_mode_free_skb
	ldr	x8, [x19]
	str	xzr, [x8, x21]
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iwl_pcie_gen2_free_tfd
.subsections_via_symbols
