	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltq_etop_alloc_skb
_ltq_etop_alloc_skb:                    ## @ltq_etop_alloc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_netdev_priv
	movq	%rax, %r14
	movl	24(%rbx), %edi
	movq	_MAX_DMA_DATA_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_netdev_alloc_skb
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	16(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	%eax, 4(%rdx,%rcx,8)
	movq	16(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_CPHYSADDR
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	%eax, 4(%rdx,%rcx,8)
	movq	_LTQ_DMA_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_LTQ_DMA_RX_OFFSET
	orl	%r14d, %eax
	orl	(%r15), %eax
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,8)
	movq	16(%rbx), %rax
	movq	(%rax,%rcx,8), %rdi
	movl	(%r12), %esi
	callq	_skb_reserve
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DMA_DATA_LEN,4,2           ## @MAX_DMA_DATA_LEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_LTQ_DMA_OWN,4,2                ## @LTQ_DMA_OWN
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.no_dead_strip	_ltq_etop_alloc_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltq_etop_alloc_skb
_ltq_etop_alloc_skb:                    ; @ltq_etop_alloc_skb
	.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, x0
	ldr	w0, [x0, #24]
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x21, _MAX_DMA_DATA_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_DMA_DATA_LEN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_netdev_alloc_skb
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_dma_map_single
	ldp	x9, x8, [x19]
	lsl	x9, x9, #3
	add	x8, x8, x9
	str	w0, [x8, #4]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	ldr	w0, [x8]
	bl	_CPHYSADDR
	ldp	x9, x8, [x19]
	add	x8, x8, x9, lsl #3
	str	w0, [x8, #4]
Lloh5:
	adrp	x8, _LTQ_DMA_OWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LTQ_DMA_OWN@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x22, _NET_IP_ALIGN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_LTQ_DMA_RX_OFFSET
	orr	w8, w0, w20
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldp	x10, x9, [x19]
	lsl	x10, x10, #3
	str	w8, [x9, x10]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x10]
	ldr	w1, [x22]
	bl	_skb_reserve
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DMA_DATA_LEN,4,2           ; @MAX_DMA_DATA_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_LTQ_DMA_OWN,4,2                ; @LTQ_DMA_OWN
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.no_dead_strip	_ltq_etop_alloc_skb
.subsections_via_symbols
