	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_free_tx_desc           ## -- Begin function mlx4_en_free_tx_desc
	.p2align	4, 0x90
_mlx4_en_free_tx_desc:                  ## @mlx4_en_free_tx_desc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r15
	movslq	%edx, %rax
	movq	_LOG_TXBB_SIZE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	leaq	(%rax,%rax,2), %rdx
	movl	%eax, %r12d
	shll	%cl, %r12d
	shlq	$4, %rdx
	movslq	(%r15,%rdx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rsi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	40(%r15,%rdx), %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15,%rdx), %ebx
	movq	%r14, %rdi
	callq	_prefetchw
	movl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	-80(%rbp), %rsi
	movl	%r13d, %edx
	callq	_mlx4_en_fill_hwtstamps
	movq	%r14, %rdi
	leaq	-80(%rbp), %rsi
	callq	_skb_tstamp_tx
LBB0_2:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 32(%r15,%rax)
	je	LBB0_3
LBB0_17:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_napi_consume_skb
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rax,%rcx), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movslq	%r12d, %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %r13
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rdx,%rax,8), %r15
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%r14,%rax)
	movl	(%rcx), %edi
	movl	12(%r14,%rax), %edx
	movl	16(%r14,%rax), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	je	LBB0_5
## %bb.4:
	callq	_dma_unmap_single
	jmp	LBB0_6
LBB0_5:
	callq	_dma_unmap_page
LBB0_6:
	movq	_LOG_TXBB_SIZE@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%r14,%rax), %eax
	movb	(%rcx), %cl
	shll	%cl, %eax
	cltq
	addq	%r13, %rax
	xorl	%edi, %edi
	cmpq	%r15, %rax
	setbe	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	cmpl	$2, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_17
## %bb.8:
	decl	%ebx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	addq	$12, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r14d
	movl	(%r13,%r12,8), %edi
	callq	_be64_to_cpu
	movq	%rax, %rbx
	movl	-4(%r13,%r12,8), %edi
	callq	_be32_to_cpu
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incq	%r12
	cmpl	%r12d, %ebx
	jne	LBB0_9
	jmp	LBB0_17
LBB0_10:
	addq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rax
	subq	%r15, %rax
	jb	LBB0_12
## %bb.11:
	shlq	$3, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	8(%rcx), %rax
	movq	%rax, %r13
LBB0_12:
	cmpl	$2, %ebx
	jl	LBB0_17
## %bb.13:
	decl	%ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	4(%r13), %edi
	callq	_be64_to_cpu
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_be32_to_cpu
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	decl	%ebx
	movq	%r12, %r15
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addq	$8, %r13
	movq	%r15, %r12
	cmpq	%r15, %r13
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r13
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_TXBB_SIZE,4,2              ## @LOG_TXBB_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_free_tx_desc           ; -- Begin function mlx4_en_free_tx_desc
	.p2align	2
_mlx4_en_free_tx_desc:                  ; @mlx4_en_free_tx_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	sxtw	x28, w23
	ldp	x19, x26, [x1, #8]
Lloh0:
	adrp	x8, _LOG_TXBB_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_TXBB_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	mov	w8, #48
	smaddl	x8, w2, w8, x26
	ldrsw	x27, [x1]
	ldr	x21, [x8, #40]
	ldp	w9, w8, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	x9, [sp]                        ; 8-byte Folded Spill
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x21
	bl	_prefetchw
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	add	x1, sp, #24
	mov	x2, x24
	bl	_mlx4_en_fill_hwtstamps
	add	x1, sp, #24
	mov	x0, x21
	bl	_skb_tstamp_tx
LBB0_2:
	mov	w8, #48
	str	x28, [sp, #16]                  ; 8-byte Folded Spill
	madd	x8, x28, x8, x26
	ldr	w8, [x8, #32]
	cbz	w8, LBB0_4
LBB0_3:
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_napi_consume_skb
	mov	w8, #48
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	madd	x8, x9, x8, x26
	ldr	w0, [x8, #8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	lsl	w23, w23, w25
	add	x24, x19, w23, sxtw #3
	add	x28, x19, x27, lsl #3
	mov	w8, #48
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	madd	x8, x9, x8, x26
	ldr	x9, [x8, #24]
	ldr	w0, [x20]
	ldp	w2, w1, [x8, #12]
Lloh3:
	adrp	x27, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	cbz	x9, LBB0_6
; %bb.5:
	bl	_dma_unmap_single
	b	LBB0_7
LBB0_6:
	bl	_dma_unmap_page
LBB0_7:
Lloh5:
	adrp	x10, _LOG_TXBB_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LOG_TXBB_SIZE@GOTPAGEOFF]
	mov	w8, #48
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	madd	x8, x9, x8, x26
	ldr	w8, [x8, #8]
Lloh7:
	ldr	w9, [x10]
	lsl	w8, w8, w9
	add	x8, x24, w8, sxtw
	cmp	x8, x28
	cset	w0, ls
	bl	_likely
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.9:
	sxtw	x8, w23
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	sub	w24, w9, #1
	add	x8, x19, x8, lsl #3
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x8, x8, x9
	add	x19, x8, #12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x20]
	ldr	w0, [x19]
	bl	_be64_to_cpu
	mov	x23, x0
	ldur	w0, [x19, #-4]
	bl	_be32_to_cpu
	mov	x2, x0
	ldr	w3, [x27]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_page
	add	x19, x19, #8
	subs	w24, w24, #1
	b.ne	LBB0_10
	b	LBB0_3
LBB0_11:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x19, x24, x8
	subs	x8, x19, x28
	b.lo	LBB0_13
; %bb.12:
	ldr	x9, [x22, #8]
	add	x19, x9, x8, lsl #3
LBB0_13:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.14:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	sub	w25, w8, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w23, [x20]
	ldr	w0, [x19, #4]
	bl	_be64_to_cpu
	mov	x24, x0
	ldr	w0, [x19]
	bl	_be32_to_cpu
	mov	x2, x0
	ldr	w3, [x27]
	mov	x0, x23
	mov	x1, x24
	bl	_dma_unmap_page
	subs	w25, w25, #1
	b.eq	LBB0_3
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x19, x19, #8
	cmp	x19, x28
	b.lo	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x19, [x22, #8]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_TXBB_SIZE,4,2              ; @LOG_TXBB_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
.subsections_via_symbols
