	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_alloc_rx
_nb8800_alloc_rx:                       ## @nb8800_alloc_rx
	.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
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	(%rax), %r13
	movq	8(%rax), %r12
	movq	_RX_BUF_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_L1_CACHE_ALIGN
	movl	%eax, %edi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	callq	_napi_alloc_frag
	jmp	LBB0_3
LBB0_2:
	callq	_netdev_alloc_frag
LBB0_3:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_virt_to_head_page
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_page_address
	movq	%rbx, %r13
	subq	%rax, %r13
	movl	(%r14), %ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_dma_map_page
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_skb_free_frag
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, %rcx
	shlq	$4, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, 8(%rdx,%rcx)
	movq	%r13, (%rdx,%rcx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx,%rax,4)
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BUF_SIZE,4,2                ## @RX_BUF_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_nb8800_alloc_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_alloc_rx
_nb8800_alloc_rx:                       ; @nb8800_alloc_rx
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldp	x26, x25, [x0]
Lloh0:
	adrp	x24, _RX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RX_BUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_L1_CACHE_ALIGN
	cbz	w21, LBB0_2
; %bb.1:
	bl	_napi_alloc_frag
	mov	x21, x0
	cbnz	x0, LBB0_3
	b	LBB0_5
LBB0_2:
	bl	_netdev_alloc_frag
	mov	x21, x0
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_virt_to_head_page
	mov	x22, x0
	bl	_page_address
	sub	x23, x21, x0
	ldr	w3, [x24]
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_dma_map_page
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_skb_free_frag
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w8, w19
	add	x9, x26, x8, lsl #4
	stp	x23, x22, [x9]
	str	w24, [x25, x8, lsl #2]
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BUF_SIZE,4,2                ; @RX_BUF_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_nb8800_alloc_rx
.subsections_via_symbols
