	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_free_resources
_mlx4_en_free_resources:                ## @mlx4_en_free_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, %r15
	movq	_MLX4_EN_NUM_TX_TYPES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_kfree
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_kfree
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r15), %rax
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	movq	(%r15), %rax
	movslq	(%rax,%r12,4), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jge	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	56(%r15), %rax
	movq	(%rax,%r12,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_mlx4_en_destroy_tx_ring
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_mlx4_en_destroy_cq
	jmp	LBB0_10
LBB0_12:
	cmpl	$0, 8(%r15)
	jle	LBB0_19
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movslq	8(%r15), %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jge	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rsi
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	%rbx, %rsi
	movq	32(%r15), %rax
	movl	(%rax), %edx
	movl	24(%r15), %ecx
	movq	%r15, %rdi
	callq	_mlx4_en_destroy_rx_ring
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r15), %rsi
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_mlx4_en_destroy_cq
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_NUM_TX_TYPES,4,2       ## @MLX4_EN_NUM_TX_TYPES
	.no_dead_strip	_mlx4_en_free_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_free_resources
_mlx4_en_free_resources:                ; @mlx4_en_free_resources
	.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	x19, x0
Lloh0:
	adrp	x20, _MLX4_EN_NUM_TX_TYPES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MLX4_EN_NUM_TX_TYPES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #56]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x22]
	bl	_kfree
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x19]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #1
	ldr	x8, [x19]
	ldrsw	x8, [x8, x21, lsl #2]
	add	x22, x22, #8
	cmp	x23, x8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #56]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x1, x8, x22
	ldr	x8, [x1]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_mlx4_en_destroy_tx_ring
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x1, x8, x22
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_mlx4_en_destroy_cq
	b	LBB0_5
LBB0_12:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.13:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #8
	cmp	x21, x8
	b.ge	LBB0_19
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x1, x8, x20
	ldr	x8, [x1]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #32]
	ldr	w2, [x8]
	ldr	w3, [x19, #24]
	mov	x0, x19
	bl	_mlx4_en_destroy_rx_ring
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x20
	ldr	x8, [x1]
	cbz	x8, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	bl	_mlx4_en_destroy_cq
	b	LBB0_14
LBB0_19:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_NUM_TX_TYPES,4,2       ; @MLX4_EN_NUM_TX_TYPES
	.no_dead_strip	_mlx4_en_free_resources
.subsections_via_symbols
