	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_tx_resources
_free_tx_resources:                     ## @free_tx_resources
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_SGE_CMDQ_N@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movl	(%r15), %eax
	addq	$32, %rbx
	cmpq	%rax, %r12
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	16(%r14,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_free_cmdQ_buffers
	movq	16(%r13), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_kfree
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%rbx), %esi
	movl	4(%r14,%rbx), %ecx
	shll	$2, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_free_consistent
	jmp	LBB0_8
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_CMDQ_N,4,2                 ## @SGE_CMDQ_N
	.no_dead_strip	_free_tx_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_tx_resources
_free_tx_resources:                     ; @free_tx_resources
	.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
Lloh0:
	adrp	x22, _SGE_CMDQ_N@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SGE_CMDQ_N@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	w8, [x22]
	add	x23, x23, #32
	cmp	x24, x8
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19]
	add	x21, x25, x23
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x21, #24]
	cbz	x2, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_free_cmdQ_buffers
	ldr	x0, [x21, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_kfree
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x21, #8]
	cbz	x2, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x23
	ldp	w9, w3, [x8]
	lsl	w1, w9, #2
	mov	x0, x20
	bl	_pci_free_consistent
	b	LBB0_2
LBB0_9:
	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	_SGE_CMDQ_N,4,2                 ; @SGE_CMDQ_N
	.no_dead_strip	_free_tx_resources
.subsections_via_symbols
