	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_rx_skb
_mlx4_en_rx_skb:                        ## @mlx4_en_rx_skb
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_SMALL_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
	movl	%r14d, (%rbx)
	movl	4(%r13), %edi
	callq	_page_address
	movslq	(%r13), %r15
	addq	%rax, %r15
	movq	_SMALL_PACKET_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jae	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_mlx4_en_complete_rx_desc
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_kfree_skb
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_RX_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rsi
	callq	_en_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_be64_to_cpu
	movl	(%r12), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_dma_sync_single_for_cpu
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_skb_copy_to_linear_data
	addl	%r14d, 4(%rbx)
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	%r12d, (%rax)
	movl	16(%rbx), %edi
	movq	_HEADER_COPY_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r15, %rsi
	callq	_memcpy
	movl	(%r12), %r15d
	addl	%r15d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rax
	addl	%r15d, 4(%rax)
	movl	(%r12), %r15d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rax
	subl	%r15d, (%rax)
	movl	%r14d, %eax
	subq	(%r12), %rax
	movq	%rax, 8(%rbx)
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMALL_PACKET_SIZE,4,2          ## @SMALL_PACKET_SIZE
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_RX_ERR,4,2                     ## @RX_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed allocating skb\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_HEADER_COPY_SIZE,8,3           ## @HEADER_COPY_SIZE
	.no_dead_strip	_mlx4_en_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_rx_skb
_mlx4_en_rx_skb:                        ; @mlx4_en_rx_skb
	.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, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _SMALL_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SMALL_PACKET_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x21, _NET_IP_ALIGN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_dev_alloc_skb
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x22, #4]
	str	w8, [x19, #20]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_skb_reserve
	str	w20, [x19]
	ldr	w0, [x23, #4]
	bl	_page_address
	ldrsw	x8, [x23]
	add	x21, x0, x8
	ldr	w8, [x25]
	cmp	w8, w20
	b.hs	LBB0_5
; %bb.2:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	mov	x4, x20
	bl	_mlx4_en_complete_rx_desc
	mov	x22, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_kfree_skb
	mov	x19, #0
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x8, _RX_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RX_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x22
	bl	_en_dbg
	b	LBB0_7
LBB0_5:
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_be64_to_cpu
	mov	x1, x0
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x2, x20
	bl	_dma_sync_single_for_cpu
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_skb_copy_to_linear_data
	ldr	w8, [x19, #4]
	add	w8, w8, w20
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_skb_shinfo
	str	w22, [x0]
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x22, _HEADER_COPY_SIZE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _HEADER_COPY_SIZE@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x1, x21
	bl	_memcpy
	ldr	w21, [x22]
	ldr	w8, [x19, #4]
	add	w8, w8, w21
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #4]
	add	w9, w9, w21
	str	w9, [x8, #4]
	ldr	w21, [x22]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	sub	w9, w9, w21
	str	w9, [x8]
	mov	w8, w20
	ldr	x9, [x22]
	sub	x8, x8, x9
	str	x8, [x19, #8]
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SMALL_PACKET_SIZE,4,2          ; @SMALL_PACKET_SIZE
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_RX_ERR,4,2                     ; @RX_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed allocating skb\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_HEADER_COPY_SIZE,8,3           ; @HEADER_COPY_SIZE
	.no_dead_strip	_mlx4_en_rx_skb
.subsections_via_symbols
