	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc52xx_fec_rx_interrupt
_mpc52xx_fec_rx_interrupt:              ## @mpc52xx_fec_rx_interrupt
	.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	%rsi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock
	movl	4(%r14), %edi
	callq	_bcom_buffer_done
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	-44(%rbp), %r15
	leaq	-56(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mpc52xx_fec_rx_submit
	incl	4(%r12)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	callq	_bcom_buffer_done
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_bcom_retrieve_buffer
	movq	%rax, %r13
	movq	_BCOM_FEC_RX_BD_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	movq	-56(%rbp), %rax
	movl	(%rax), %r15d
	movq	_FEC_RX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	callq	_mpc52xx_fec_rx_submit
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%r12), %edi
	movl	4(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	callq	_dma_unmap_single
	movq	_BCOM_FEC_RX_BD_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-44(%rbp), %esi
	addl	$-4, %esi
	movq	%r13, %rdi
	callq	_skb_put
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_skb_defer_rx_timestamp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_netif_rx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_spin_lock
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rsi
	callq	_dev_notice
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mpc52xx_fec_rx_submit
	incl	4(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r15
	leaq	-56(%rbp), %rbx
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCOM_FEC_RX_BD_ERRORS,4,2      ## @BCOM_FEC_RX_BD_ERRORS
	.comm	_FEC_RX_BUFFER_SIZE,4,2         ## @FEC_RX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Low memory - dropped packet.\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_BCOM_FEC_RX_BD_LEN_MASK,4,2    ## @BCOM_FEC_RX_BD_LEN_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mpc52xx_fec_rx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc52xx_fec_rx_interrupt
_mpc52xx_fec_rx_interrupt:              ; @mpc52xx_fec_rx_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	bl	_spin_lock
	ldr	w0, [x20, #4]
	bl	_bcom_buffer_done
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x24, _BCOM_FEC_RX_BD_ERRORS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BCOM_FEC_RX_BD_ERRORS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _FEC_RX_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FEC_RX_BUFFER_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _BCOM_FEC_RX_BD_LEN_MASK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _BCOM_FEC_RX_BD_LEN_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_dev_notice
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_mpc52xx_fec_rx_submit
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #4]
	bl	_bcom_buffer_done
	cbz	x0, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	add	x1, sp, #4
	add	x2, sp, #8
	bl	_bcom_retrieve_buffer
	mov	x22, x0
	ldr	w8, [sp, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	w23, [x8]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_mpc52xx_fec_rx_submit
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [x19]
	ldr	w2, [x22, #4]
	ldr	w3, [x26]
	mov	x1, x23
	bl	_dma_unmap_single
	ldr	w8, [sp, #4]
	ldr	w9, [x27]
	and	w8, w9, w8
	sub	w1, w8, #4
	mov	x0, x22
	bl	_skb_put
	mov	x0, x22
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x22]
	mov	x0, x22
	bl	_skb_defer_rx_timestamp
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_netif_rx
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_spin_lock
	b	LBB0_4
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BCOM_FEC_RX_BD_ERRORS,4,2      ; @BCOM_FEC_RX_BD_ERRORS
	.comm	_FEC_RX_BUFFER_SIZE,4,2         ; @FEC_RX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Low memory - dropped packet.\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_BCOM_FEC_RX_BD_LEN_MASK,4,2    ; @BCOM_FEC_RX_BD_LEN_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mpc52xx_fec_rx_interrupt
.subsections_via_symbols
