	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ne2k_pci_block_input
_ne2k_pci_block_input:                  ## @ne2k_pci_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	_ei_status@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.10:
	movl	8(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_1:
	movl	%ecx, %ebx
	movq	(%rdi), %r15
	movq	(%rdx), %r14
	movl	$1, (%r12)
	movq	_ONLY_32BIT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r12), %eax
	leal	3(%rsi), %r13d
	andl	$65532, %r13d                   ## imm = 0xFFFC
	testl	%eax, %eax
	cmovel	%esi, %r13d
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_E8390_START@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_NE_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb
	movzbl	%r13b, %edi
	movq	_EN0_RCNTLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb
	movl	%r13d, %edi
	sarl	$8, %edi
	movq	_EN0_RCNTHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb
	movzbl	%bl, %edi
	movq	_EN0_RSARLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb
	sarl	$8, %ebx
	movq	_EN0_RSARHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	%ebx, %edi
	callq	_outb
	movq	_E8390_RREAD@GOTPCREL(%rip), %rax
	movq	_E8390_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_NE_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb
	movq	_ONLY_16BIT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NE_BASE@GOTPCREL(%rip), %rcx
	movq	_NE_DATAPORT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%rcx), %rdi
	testl	%eax, 4(%r12)
	je	LBB0_4
## %bb.2:
	movl	%r13d, %edx
	sarl	%edx
	movq	%r14, %rsi
	callq	_insw
	testb	$1, %r13b
	je	LBB0_9
## %bb.3:
	movq	(%rbx), %rdi
	movq	_NE_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movslq	%r13d, %rcx
	movb	%al, -1(%rcx,%r14)
	jmp	LBB0_9
LBB0_4:
	movl	%r13d, %edx
	sarl	$2, %edx
	movq	%r14, %rsi
	callq	_insl
	testb	$3, %r13b
	je	LBB0_9
## %bb.5:
	movl	%r13d, %eax
	andl	$-4, %eax
	cltq
	addq	%rax, %r14
	testb	$2, %r13b
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	movq	_NE_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inw
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_7:
	testb	$1, %r13b
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	movq	_NE_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movb	%al, (%r14)
LBB0_9:
	movq	_ENISR_RDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_ISR@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_outb
	andb	$-2, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ei_status,12,2                 ## @ei_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMAing conflict in ne2k_pci_block_input [DMAstat:%d][irqlock:%d].\n"

	.comm	_ONLY_32BIT_IO,4,2              ## @ONLY_32BIT_IO
	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.comm	_E8390_START,4,2                ## @E8390_START
	.comm	_NE_CMD,8,3                     ## @NE_CMD
	.comm	_EN0_RCNTLO,8,3                 ## @EN0_RCNTLO
	.comm	_EN0_RCNTHI,8,3                 ## @EN0_RCNTHI
	.comm	_EN0_RSARLO,8,3                 ## @EN0_RSARLO
	.comm	_EN0_RSARHI,8,3                 ## @EN0_RSARHI
	.comm	_E8390_RREAD,4,2                ## @E8390_RREAD
	.comm	_ONLY_16BIT_IO,4,2              ## @ONLY_16BIT_IO
	.comm	_NE_BASE,8,3                    ## @NE_BASE
	.comm	_NE_DATAPORT,8,3                ## @NE_DATAPORT
	.comm	_ENISR_RDC,4,2                  ## @ENISR_RDC
	.comm	_EN0_ISR,8,3                    ## @EN0_ISR
	.no_dead_strip	_ne2k_pci_block_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ne2k_pci_block_input
_ne2k_pci_block_input:                  ; @ne2k_pci_block_input
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, x2
Lloh0:
	adrp	x21, _ei_status@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ei_status@GOTPAGEOFF]
	ldr	w2, [x21]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w3, [x21, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_2:
	mov	x20, x3
	ldr	x22, [x0]
	ldr	x19, [x8]
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x21, #4]
Lloh4:
	adrp	x9, _ONLY_32BIT_IO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ONLY_32BIT_IO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w10, w1, #3
	and	w10, w10, #0xfffc
	tst	w9, w8
	csel	w23, w1, w10, eq
Lloh7:
	adrp	x8, _E8390_NODMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E8390_NODMA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _E8390_PAGE0@GOTPAGE
Lloh11:
	ldr	x9, [x9, _E8390_PAGE0@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x24, _E8390_START@GOTPAGE
Lloh14:
	ldr	x24, [x24, _E8390_START@GOTPAGEOFF]
	ldr	w10, [x24]
	add	w8, w9, w8
	add	w0, w8, w10
Lloh15:
	adrp	x25, _NE_CMD@GOTPAGE
Lloh16:
	ldr	x25, [x25, _NE_CMD@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x22
	bl	_outb
	and	w0, w23, #0xff
Lloh17:
	adrp	x8, _EN0_RCNTLO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EN0_RCNTLO@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
	asr	w0, w23, #8
Lloh20:
	adrp	x8, _EN0_RCNTHI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EN0_RCNTHI@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
	and	w0, w20, #0xff
Lloh23:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
	asr	w0, w20, #8
Lloh26:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
Lloh29:
	adrp	x8, _E8390_RREAD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _E8390_RREAD@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x24]
	add	w0, w9, w8
	ldr	x8, [x25]
	add	x1, x8, x22
	bl	_outb
	ldr	w8, [x21, #4]
Lloh32:
	adrp	x9, _ONLY_16BIT_IO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ONLY_16BIT_IO@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x20, _NE_BASE@GOTPAGE
Lloh36:
	ldr	x20, [x20, _NE_BASE@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh37:
	adrp	x24, _NE_DATAPORT@GOTPAGE
Lloh38:
	ldr	x24, [x24, _NE_DATAPORT@GOTPAGEOFF]
	ldr	x11, [x24]
	add	x0, x11, x10
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	asr	w2, w23, #1
	mov	x1, x19
	bl	_insw
	tbz	w23, #0, LBB0_10
; %bb.4:
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_inb
	add	x8, x19, w23, sxtw
	sturb	w0, [x8, #-1]
	b	LBB0_10
LBB0_5:
	asr	w2, w23, #2
	mov	x1, x19
	bl	_insl
	tst	w23, #0x3
	b.eq	LBB0_10
; %bb.6:
	sxtw	x8, w23
	and	x8, x8, #0xfffffffffffffffc
	add	x19, x19, x8
	tbz	w23, #1, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_inw
	bl	_cpu_to_le16
	str	w0, [x19], #4
LBB0_8:
	tbz	w23, #0, LBB0_10
; %bb.9:
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_inb
	strb	w0, [x19]
LBB0_10:
Lloh39:
	adrp	x8, _ENISR_RDC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENISR_RDC@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _EN0_ISR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EN0_ISR@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	str	w8, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ei_status,12,2                 ; @ei_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMAing conflict in ne2k_pci_block_input [DMAstat:%d][irqlock:%d].\n"

	.comm	_ONLY_32BIT_IO,4,2              ; @ONLY_32BIT_IO
	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.comm	_E8390_START,4,2                ; @E8390_START
	.comm	_NE_CMD,8,3                     ; @NE_CMD
	.comm	_EN0_RCNTLO,8,3                 ; @EN0_RCNTLO
	.comm	_EN0_RCNTHI,8,3                 ; @EN0_RCNTHI
	.comm	_EN0_RSARLO,8,3                 ; @EN0_RSARLO
	.comm	_EN0_RSARHI,8,3                 ; @EN0_RSARHI
	.comm	_E8390_RREAD,4,2                ; @E8390_RREAD
	.comm	_ONLY_16BIT_IO,4,2              ; @ONLY_16BIT_IO
	.comm	_NE_BASE,8,3                    ; @NE_BASE
	.comm	_NE_DATAPORT,8,3                ; @NE_DATAPORT
	.comm	_ENISR_RDC,4,2                  ; @ENISR_RDC
	.comm	_EN0_ISR,8,3                    ; @EN0_ISR
	.no_dead_strip	_ne2k_pci_block_input
.subsections_via_symbols
