	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gelic_net_pass_skb_up
_gelic_net_pass_skb_up:                 ## @gelic_net_pass_skb_up
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movl	32(%rdi), %edi
	callq	_be32_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	28(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_ctodev
	movl	%eax, %r15d
	movl	24(%rbx), %edi
	callq	_be32_to_cpu
	movq	_GELIC_NET_MAX_MTU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_dma_unmap_single
	movl	20(%rbx), %edi
	callq	_be32_to_cpu
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	16(%rbx,%rcx,4), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skb_put
	cmpl	$0, 20(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ctodev
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_dev_info
LBB0_2:
	movq	$0, (%rbx)
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, 12(%r13)
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.3:
	movq	_GELIC_DESCR_DATA_STATUS_CHK_MASK@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_GELIC_DESCR_DATA_ERROR_CHK_MASK@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_skb_checksum_none_assert
LBB0_7:
	incl	8(%r14)
	movl	(%r13), %eax
	addl	%eax, 4(%r14)
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_receive_skb              ## TAILCALL
LBB0_5:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GELIC_NET_MAX_MTU,4,2          ## @GELIC_NET_MAX_MTU
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer full %x %x %x\n"

	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_GELIC_DESCR_DATA_STATUS_CHK_MASK,4,2 ## @GELIC_DESCR_DATA_STATUS_CHK_MASK
	.comm	_GELIC_DESCR_DATA_ERROR_CHK_MASK,4,2 ## @GELIC_DESCR_DATA_ERROR_CHK_MASK
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_gelic_net_pass_skb_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gelic_net_pass_skb_up
_gelic_net_pass_skb_up:                 ; @gelic_net_pass_skb_up
	.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	x19, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x20, [x0]
	ldr	w0, [x0, #32]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x23, #28]
	bl	_be32_to_cpu
	mov	x22, x0
	mov	x0, x24
	bl	_ctodev
	mov	x25, x0
	ldr	w0, [x23, #24]
	bl	_be32_to_cpu
	mov	x1, x0
Lloh0:
	adrp	x8, _GELIC_NET_MAX_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GELIC_NET_MAX_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x25
	bl	_dma_unmap_single
	ldr	w0, [x23, #20]
	bl	_be32_to_cpu
	cmp	w0, #0
	mov	w8, #20
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	w0, [x23, x8]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_skb_put
	ldr	w8, [x23, #20]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_ctodev
	mov	x24, x0
	ldr	w0, [x23, #16]
	bl	_be32_to_cpu
	mov	x25, x0
	ldr	w0, [x23, #12]
	bl	_be32_to_cpu
	mov	x26, x0
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x25
	mov	x3, x26
	bl	_dev_info
LBB0_2:
	str	xzr, [x23]
	mov	x0, x20
	mov	w1, #2
	bl	_skb_pull
	mov	x0, x20
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x20, #12]
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _GELIC_DESCR_DATA_STATUS_CHK_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GELIC_DESCR_DATA_STATUS_CHK_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _GELIC_DESCR_DATA_ERROR_CHK_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GELIC_DESCR_DATA_ERROR_CHK_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_skb_checksum_none_assert
LBB0_6:
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x20]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	mov	x0, x20
	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_receive_skb
LBB0_7:
Lloh17:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GELIC_NET_MAX_MTU,4,2          ; @GELIC_NET_MAX_MTU
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer full %x %x %x\n"

	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_GELIC_DESCR_DATA_STATUS_CHK_MASK,4,2 ; @GELIC_DESCR_DATA_STATUS_CHK_MASK
	.comm	_GELIC_DESCR_DATA_ERROR_CHK_MASK,4,2 ; @GELIC_DESCR_DATA_ERROR_CHK_MASK
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_gelic_net_pass_skb_up
.subsections_via_symbols
