	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_free_hw_resources       ## -- Begin function qlcnic_free_hw_resources
	.p2align	4, 0x90
_qlcnic_free_hw_resources:              ## @qlcnic_free_hw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %r15
	movq	16(%r15,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rdi
	movl	24(%r15,%rbx), %ecx
	movl	$4, %esi
	callq	_dma_free_coherent
	movq	$0, 16(%r15,%rbx)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%rbx), %rdi
	movq	16(%r14), %r12
	callq	_TX_DESC_RINGSIZE
	movq	(%r15,%rbx), %rdx
	movl	8(%r15,%rbx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	$0, (%r15,%rbx)
	jmp	LBB0_6
LBB0_7:
	movl	4(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r15
	cmpq	$0, (%r15,%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r15,%rbx), %rdi
	movq	16(%r14), %r12
	callq	_RCV_DESC_RINGSIZE
	movq	(%r15,%rbx), %rdx
	movl	8(%r15,%rbx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	$0, (%r15,%rbx)
	movl	4(%r14), %eax
	jmp	LBB0_11
LBB0_12:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r15
	cmpq	$0, (%r15,%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r15,%rbx), %rdi
	movq	16(%r14), %r12
	callq	_STATUS_DESC_RINGSIZE
	movq	(%r15,%rbx), %rdx
	movl	8(%r15,%rbx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	$0, (%r15,%rbx)
	movl	8(%r14), %eax
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_free_hw_resources       ; -- Begin function qlcnic_free_hw_resources
	.p2align	2
_qlcnic_free_hw_resources:              ; @qlcnic_free_hw_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
	mov	x19, x0
	ldr	x22, [x0, #32]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #32
	cmp	x24, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #24]
	add	x20, x25, x23
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #16]
	ldr	w3, [x20, #24]
	mov	w1, #4
	bl	_dma_free_coherent
	str	xzr, [x20, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, x23]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x19, #16]
	mov	x0, x20
	bl	_TX_DESC_RINGSIZE
	mov	x1, x0
	add	x20, x25, x23
	ldr	x2, [x20]
	ldr	w3, [x20, #8]
	mov	x0, x21
	bl	_dma_free_coherent
	str	xzr, [x20]
	b	LBB0_2
LBB0_7:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	add	x20, x9, x23
	ldr	x9, [x20]
	cbz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x21, [x19, #16]
	mov	x0, x20
	bl	_RCV_DESC_RINGSIZE
	mov	x1, x0
	ldr	x2, [x20]
	ldr	w3, [x20, #8]
	mov	x0, x21
	bl	_dma_free_coherent
	str	xzr, [x20]
	ldr	w8, [x19, #4]
	b	LBB0_9
LBB0_12:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x20, x9, x23
	ldr	x9, [x20]
	cbz	x9, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x21, [x19, #16]
	mov	x0, x20
	bl	_STATUS_DESC_RINGSIZE
	mov	x1, x0
	ldr	x2, [x20]
	ldr	w3, [x20, #8]
	mov	x0, x21
	bl	_dma_free_coherent
	str	xzr, [x20]
	ldr	w8, [x19, #8]
	b	LBB0_14
LBB0_17:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
