	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_get_8390_hdr
_dma_get_8390_hdr:                      ## @dma_get_8390_hdr
	.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	%edx, %r15d
	movq	_ei_status@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_1:
	movq	%rsi, %r14
	movq	_E8390_NODMA@GOTPCREL(%rip), %rcx
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rcx), %eax
	movl	(%rdi), %ebx
	movq	_E8390_START@GOTPCREL(%rip), %r13
	addl	(%r13), %eax
	movl	$1, (%r12)
	movq	_PCNET_CMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outb_p
	movq	_EN0_RCNTLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$4, %edi
	callq	_outb_p
	movq	_EN0_RCNTHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb_p
	movq	_EN0_RSARLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb_p
	movq	_EN0_RSARHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	%r15d, %edi
	callq	_outb_p
	movq	_E8390_RREAD@GOTPCREL(%rip), %rax
	movl	(%r13), %edi
	addl	(%rax), %edi
	movq	_PCNET_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outb_p
	movq	_PCNET_DATAPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_insw
	movl	(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	movq	_ENISR_RDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_ISR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_outb_p
	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,8,2                  ## @ei_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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_get_8390_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_get_8390_hdr
_dma_get_8390_hdr:                      ; @dma_get_8390_hdr
	.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	x20, 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, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_netdev_err
LBB0_2:
	mov	x19, x1
	ldr	w22, [x0]
	mov	w8, #1
	str	w8, [x21]
Lloh4:
	adrp	x8, _E8390_NODMA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E8390_NODMA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _E8390_PAGE0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _E8390_PAGE0@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x23, _E8390_START@GOTPAGE
Lloh11:
	ldr	x23, [x23, _E8390_START@GOTPAGEOFF]
	ldr	w10, [x23]
	add	w8, w9, w8
	add	w0, w8, w10
Lloh12:
	adrp	x24, _PCNET_CMD@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PCNET_CMD@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x22
	bl	_outb_p
Lloh14:
	adrp	x8, _EN0_RCNTLO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EN0_RCNTLO@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	w0, #4
	bl	_outb_p
Lloh17:
	adrp	x8, _EN0_RCNTHI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EN0_RCNTHI@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	w0, #0
	bl	_outb_p
Lloh20:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	w0, #0
	bl	_outb_p
Lloh23:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x20
	bl	_outb_p
Lloh26:
	adrp	x8, _E8390_RREAD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _E8390_RREAD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x23]
	add	w0, w9, w8
	ldr	x8, [x24]
	add	x1, x8, x22
	bl	_outb_p
Lloh29:
	adrp	x8, _PCNET_DATAPORT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCNET_DATAPORT@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x0, x8, x22
	mov	x1, x19
	mov	w2, #2
	bl	_insw
	ldr	w0, [x19]
	bl	_le16_to_cpu
Lloh32:
	adrp	x8, _ENISR_RDC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENISR_RDC@GOTPAGEOFF]
	str	w0, [x19]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _EN0_ISR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EN0_ISR@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb_p
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	str	w8, [x21]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ei_status,8,2                  ; @ei_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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_get_8390_hdr
.subsections_via_symbols
