	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_rx
_smc_rx:                                ## @smc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %r14d
	movq	_FIFO_PORTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_inw
	movq	_FP_RXEMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_1:
	movq	_PTR_READ@GOTPCREL(%rip), %rax
	movq	_PTR_RCV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_PTR_AUTOINC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_DATA_1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	callq	_inw
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	callq	_inw
	movl	%eax, %ebx
	andl	$2047, %ebx                     ## imm = 0x7FF
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_RS_ERRORS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.6:
	incl	20(%r12)
	movq	_RS_ALGNERR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	incl	16(%r12)
LBB0_8:
	movq	_RS_TOOSHORT@GOTPCREL(%rip), %rax
	movq	_RS_TOOLONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_10
## %bb.9:
	incl	12(%r12)
LBB0_10:
	movq	_RS_BADCRC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.11:
	addq	$8, %r12
	jmp	LBB0_12
LBB0_2:
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	2(%rbx), %esi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r13
	movq	_RS_ODDFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmpl	$1, %eax
	sbbl	$0, %ebx
	leal	-5(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	_DATA_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r14, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_put
	addl	$-4, %ebx
	sarl	%ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_insw
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_netif_rx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	incl	28(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 4(%r12)
	movq	_RS_MULTICAST@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.4:
	addq	$24, %r12
LBB0_12:
	incl	(%r12)
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	incl	32(%r12)
LBB0_13:
	movq	_MC_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_PORTS,8,3                 ## @FIFO_PORTS
	.comm	_FP_RXEMPTY,4,2                 ## @FP_RXEMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smc_rx() with nothing on Rx FIFO\n"

	.comm	_PTR_READ,4,2                   ## @PTR_READ
	.comm	_PTR_RCV,4,2                    ## @PTR_RCV
	.comm	_PTR_AUTOINC,4,2                ## @PTR_AUTOINC
	.comm	_POINTER,8,3                    ## @POINTER
	.comm	_DATA_1,8,3                     ## @DATA_1
L_.str.1:                               ## @.str.1
	.asciz	"Receive status %4.4x length %d.\n"

	.comm	_RS_ERRORS,4,2                  ## @RS_ERRORS
L_.str.2:                               ## @.str.2
	.asciz	"Low memory, packet dropped.\n"

	.comm	_MC_RELEASE,4,2                 ## @MC_RELEASE
	.comm	_MMU_CMD,8,3                    ## @MMU_CMD
	.comm	_RS_ODDFRAME,4,2                ## @RS_ODDFRAME
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_RS_MULTICAST,4,2               ## @RS_MULTICAST
	.comm	_RS_ALGNERR,4,2                 ## @RS_ALGNERR
	.comm	_RS_TOOSHORT,4,2                ## @RS_TOOSHORT
	.comm	_RS_TOOLONG,4,2                 ## @RS_TOOLONG
	.comm	_RS_BADCRC,4,2                  ## @RS_BADCRC
	.no_dead_strip	_smc_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_rx
_smc_rx:                                ; @smc_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w25, [x0]
Lloh0:
	adrp	x8, _FIFO_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIFO_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x25
	bl	_inw
Lloh3:
	adrp	x8, _FP_RXEMPTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FP_RXEMPTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_netdev_err
LBB0_2:
Lloh8:
	adrp	x8, _PTR_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTR_READ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PTR_RCV@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PTR_RCV@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _PTR_AUTOINC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PTR_AUTOINC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh17:
	adrp	x8, _POINTER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POINTER@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x25
	bl	_outw
Lloh20:
	adrp	x24, _DATA_1@GOTPAGE
Lloh21:
	ldr	x24, [x24, _DATA_1@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x25
	bl	_inw
	mov	x20, x0
	ldr	x8, [x24]
	add	x0, x8, x25
	bl	_inw
	and	w23, w0, #0x7ff
	stp	x20, x23, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
Lloh24:
	adrp	x8, _RS_ERRORS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RS_ERRORS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.3:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
Lloh27:
	adrp	x8, _RS_ALGNERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RS_ALGNERR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_5:
Lloh30:
	adrp	x8, _RS_TOOSHORT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RS_TOOSHORT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _RS_TOOLONG@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RS_TOOLONG@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_7:
Lloh36:
	adrp	x8, _RS_BADCRC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RS_BADCRC@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.8:
	add	x8, x19, #8
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	add	w1, w23, #2
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_13
; %bb.10:
	mov	x22, x0
Lloh39:
	adrp	x8, _RS_ODDFRAME@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RS_ODDFRAME@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	mov	w8, #-6
	cinc	w8, w8, ne
	add	w23, w8, w23
	mov	w1, #2
	bl	_skb_reserve
	ldr	x8, [x24]
	add	x24, x8, x25
	mov	x0, x22
	mov	x1, x23
	bl	_skb_put
	mov	x1, x0
	add	w8, w23, #1
	asr	w2, w8, #1
	mov	x0, x24
	bl	_insw
	mov	x0, x22
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x22]
	mov	x0, x22
	bl	_netif_rx
Lloh42:
	adrp	x8, _jiffies@GOTPAGE
Lloh43:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	ldr	w8, [x19, #4]
	add	w8, w8, w23
	str	w8, [x19, #4]
Lloh45:
	adrp	x8, _RS_MULTICAST@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RS_MULTICAST@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.11:
	add	x8, x19, #24
LBB0_12:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_14
LBB0_13:
Lloh48:
	adrp	x1, l_.str.2@PAGE
Lloh49:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
LBB0_14:
Lloh50:
	adrp	x8, _MC_RELEASE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MC_RELEASE@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x8, _MMU_CMD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MMU_CMD@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	add	x1, x8, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_outw
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_PORTS,8,3                 ; @FIFO_PORTS
	.comm	_FP_RXEMPTY,4,2                 ; @FP_RXEMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smc_rx() with nothing on Rx FIFO\n"

	.comm	_PTR_READ,4,2                   ; @PTR_READ
	.comm	_PTR_RCV,4,2                    ; @PTR_RCV
	.comm	_PTR_AUTOINC,4,2                ; @PTR_AUTOINC
	.comm	_POINTER,8,3                    ; @POINTER
	.comm	_DATA_1,8,3                     ; @DATA_1
l_.str.1:                               ; @.str.1
	.asciz	"Receive status %4.4x length %d.\n"

	.comm	_RS_ERRORS,4,2                  ; @RS_ERRORS
l_.str.2:                               ; @.str.2
	.asciz	"Low memory, packet dropped.\n"

	.comm	_MC_RELEASE,4,2                 ; @MC_RELEASE
	.comm	_MMU_CMD,8,3                    ; @MMU_CMD
	.comm	_RS_ODDFRAME,4,2                ; @RS_ODDFRAME
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_RS_MULTICAST,4,2               ; @RS_MULTICAST
	.comm	_RS_ALGNERR,4,2                 ; @RS_ALGNERR
	.comm	_RS_TOOSHORT,4,2                ; @RS_TOOSHORT
	.comm	_RS_TOOLONG,4,2                 ; @RS_TOOLONG
	.comm	_RS_BADCRC,4,2                  ; @RS_BADCRC
	.no_dead_strip	_smc_rx
.subsections_via_symbols
