	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uli526x_free_tx_pkt
_uli526x_free_tx_pkt:                   ## @uli526x_free_tx_pkt
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rsi), %r12
	cmpq	$0, (%rsi)
	je	LBB0_20
## %bb.1:
	movq	_TDES0_ERR_MASK@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r12
	testq	%rax, %rax
	je	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	(%r15), %rax
	testl	%ebx, %ebx
	js	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rax
	movq	%rax, (%r15)
	incl	12(%r14)
	cmpl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	$15, %eax
	addl	%eax, (%r14)
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	andl	$2047, %eax                     ## imm = 0x7FF
	addl	%eax, 4(%r14)
	testl	%ebx, (%r13)
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%r14)
	testb	$2, %bl
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	48(%r15)
	movl	8(%r15), %eax
	movq	_CR6_SFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %edi
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	$512, %ebx                      ## imm = 0x200
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	$1024, %ebx                     ## imm = 0x400
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	$2048, %ebx                     ## imm = 0x800
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	$16384, %ebx                    ## imm = 0x4000
	je	LBB0_18
	jmp	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%eax, %edi
	movl	%edi, 8(%r15)
	movl	44(%r15), %esi
	callq	_update_cr6
	testl	$256, %ebx                      ## imm = 0x100
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	40(%r15)
	testl	$512, %ebx                      ## imm = 0x200
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	36(%r15)
	testl	$1024, %ebx                     ## imm = 0x400
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	32(%r15)
	testl	$2048, %ebx                     ## imm = 0x800
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%r15)
	testl	$16384, %ebx                    ## imm = 0x4000
	je	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%r15)
	jmp	LBB0_18
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	movq	%r12, 16(%r15)
	movq	_TX_WAKE_DESC_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_22
## %bb.23:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDES0_ERR_MASK,4,2             ## @TDES0_ERR_MASK
	.comm	_CR6_SFT,4,2                    ## @CR6_SFT
	.comm	_TX_WAKE_DESC_CNT,8,3           ## @TX_WAKE_DESC_CNT
	.no_dead_strip	_uli526x_free_tx_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uli526x_free_tx_pkt
_uli526x_free_tx_pkt:                   ; @uli526x_free_tx_pkt
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x1, #16]
	ldr	x8, [x1]
	cbz	x8, LBB0_20
; %bb.1:
	mov	w23, #2147483647
Lloh0:
	adrp	x24, _TDES0_ERR_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TDES0_ERR_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CR6_SFT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CR6_SFT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22]
	cbz	x8, LBB0_20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #12]
	bl	_le32_to_cpu
	ldr	x8, [x20]
	tbnz	w0, #31, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	sub	x8, x8, #1
	str	x8, [x20]
	ldr	w9, [x19, #12]
	add	w9, w9, #1
	str	w9, [x19, #12]
	cmp	w0, w23
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfx	w8, w21, #3, #4
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	and	w8, w0, #0x7ff
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	tbz	w21, #1, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #48]
	add	w8, w8, #1
	str	w8, [x20, #48]
	ldr	w8, [x20, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w21, #8, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w21, #9, LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w21, #10, LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w21, #11, LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w21, #14, LBB0_2
	b	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w0, w9, w8
	str	w0, [x20, #8]
	ldr	w1, [x20, #44]
	bl	_update_cr6
	tbz	w21, #8, LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
	tbz	w21, #9, LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #36]
	add	w8, w8, #1
	str	w8, [x20, #36]
	tbz	w21, #10, LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	tbz	w21, #11, LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	tbz	w21, #14, LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	b	LBB0_2
LBB0_20:
	str	x22, [x20, #16]
Lloh4:
	adrp	x9, _TX_WAKE_DESC_CNT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TX_WAKE_DESC_CNT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_22
; %bb.21:
	mov	x0, x19
	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
	b	_netif_wake_queue
LBB0_22:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TDES0_ERR_MASK,4,2             ; @TDES0_ERR_MASK
	.comm	_CR6_SFT,4,2                    ; @CR6_SFT
	.comm	_TX_WAKE_DESC_CNT,8,3           ; @TX_WAKE_DESC_CNT
	.no_dead_strip	_uli526x_free_tx_pkt
.subsections_via_symbols
