	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_new_rxbdp
_fec_enet_new_rxbdp:                    ## @fec_enet_new_rxbdp
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%r12), %rsi
	movq	%rsi, %rcx
	andq	%rax, %rcx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	subl	%ecx, %esi
	incl	%esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_reserve
	movq	(%rbx), %rax
	movq	(%r12), %rsi
LBB0_2:
	movq	8(%r12), %rdi
	movq	_FEC_ENET_RX_FRSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rsi, %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	callq	_dma_map_single
	movl	%eax, %edi
	callq	_cpu_to_fec32
	movl	%eax, (%r15)
	movq	8(%r12), %rbx
	movl	%eax, %edi
	callq	_fec32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_ENET_RX_FRSIZE,8,3         ## @FEC_ENET_RX_FRSIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx DMA memory map failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fec_enet_new_rxbdp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_new_rxbdp
_fec_enet_new_rxbdp:                    ; @fec_enet_new_rxbdp
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x1, [x22]
	ldr	x8, [x0]
	and	x9, x8, x1
	cbz	w9, LBB0_2
; %bb.1:
	sub	w8, w8, w9
	add	w1, w8, #1
	mov	x0, x22
	bl	_skb_reserve
	ldr	x1, [x22]
	ldr	x8, [x21]
LBB0_2:
Lloh0:
	adrp	x9, _FEC_ENET_RX_FRSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FEC_ENET_RX_FRSIZE@GOTPAGEOFF]
	ldr	x0, [x21, #8]
Lloh2:
	ldr	x9, [x9]
	sub	x2, x9, x8
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_map_single
	bl	_cpu_to_fec32
	str	w0, [x20]
	ldr	x20, [x21, #8]
	bl	_fec32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_dma_mapping_error
	cbz	x0, LBB0_6
; %bb.3:
	bl	_net_ratelimit
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_ENET_RX_FRSIZE,8,3         ; @FEC_ENET_RX_FRSIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx DMA memory map failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fec_enet_new_rxbdp
.subsections_via_symbols
