	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipsnet_get_fromdev
_mipsnet_get_fromdev:                   ## @mipsnet_get_fromdev
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rsi, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_ioiocpy_frommipsnet
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	incl	12(%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, 4(%r15)
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_netif_rx
	incl	8(%r14)
	addq	%rbx, (%r14)
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_EFAULT,8,3                     ## @EFAULT
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_mipsnet_get_fromdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipsnet_get_fromdev
_mipsnet_get_fromdev:                   ; @mipsnet_get_fromdev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x19
	bl	_dev_alloc_skb
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x1, [x22]
	bl	_skb_reserve
	mov	x0, x21
	mov	x1, x19
	bl	_skb_put
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_ioiocpy_frommipsnet
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_eth_type_trans
Lloh6:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x21]
	mov	x0, x21
	bl	_netif_rx
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_EFAULT,8,3                     ; @EFAULT
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_mipsnet_get_fromdev
.subsections_via_symbols
