	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_rx_entry
_pcnet32_rx_entry:                      ## @pcnet32_rx_entry
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rdx), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	cmpl	$768, %ecx                      ## imm = 0x300
	jne	LBB0_3
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	andl	$4095, %ebx                     ## imm = 0xFFF
	leal	-4(%rbx), %r15d
	movq	_PKT_BUF_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpw	(%rax), %r15w
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movswl	%r15w, %r8d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	addq	$12, %r12
	jmp	LBB0_24
LBB0_3:
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_8
## %bb.4:
	testl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_9
LBB0_5:
	testl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_10
LBB0_6:
	testl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_11
LBB0_7:
	testl	$1024, %eax                     ## imm = 0x400
	jne	LBB0_12
	jmp	LBB0_25
LBB0_8:
	incl	12(%r12)
	testl	$8192, %eax                     ## imm = 0x2000
	je	LBB0_5
LBB0_9:
	incl	28(%r12)
	testl	$4096, %eax                     ## imm = 0x1000
	je	LBB0_6
LBB0_10:
	incl	24(%r12)
	testl	$2048, %eax                     ## imm = 0x800
	je	LBB0_7
LBB0_11:
	incl	20(%r12)
	testl	$1024, %eax                     ## imm = 0x400
	je	LBB0_25
LBB0_12:
	addq	$16, %r12
	jmp	LBB0_24
LBB0_13:
	cmpw	$63, %bx
	ja	LBB0_15
## %bb.14:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	addq	$12, %r12
	jmp	LBB0_24
LBB0_15:
	movq	_rx_copybreak@GOTPCREL(%rip), %rax
	cmpw	(%rax), %r15w
	jle	LBB0_19
## %bb.16:
	movq	_PKT_BUF_SKB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %rbx
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
	movl	8(%r14), %edi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rsi
	movq	_PKT_BUF_SIZE@GOTPCREL(%rip), %rbx
	movswl	(%rbx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	8(%r14), %edi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_netif_err
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	jmp	LBB0_23
LBB0_19:
	movzwl	%r15w, %esi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r13
	addq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	%rax, %rbx
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movswl	%r15w, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movslq	-48(%rbp), %r15                 ## 4-byte Folded Reload
	movl	(%rax,%r15,4), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edx
	callq	_pci_dma_sync_single_for_cpu
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movq	16(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_skb_copy_to_linear_data
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movl	(%rax,%r15,4), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edx
	callq	_pci_dma_sync_single_for_device
LBB0_21:
	movl	8(%rbx), %eax
	addl	%eax, 4(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_receive_skb
	jmp	LBB0_24
LBB0_22:
	movq	16(%r14), %rax
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	(%rax,%rdx,8), %rbx
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movl	(%rax,%rdx,4), %esi
	movswl	(%rcx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movswl	%r15w, %esi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	16(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rax,%rdx,8)
	movq	(%r14), %rax
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, (%rax,%rdx,4)
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	testq	%rbx, %rbx
	jne	LBB0_21
LBB0_23:
	addq	$8, %r12
LBB0_24:
	incl	(%r12)
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_BUF_SIZE,2,1               ## @PKT_BUF_SIZE
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Impossible packet size %d!\n"

	.comm	_rx_err,4,2                     ## @rx_err
L_.str.1:                               ## @.str.1
	.asciz	"Runt packet!\n"

	.comm	_rx_copybreak,2,1               ## @rx_copybreak
	.comm	_PKT_BUF_SKB,8,3                ## @PKT_BUF_SKB
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
L_.str.2:                               ## @.str.2
	.asciz	"DMA mapping error.\n"

	.no_dead_strip	_pcnet32_rx_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_rx_entry
_pcnet32_rx_entry:                      ; @pcnet32_rx_entry
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x2, #8]
	bl	_le16_to_cpu
	and	w8, w0, #0xff00
	cmp	w8, #768
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x23, #4]
	bl	_le32_to_cpu
	and	w24, w0, #0xfff
	sub	w21, w24, #4
Lloh0:
	adrp	x27, _PKT_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PKT_BUF_SIZE@GOTPAGEOFF]
	ldrsh	w8, [x27]
	cmp	w21, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.2:
Lloh2:
	adrp	x8, _drv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x8, w21
	str	x8, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_15
LBB0_3:
	tbnz	w0, #8, LBB0_8
; %bb.4:
	tbnz	w0, #13, LBB0_9
LBB0_5:
	tbnz	w0, #12, LBB0_10
LBB0_6:
	tbnz	w0, #11, LBB0_11
LBB0_7:
	tbnz	w0, #10, LBB0_12
	b	LBB0_17
LBB0_8:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	tbz	w0, #13, LBB0_5
LBB0_9:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	tbz	w0, #12, LBB0_6
LBB0_10:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	tbz	w0, #11, LBB0_7
LBB0_11:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	tbz	w0, #10, LBB0_17
LBB0_12:
	add	x19, x19, #16
	b	LBB0_16
LBB0_13:
	cmp	w24, #63
	b.hi	LBB0_18
; %bb.14:
Lloh7:
	adrp	x8, _rx_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	add	x19, x19, #12
LBB0_16:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_17:
	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
LBB0_18:
Lloh12:
	adrp	x8, _rx_copybreak@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rx_copybreak@GOTPAGEOFF]
Lloh14:
	ldrsh	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_22
; %bb.19:
Lloh15:
	adrp	x8, _PKT_BUF_SKB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PKT_BUF_SKB@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_26
; %bb.20:
	mov	x25, x0
Lloh18:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	bl	_skb_reserve
	ldr	w0, [x20, #8]
	ldr	x1, [x25, #16]
	ldrsh	w2, [x27]
Lloh21:
	adrp	x24, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh22:
	ldr	x24, [x24, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	bl	_pci_map_single
	mov	x26, x0
	ldr	w0, [x20, #8]
	mov	x1, x26
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_25
; %bb.21:
Lloh23:
	adrp	x8, _rx_err@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	mov	x0, x25
	bl	_dev_kfree_skb
	add	x19, x19, #8
	b	LBB0_16
LBB0_22:
Lloh28:
	adrp	x23, _NET_IP_ALIGN@GOTPAGE
Lloh29:
	ldr	x23, [x23, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, w21, uxth
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_26
; %bb.23:
	mov	x24, x0
	ldr	x1, [x23]
	bl	_skb_reserve
	mov	x0, x24
	mov	x1, x21
	bl	_skb_put
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	mov	x9, x22
	sbfiz	x23, x9, #2, #32
	ldr	w1, [x8, x23]
Lloh30:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh31:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x2, x21
	bl	_pci_dma_sync_single_for_cpu
	ldr	x8, [x20, #16]
	ldr	x8, [x8, w22, sxtw #3]
	ldr	x1, [x8, #16]
	mov	x0, x24
	mov	x2, x21
	bl	_skb_copy_to_linear_data
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	ldr	w1, [x8, x23]
	ldr	w3, [x25]
	mov	x2, x21
	bl	_pci_dma_sync_single_for_device
LBB0_24:
	ldr	w8, [x24, #8]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x24
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x24]
	mov	x0, x24
	bl	_netif_receive_skb
	b	LBB0_16
LBB0_25:
	ldr	x8, [x20, #16]
	sbfiz	x28, x22, #3, #32
	mov	x9, x24
	ldr	x24, [x8, x28]
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	sbfiz	x22, x22, #2, #32
	ldr	w1, [x8, x22]
	ldrsh	w2, [x27]
	ldr	w3, [x9]
	bl	_pci_unmap_single
	mov	x0, x24
	mov	x1, x21
	bl	_skb_put
	ldr	x8, [x20, #16]
	str	x25, [x8, x28]
	ldr	x8, [x20]
	str	w26, [x8, x22]
	mov	x0, x26
	bl	_cpu_to_le32
	str	w0, [x23]
	cbnz	x24, LBB0_24
LBB0_26:
	add	x19, x19, #8
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_BUF_SIZE,2,1               ; @PKT_BUF_SIZE
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Impossible packet size %d!\n"

	.comm	_rx_err,4,2                     ; @rx_err
l_.str.1:                               ; @.str.1
	.asciz	"Runt packet!\n"

	.comm	_rx_copybreak,2,1               ; @rx_copybreak
	.comm	_PKT_BUF_SKB,8,3                ; @PKT_BUF_SKB
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
l_.str.2:                               ; @.str.2
	.asciz	"DMA mapping error.\n"

	.no_dead_strip	_pcnet32_rx_entry
.subsections_via_symbols
