	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftmac100_rx_packet
_ftmac100_rx_packet:                    ## @ftmac100_rx_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_ftmac100_rx_locate_first_segment
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ftmac100_rx_packet_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_ftmac100_rx_drop_packet
LBB0_12:
	movl	$1, %eax
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_ftmac100_rxdes_last_segment
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_3
LBB0_7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ftmac100_rxdes_multicast
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	incl	8(%r14)
LBB0_9:
	movq	%r12, %rdi
	callq	_ftmac100_rxdes_get_dma_addr
	movl	(%rbx), %edi
	movq	_RX_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	%r12, %rdi
	callq	_ftmac100_rxdes_frame_length
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_ftmac100_rxdes_get_page
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_skb_fill_page_desc
	movslq	%r15d, %rax
	addq	%rax, 8(%r13)
	addl	%eax, (%r13)
	cmpl	$129, %eax
	jl	LBB0_11
## %bb.10:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 20(%r13)
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___pskb_pull_tail
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ftmac100_alloc_rx_page
	movq	%rbx, %rdi
	callq	_ftmac100_rx_pointer_advance
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, 16(%r13)
	incl	4(%r14)
	movl	8(%r13), %eax
	addl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_netif_receive_skb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx skb alloc failed\n"

	.comm	_RX_BUF_SIZE,4,2                ## @RX_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ftmac100_rx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftmac100_rx_packet
_ftmac100_rx_packet:                    ; @ftmac100_rx_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	bl	_ftmac100_rx_locate_first_segment
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_ftmac100_rx_packet_error
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_ftmac100_rx_drop_packet
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x22
	bl	_ftmac100_rxdes_last_segment
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	mov	w1, #128
	bl	_netdev_alloc_skb_ip_align
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.6:
	bl	_net_ratelimit
	cbz	x0, LBB0_2
; %bb.7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_2
LBB0_8:
	mov	x0, x22
	bl	_ftmac100_rxdes_multicast
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_10:
	mov	x0, x22
	bl	_ftmac100_rxdes_get_dma_addr
	mov	x1, x0
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _RX_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RX_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_dma_unmap_page
	mov	x0, x22
	bl	_ftmac100_rxdes_frame_length
	mov	x24, x0
	mov	x0, x22
	bl	_ftmac100_rxdes_get_page
	mov	x2, x0
	mov	x0, x23
	mov	w1, #0
	mov	w3, #0
	mov	x4, x24
	bl	_skb_fill_page_desc
	ldr	x8, [x23, #8]
	add	x8, x8, w24, sxtw
	str	x8, [x23, #8]
	ldr	w8, [x23]
	add	w8, w8, w24
	str	w8, [x23]
	cmp	w24, #129
	b.lt	LBB0_12
; %bb.11:
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x23, #20]
	add	w8, w9, w8
	str	w8, [x23, #20]
Lloh11:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
LBB0_12:
	mov	x0, x23
	mov	x1, x24
	bl	___pskb_pull_tail
Lloh14:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_ftmac100_alloc_rx_page
	mov	x0, x21
	bl	_ftmac100_rx_pointer_advance
	mov	x0, x23
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x23, #16]
	add	x8, x23, #8
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x23
	bl	_netif_receive_skb
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx skb alloc failed\n"

	.comm	_RX_BUF_SIZE,4,2                ; @RX_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ftmac100_rx_packet
.subsections_via_symbols
