	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_complete_rx_desc
_mlx4_en_complete_rx_desc:              ## @mlx4_en_complete_rx_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_skb_shinfo
	xorl	%ecx, %ecx
	cmpl	$0, (%r12)
	jle	LBB0_13
## %bb.1:
	movq	(%rax), %rbx
	movl	$1, %ecx
	movl	$16, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r15
	movq	8(%r12), %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -16(%r12,%r13)
	jge	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	-4(%rax,%rcx,4), %edi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_be64_to_cpu
	movl	16(%r15), %edi
	movl	(%r12,%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_sync_single_for_cpu
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	___skb_frag_set_page
	movl	(%r12,%r13), %esi
	movq	%rbx, %rdi
	callq	_skb_frag_size_set
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	-8(%r12,%r13), %eax
	movq	%r15, %r12
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	$0, (%r14)
	movslq	(%r15), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	1(%rdx), %rax
	addq	$12, %rbx
	addq	$24, %r13
	addq	$16, %r14
	cmpq	%rcx, %rdx
	movq	%rax, %rcx
	jl	LBB0_2
## %bb.9:
	decq	%rax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	decq	%rcx
	movq	%rcx, %rax
	xorl	%ecx, %ecx
	movq	%r15, %r12
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:
	movq	8(%r12), %rcx
	movl	%eax, %edx
	decl	%edx
	leaq	(%rdx,%rdx,2), %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	(%rcx,%rdx,8), %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%esi, (%rcx,%rdx,4)
	movl	%eax, %ecx
	jmp	LBB0_13
LBB0_4:
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.5:
	addq	$-8, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%rcx, %r14
	callq	_put_page
	movq	%r14, %rcx
	decq	%rcx
	addq	$-12, %rbx
	cmpq	$1, %rcx
	jg	LBB0_6
LBB0_7:
	xorl	%ecx, %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_mlx4_en_complete_rx_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_complete_rx_desc
_mlx4_en_complete_rx_desc:              ; @mlx4_en_complete_rx_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x3
	bl	_skb_shinfo
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x27, #0
	mov	x19, #0
	ldr	x25, [x0]
Lloh0:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, #8]
	ldr	w8, [x26, x27]
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x19, lsl #2]
	bl	_be64_to_cpu
	mov	x1, x0
	ldr	w0, [x21, #16]
	add	x26, x26, x27
	ldr	w2, [x26, #16]
	ldr	w3, [x28]
	bl	_dma_sync_single_for_cpu
	ldr	x1, [x23]
	mov	x0, x25
	bl	___skb_frag_set_page
	ldr	w1, [x26, #16]
	mov	x0, x25
	bl	_skb_frag_size_set
	ldr	w8, [x23, #8]
	str	w8, [x25, #8]
	ldr	w8, [x26, #8]
	ldr	w9, [x22]
	add	w8, w9, w8
	str	w8, [x22]
	str	xzr, [x23], #16
	add	x19, x19, #1
	ldrsw	x8, [x21]
	add	x25, x25, #12
	add	x27, x27, #24
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_5:
	cbz	w19, LBB0_11
; %bb.6:
	ldr	x8, [x21, #8]
	sub	w9, w19, #1
	mov	w10, #24
	umull	x10, w9, w10
	ldr	w8, [x8, x10]
	sub	w8, w20, w8
	mov	w10, #12
	umull	x9, w9, w10
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	str	w8, [x10, x9]
	b	LBB0_11
LBB0_7:
	cbz	w19, LBB0_11
; %bb.8:
	sub	x20, x25, #8
	add	x19, x19, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #-12
	bl	_put_page
	sub	x19, x19, #1
	cmp	x19, #1
	b.gt	LBB0_9
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_mlx4_en_complete_rx_desc
.subsections_via_symbols
