	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_block_input
_dma_block_input:                       ## @dma_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, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	(%rdx), %r13
	callq	_netdev_priv
	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:
	movq	_ei_status@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.7:
	movl	4(%rsi), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_4:
	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
	movl	$1, (%rsi)
	movq	_PCNET_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movq	%r13, %rbx
	movzbl	%r14b, %r13d
	movq	_EN0_RCNTLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	%r13d, %edi
	callq	_outb_p
	movl	%r14d, %edi
	sarl	$8, %edi
	movq	_EN0_RCNTHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movzbl	%r12b, %edi
	movq	_EN0_RSARLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	sarl	$8, %r12d
	movq	_EN0_RSARHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	_E8390_RREAD@GOTPCREL(%rip), %rax
	movq	_E8390_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_PCNET_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movq	_PCNET_DATAPORT@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%r15, %rdi
	movl	%r14d, %edx
	sarl	%edx
	movq	%rbx, %rsi
	callq	_insw
	testb	$1, %r13b
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_inb
	movslq	%r14d, %rcx
	movb	%al, -1(%rcx,%rbx)
LBB0_6:
	movq	_ENISR_RDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_ISR@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_outb_p
	movq	_ei_status@GOTPCREL(%rip), %rax
	andb	$-2, (%rax)
	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	_ei_status,8,2                  ## @ei_status
L_.str.1:                               ## @.str.1
	.asciz	"DMAing conflict in dma_block_input.[DMAstat:%1x][irqlock:%1x]\n"

	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.comm	_E8390_START,4,2                ## @E8390_START
	.comm	_PCNET_CMD,8,3                  ## @PCNET_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	_PCNET_DATAPORT,8,3             ## @PCNET_DATAPORT
	.comm	_ENISR_RDC,4,2                  ## @ENISR_RDC
	.comm	_EN0_ISR,8,3                    ## @EN0_ISR
	.no_dead_strip	_dma_block_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_block_input
_dma_block_input:                       ; @dma_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	x21, x3
	mov	x19, x1
	mov	x22, x0
	ldr	w23, [x0]
	ldr	x20, [x2]
	bl	_netdev_priv
	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:
Lloh2:
	adrp	x24, _ei_status@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ei_status@GOTPAGEOFF]
	ldr	w2, [x24]
	cbz	w2, LBB0_5
; %bb.4:
	ldr	w3, [x24, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	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_5:
	mov	w8, #1
	str	w8, [x24]
Lloh6:
	adrp	x8, _E8390_NODMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E8390_NODMA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _E8390_PAGE0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E8390_PAGE0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x22, _E8390_START@GOTPAGE
Lloh13:
	ldr	x22, [x22, _E8390_START@GOTPAGEOFF]
	ldr	w10, [x22]
	add	w8, w9, w8
	add	w0, w8, w10
Lloh14:
	adrp	x25, _PCNET_CMD@GOTPAGE
Lloh15:
	ldr	x25, [x25, _PCNET_CMD@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x23
	bl	_outb_p
	and	w0, w19, #0xff
Lloh16:
	adrp	x8, _EN0_RCNTLO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EN0_RCNTLO@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
	asr	w0, w19, #8
Lloh19:
	adrp	x8, _EN0_RCNTHI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EN0_RCNTHI@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
	and	w0, w21, #0xff
Lloh22:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
	asr	w0, w21, #8
Lloh25:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
Lloh28:
	adrp	x8, _E8390_RREAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E8390_RREAD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x22]
	add	w0, w9, w8
	ldr	x8, [x25]
	add	x1, x8, x23
	bl	_outb_p
Lloh31:
	adrp	x21, _PCNET_DATAPORT@GOTPAGE
Lloh32:
	ldr	x21, [x21, _PCNET_DATAPORT@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x23
	asr	w2, w19, #1
	mov	x1, x20
	bl	_insw
	tbz	w19, #0, LBB0_7
; %bb.6:
	ldr	x8, [x21]
	add	x0, x8, x23
	bl	_inb
	add	x8, x20, w19, sxtw
	sturb	w0, [x8, #-1]
LBB0_7:
Lloh33:
	adrp	x8, _ENISR_RDC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENISR_RDC@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _EN0_ISR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EN0_ISR@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb_p
	ldr	w8, [x24]
	and	w8, w8, #0xfffffffe
	str	w8, [x24]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[bi=%d]\n"

	.comm	_ei_status,8,2                  ; @ei_status
l_.str.1:                               ; @.str.1
	.asciz	"DMAing conflict in dma_block_input.[DMAstat:%1x][irqlock:%1x]\n"

	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.comm	_E8390_START,4,2                ; @E8390_START
	.comm	_PCNET_CMD,8,3                  ; @PCNET_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	_PCNET_DATAPORT,8,3             ; @PCNET_DATAPORT
	.comm	_ENISR_RDC,4,2                  ; @ENISR_RDC
	.comm	_EN0_ISR,8,3                    ; @EN0_ISR
	.no_dead_strip	_dma_block_input
.subsections_via_symbols
