	.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, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_bcom_buffer_done
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_bcom_prepare_next_buffer
	movq	%rax, -48(%rbp)
	movq	_FEC_RX_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movl	(%r14), %edi
	movl	(%r13), %esi
	movl	(%r15), %ecx
	callq	_dma_map_single
	movq	-48(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_bcom_submit_next_buffer
	incl	4(%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_bcom_buffer_done
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdx
	callq	_bcom_retrieve_buffer
	movq	%rax, %r13
	movl	(%r14), %edi
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movl	16(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	callq	_dma_unmap_single
	movq	_BCOM_FEC_RX_BD_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FEC_RX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	_BCOM_FEC_RX_BD_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-52(%rbp), %esi
	addl	$-4, %esi
	movq	%r13, %rdi
	callq	_skb_put
	movq	%r14, 8(%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	callq	_netif_rx
	movq	%r15, %r13
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_notice
	incl	4(%r14)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %r12
	movl	(%rbx), %edi
	callq	_bcom_prepare_next_buffer
	movq	%rax, -48(%rbp)
	movq	_FEC_RX_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	-48(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_bcom_submit_next_buffer
	jmp	LBB0_8
LBB0_9:
	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	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_BCOM_FEC_RX_BD_ERRORS,4,2      ## @BCOM_FEC_RX_BD_ERRORS
	.comm	_FEC_RX_BUFFER_SIZE,8,3         ## @FEC_RX_BUFFER_SIZE
	.comm	_BCOM_FEC_RX_BD_LEN_MASK,4,2    ## @BCOM_FEC_RX_BD_LEN_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory squeeze, dropping packet.\n"

	.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
	ldr	w0, [x0]
	bl	_bcom_buffer_done
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _BCOM_FEC_RX_BD_ERRORS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BCOM_FEC_RX_BD_ERRORS@GOTPAGEOFF]
Lloh4:
	adrp	x26, _FEC_RX_BUFFER_SIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _FEC_RX_BUFFER_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _BCOM_FEC_RX_BD_LEN_MASK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _BCOM_FEC_RX_BD_LEN_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_bcom_prepare_next_buffer
	str	x0, [sp, #8]
	ldr	x2, [x26]
	str	x2, [x0, #8]
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w3, [x24]
	bl	_dma_map_single
	ldr	x8, [sp, #8]
	str	x0, [x8]
	ldr	w0, [x20]
	mov	x1, x22
	bl	_bcom_submit_next_buffer
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_bcom_buffer_done
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x1, sp, #4
	add	x2, sp, #8
	bl	_bcom_retrieve_buffer
	mov	x22, x0
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	ldr	w2, [x22, #16]
	ldr	w3, [x24]
	bl	_dma_unmap_single
	ldr	w8, [sp, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26]
	bl	_dev_alloc_skb
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	w8, [sp, #4]
	ldr	w9, [x27]
	and	w8, w9, w8
	sub	w1, w8, #4
	mov	x0, x22
	bl	_skb_put
	str	x19, [x22, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x22, #4]
	mov	x0, x22
	bl	_netif_rx
	mov	x22, x23
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_dev_notice
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_bcom_prepare_next_buffer
	str	x0, [sp, #8]
	ldr	x2, [x26]
	str	x2, [x0, #8]
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w3, [x24]
	bl	_dma_map_single
	ldr	x8, [sp, #8]
	str	x0, [x8]
	ldr	w0, [x20]
	mov	x1, x22
	bl	_bcom_submit_next_buffer
	b	LBB0_3
LBB0_9:
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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_BCOM_FEC_RX_BD_ERRORS,4,2      ; @BCOM_FEC_RX_BD_ERRORS
	.comm	_FEC_RX_BUFFER_SIZE,8,3         ; @FEC_RX_BUFFER_SIZE
	.comm	_BCOM_FEC_RX_BD_LEN_MASK,4,2    ; @BCOM_FEC_RX_BD_LEN_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory squeeze, dropping packet.\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mpc52xx_fec_rx_interrupt
.subsections_via_symbols
