	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_free_tx_desc
_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	16(%rsi), %r14
	movslq	%edx, %r12
	movq	_TXBB_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%r12, %rcx
	leaq	(%rax,%rcx,4), %r15
	shlq	$5, %r12
	movslq	(%r14,%r12), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r14,%r12), %rbx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movslq	(%rsi), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	leaq	-96(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_mlx4_en_fill_hwtstamps
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	callq	_skb_tstamp_tx
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	%r15, -64(%rbp)                 ## 8-byte Folded Spill
	leaq	(%r14,%r12), %rbx
	addq	$4, %rbx
	movslq	4(%r14,%r12), %rax
	movq	_TXBB_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	addq	%r15, %rcx
	xorl	%edi, %edi
	cmpq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_likely
	movl	16(%r14,%r12), %ecx
	testq	%rax, %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.3:
	testl	%ecx, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_19
## %bb.4:
	cmpq	$0, 8(%r14,%r12)
	je	LBB0_6
## %bb.5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	addq	$8, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testl	%r12d, %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_19
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %r13
	movq	%r12, %r15
	movl	(%r14), %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,8), %edi
	callq	_be64_to_cpu
	movl	(%r13,%rbx,4), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movq	%r15, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_page
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
	jmp	LBB0_19
LBB0_9:
	testl	%ecx, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_10
LBB0_19:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rcx, %r13
	subq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	jb	LBB0_12
## %bb.11:
	shlq	$2, %rcx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	8(%rax), %rcx
	movq	%rcx, %r13
LBB0_12:
	cmpq	$0, 8(%r14,%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	movl	(%rax), %r14d
	movl	(%r13), %edi
	callq	_be64_to_cpu
	movq	%rax, %rbx
	movl	4(%r13), %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_single
	addq	$8, %r13
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_19
## %bb.15:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	(%r13), %edi
	callq	_be64_to_cpu
	movl	(%r12,%rbx,4), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_dma_unmap_page
	addq	$8, %r13
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r13
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TXBB_SIZE,4,2                  ## @TXBB_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_mlx4_en_free_tx_desc
.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_tx_desc
_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
	mov	x22, x4
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	sxtw	x10, w2
	ldp	x8, x27, [x1, #8]
Lloh0:
	adrp	x9, _TXBB_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TXBB_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w9, w9, w2
	add	x28, x8, w9, sxtw #2
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	add	x24, x27, x10, lsl #5
	ldrsw	x9, [x24]
	add	x25, x28, x9
	ldr	x20, [x24, #24]
	ldrsw	x9, [x1]
	add	x26, x8, x9, lsl #2
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cbz	w22, LBB0_2
; %bb.1:
	add	x1, sp, #24
	mov	x0, x23
	mov	x2, x22
	bl	_mlx4_en_fill_hwtstamps
	add	x1, sp, #24
	mov	x0, x20
	bl	_skb_tstamp_tx
LBB0_2:
	ldrsw	x8, [x24, #4]!
Lloh3:
	adrp	x9, _TXBB_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXBB_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	madd	x8, x9, x8, x28
	cmp	x8, x26
	cset	w0, ls
	bl	_likely
	ldr	w8, [x24, #12]
	cbz	x0, LBB0_9
; %bb.3:
	cbnz	w8, LBB0_10
; %bb.4:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x27, x8, lsl #5
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x23, _PCI_DMA_TODEVICE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w21, [x19]
	ldr	w0, [x25]
	bl	_be64_to_cpu
	mov	x22, x0
	ldr	w0, [x25, #4]
	bl	_be32_to_cpu
	mov	x2, x0
	ldr	w3, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_dma_unmap_single
	add	x25, x25, #8
LBB0_6:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x22, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x26, x8, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x27, [x0, #8]
	ldr	w21, [x19]
	ldr	w0, [x25], #8
	bl	_be64_to_cpu
	mov	x1, x0
	ldr	w2, [x27, x22]
	ldr	w3, [x23]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dma_unmap_page
	add	x22, x22, #4
	cmp	x26, x22
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	cbz	w8, LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	w0, [x24]
	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_11:
	subs	x8, x25, x26
	b.lo	LBB0_13
; %bb.12:
	ldr	x9, [x21, #8]
	add	x25, x9, x8, lsl #2
LBB0_13:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x27, x8, lsl #5
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w22, [x19]
	ldr	w0, [x25]
	bl	_be64_to_cpu
	mov	x23, x0
	ldr	w0, [x25, #4]
	bl	_be32_to_cpu
	mov	x2, x0
Lloh8:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_single
	add	x25, x25, #8
LBB0_15:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.16:
	mov	x23, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x27, x8, #2
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x28, [x0, #8]
	ldr	w22, [x19]
	ldr	w0, [x25], #8
	bl	_be64_to_cpu
	mov	x1, x0
	ldr	w2, [x28, x23]
Lloh11:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dma_unmap_page
	add	x23, x23, #4
	cmp	x27, x23
	b.eq	LBB0_10
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	cmp	x25, x26
	b.lo	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x25, [x21, #8]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TXBB_SIZE,4,2                  ; @TXBB_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_mlx4_en_free_tx_desc
.subsections_via_symbols
