	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block_input
_block_input:                           ## @block_input
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	callq	_netdev_priv
	movq	(%r15), %r15
	movq	%rax, %rdi
	callq	_netif_msg_rx_status
	cmpl	$4, %r14d
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leal	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_dbg
LBB0_3:
	movzbl	%r13b, %edi
	movq	_EN0_RSARLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb_p
	sarl	$8, %r13d
	movq	_EN0_RSARHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movl	%r13d, %edi
	callq	_outb_p
	movq	_E8390_RREAD@GOTPCREL(%rip), %rax
	movq	_E8390_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_AXNET_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb_p
	movq	_AXNET_DATAPORT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r12, %rdi
	movl	%r14d, %edx
	sarl	%edx
	movq	%r15, %rsi
	callq	_insw
	testb	$1, %r14b
	je	LBB0_5
## %bb.4:
	addq	(%rbx), %r12
	movq	%r12, %rdi
	callq	_inb
	movslq	%r14d, %rcx
	movb	%al, -1(%rcx,%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[bi=%d]\n"

	.comm	_EN0_RSARLO,8,3                 ## @EN0_RSARLO
	.comm	_EN0_RSARHI,8,3                 ## @EN0_RSARHI
	.comm	_E8390_RREAD,4,2                ## @E8390_RREAD
	.comm	_E8390_START,4,2                ## @E8390_START
	.comm	_AXNET_CMD,8,3                  ## @AXNET_CMD
	.comm	_AXNET_DATAPORT,8,3             ## @AXNET_DATAPORT
	.no_dead_strip	_block_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block_input
_block_input:                           ; @block_input
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w23, [x0]
	bl	_netdev_priv
	ldr	x20, [x20]
	bl	_netif_msg_rx_status
	cmp	w19, #4
	b.eq	LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	add	w2, w19, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_dbg
LBB0_3:
	and	w0, w21, #0xff
Lloh2:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
	asr	w0, w21, #8
Lloh5:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
Lloh8:
	adrp	x8, _E8390_RREAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E8390_RREAD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _E8390_START@GOTPAGE
Lloh12:
	ldr	x9, [x9, _E8390_START@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	add	w0, w9, w8
Lloh14:
	adrp	x8, _AXNET_CMD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AXNET_CMD@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
Lloh17:
	adrp	x21, _AXNET_DATAPORT@GOTPAGE
Lloh18:
	ldr	x21, [x21, _AXNET_DATAPORT@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x23
	asr	w2, w19, #1
	mov	x1, x20
	bl	_insw
	tbz	w19, #0, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	add	x0, x8, x23
	bl	_inb
	add	x8, x20, w19, sxtw
	sturb	w0, [x8, #-1]
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[bi=%d]\n"

	.comm	_EN0_RSARLO,8,3                 ; @EN0_RSARLO
	.comm	_EN0_RSARHI,8,3                 ; @EN0_RSARHI
	.comm	_E8390_RREAD,4,2                ; @E8390_RREAD
	.comm	_E8390_START,4,2                ; @E8390_START
	.comm	_AXNET_CMD,8,3                  ; @AXNET_CMD
	.comm	_AXNET_DATAPORT,8,3             ; @AXNET_DATAPORT
	.no_dead_strip	_block_input
.subsections_via_symbols
