	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpc_net_rx
_cpc_net_rx:                            ## @cpc_net_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_dev_to_hdlc
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	8(%rax), %r14
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_dma_get_rx_frame_size
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_hdlc_type_trans
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	callq	_netif_rx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_dma_get_rx_frame_size
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	addl	$40, %eax
	cmpl	%eax, %ebx
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %esi
	leaq	L_.str(%rip), %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printk
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_28
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%r12, 16(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_dma_buf_read
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_11
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, 4(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$82, %edx
	callq	_cpc_trace
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r12)
	incl	28(%r12)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jns	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	negl	%eax
	movq	_DST_OVR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r12)
	incl	24(%r12)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DST_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r12)
	incl	20(%r12)
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DST_SHRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DST_RBIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_DST_ABT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r12)
	incl	12(%r12)
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_14
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_dev_kfree_skb_irq
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	32(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printk                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s : DCD is OFF - drop %d rx bytes\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s : MTU exceeded %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Memory squeeze!!\n"

	.comm	_DST_OVR,4,2                    ## @DST_OVR
	.comm	_DST_CRC,4,2                    ## @DST_CRC
	.comm	_DST_RBIT,4,2                   ## @DST_RBIT
	.comm	_DST_SHRT,4,2                   ## @DST_SHRT
	.comm	_DST_ABT,4,2                    ## @DST_ABT
	.no_dead_strip	_cpc_net_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpc_net_rx
_cpc_net_rx:                            ; @cpc_net_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	bl	_dev_to_hdlc
	ldr	x25, [x0]
	ldr	x8, [x25, #8]
	ldr	x20, [x8, #8]
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_get_rx_frame_size
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x28, _DST_RBIT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DST_RBIT@GOTPAGEOFF]
	movi.2s	v8, #1
Lloh4:
	adrp	x26, _DST_SHRT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DST_SHRT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _DST_ABT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DST_ABT@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x24
	mov	x1, x19
	bl	_hdlc_type_trans
	str	w0, [x24, #4]
	mov	x0, x24
	bl	_netif_rx
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dma_get_rx_frame_size
	mov	x24, x0
	cmn	w0, #1
	b.eq	LBB0_28
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #40
	cmp	w24, w8
	b.le	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	ldr	w8, [x19, #32]
	stp	x8, x24, [sp]
	mov	x0, x23
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #32]
	stp	x8, x24, [sp]
	mov	x0, x22
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_printk
	mov	x24, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_dev_alloc_skb
	cbz	x0, LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	str	x19, [x0, #16]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_dma_buf_read
	cbz	x24, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #0
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	str	w8, [x19, #4]
	ldr	x8, [x25]
	cbz	x8, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	w2, #82
	bl	_cpc_trace
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x24, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w0, #31, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	neg	w8, w0
Lloh10:
	adrp	x9, _DST_OVR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DST_OVR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #16]
	ldr	w9, [x19, #24]
	add	w9, w9, #1
	str	w9, [x19, #24]
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x9, _DST_CRC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DST_CRC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [x19, #16]
	add.2s	v0, v0, v8
	str	d0, [x19, #16]
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x28]
	ldr	w10, [x26]
	orr	w9, w10, w9
	ldr	w10, [x27]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	d0, [x19, #12]
	add.2s	v0, v0, v8
	stur	d0, [x19, #12]
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x24, LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_dev_kfree_skb_irq
	b	LBB0_3
LBB0_27:
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s : DCD is OFF - drop %d rx bytes\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s : MTU exceeded %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Memory squeeze!!\n"

	.comm	_DST_OVR,4,2                    ; @DST_OVR
	.comm	_DST_CRC,4,2                    ; @DST_CRC
	.comm	_DST_RBIT,4,2                   ; @DST_RBIT
	.comm	_DST_SHRT,4,2                   ; @DST_SHRT
	.comm	_DST_ABT,4,2                    ; @DST_ABT
	.no_dead_strip	_cpc_net_rx
.subsections_via_symbols
