	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ne2k_pci_block_output
_ne2k_pci_block_output:                 ## @ne2k_pci_block_output
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r8
                                        ## kill: def $esi killed $esi def $rsi
	movq	_ei_status@GOTPCREL(%rip), %r9
	movq	_ONLY_32BIT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rsi), %ecx
	andl	$65532, %ecx                    ## imm = 0xFFFC
	movl	%esi, %ebx
	andl	$1, %ebx
	addl	%esi, %ebx
	testl	%eax, (%r9)
	cmovnel	%ecx, %ebx
	movl	4(%r9), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.10:
	movl	8(%r9), %ecx
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_1:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_NE_BASE@GOTPCREL(%rip), %rcx
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rax
	movq	_E8390_START@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	addl	(%rax), %edi
	movq	(%rcx), %r12
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movl	$1, 4(%r9)
	movq	_NE_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb
	movq	_ENISR_RDC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_EN0_ISR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%r12, %rsi
	callq	_outb
	movzbl	%bl, %edi
	movq	_EN0_RCNTLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb
	movl	%ebx, %edi
	sarl	$8, %edi
	movq	_EN0_RCNTHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb
	movq	_EN0_RSARLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_EN0_RSARHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movl	%r13d, %edi
	callq	_outb
	movq	_E8390_RWRITE@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	%r12, %rsi
	callq	_outb
	movq	_ONLY_16BIT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NE_DATAPORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_NE_BASE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdi
	movq	_ei_status@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	sarl	%ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_outsw
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %edx
	sarl	$2, %edx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_outsl
	testb	$2, %bl
	je	LBB0_5
## %bb.4:
	movslq	%ebx, %rax
	andq	$-4, %rax
	movl	(%r13,%rax), %edi
	callq	_le16_to_cpu
	movq	_NE_DATAPORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_NE_BASE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_outw
LBB0_5:
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_inb
	movl	(%r15), %edi
	testl	%eax, %edi
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	subq	%rbx, %rax
	cmpq	$3, %rax
	jb	LBB0_6
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netdev_warn
	movq	%rbx, %rdi
	callq	_ne2k_pci_reset_8390
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_NS8390_init
	movl	(%r15), %edi
LBB0_9:
	addq	(%r14), %r12
	movq	%r12, %rsi
	callq	_outb
	movq	_ei_status@GOTPCREL(%rip), %rax
	andb	$-2, 4(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NE_BASE,8,3                    ## @NE_BASE
	.comm	_ei_status,12,2                 ## @ei_status
	.comm	_ONLY_32BIT_IO,4,2              ## @ONLY_32BIT_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMAing conflict in ne2k_pci_block_output.[DMAstat:%d][irqlock:%d]\n"

	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.comm	_E8390_START,4,2                ## @E8390_START
	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_NE_CMD,8,3                     ## @NE_CMD
	.comm	_ENISR_RDC,4,2                  ## @ENISR_RDC
	.comm	_EN0_ISR,8,3                    ## @EN0_ISR
	.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_RWRITE,4,2               ## @E8390_RWRITE
	.comm	_ONLY_16BIT_IO,4,2              ## @ONLY_16BIT_IO
	.comm	_NE_DATAPORT,8,3                ## @NE_DATAPORT
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"timeout waiting for Tx RDC.\n"

	.comm	_E8390_RREAD,4,2                ## @E8390_RREAD
	.no_dead_strip	_ne2k_pci_block_output
.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_output
_ne2k_pci_block_output:                 ; @ne2k_pci_block_output
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x22, _ei_status@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ei_status@GOTPAGEOFF]
Lloh2:
	adrp	x8, _ONLY_32BIT_IO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ONLY_32BIT_IO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w9, w1, #3
	and	w9, w9, #0xfffc
	and	w10, w1, #0x1
	add	w10, w10, w1
	ldp	w11, w2, [x22]
	tst	w8, w11
	csel	w27, w10, w9, eq
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w3, [x22, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_2:
	mov	x21, x3
Lloh7:
	adrp	x8, _NE_BASE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NE_BASE@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	mov	w8, #1
	str	w8, [x22, #4]
Lloh10:
	adrp	x8, _E8390_PAGE0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E8390_PAGE0@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x28, _E8390_START@GOTPAGE
Lloh14:
	ldr	x28, [x28, _E8390_START@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh15:
	adrp	x10, _E8390_NODMA@GOTPAGE
Lloh16:
	ldr	x10, [x10, _E8390_NODMA@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w0, w8, w10
Lloh18:
	adrp	x26, _NE_CMD@GOTPAGE
Lloh19:
	ldr	x26, [x26, _NE_CMD@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x1, x8, x23
	bl	_outb
Lloh20:
	adrp	x25, _ENISR_RDC@GOTPAGE
Lloh21:
	ldr	x25, [x25, _ENISR_RDC@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh22:
	adrp	x24, _EN0_ISR@GOTPAGE
Lloh23:
	ldr	x24, [x24, _EN0_ISR@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outb
	and	w0, w27, #0xff
Lloh24:
	adrp	x8, _EN0_RCNTLO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EN0_RCNTLO@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb
	asr	w0, w27, #8
Lloh27:
	adrp	x8, _EN0_RCNTHI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EN0_RCNTHI@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb
Lloh30:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	w0, #0
	bl	_outb
Lloh33:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x21
	bl	_outb
Lloh36:
	adrp	x8, _E8390_RWRITE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E8390_RWRITE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x28]
	add	w0, w9, w8
	ldr	x8, [x26]
Lloh39:
	adrp	x26, _NE_BASE@GOTPAGE
Lloh40:
	ldr	x26, [x26, _NE_BASE@GOTPAGEOFF]
	add	x1, x8, x23
	bl	_outb
	ldr	w8, [x22]
Lloh41:
	adrp	x9, _ONLY_16BIT_IO@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ONLY_16BIT_IO@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	ldr	x10, [x26]
Lloh44:
	adrp	x21, _NE_DATAPORT@GOTPAGE
Lloh45:
	ldr	x21, [x21, _NE_DATAPORT@GOTPAGEOFF]
	ldr	x11, [x21]
	add	x0, x11, x10
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	asr	w2, w27, #1
	mov	x1, x20
	bl	_outsw
	b	LBB0_6
LBB0_4:
	asr	w2, w27, #2
	mov	x1, x20
	bl	_outsl
	tbz	w27, #1, LBB0_6
; %bb.5:
	sxtw	x8, w27
	and	x8, x8, #0xfffffffffffffffc
	ldr	w0, [x20, x8]
	bl	_le16_to_cpu
	ldr	x8, [x26]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outw
LBB0_6:
Lloh46:
	adrp	x20, _jiffies@GOTPAGE
Lloh47:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x21, [x20]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x23
	bl	_inb
	mov	x8, x0
	ldr	w0, [x25]
	tst	w0, w8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	sub	x8, x8, x21
	cmp	x8, #3
	b.lo	LBB0_7
; %bb.9:
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	mov	x0, x19
	bl	_ne2k_pci_reset_8390
	mov	x0, x19
	mov	w1, #1
	bl	_NS8390_init
	ldr	w0, [x25]
LBB0_10:
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outb
	ldr	w8, [x22, #4]
	and	w8, w8, #0xfffffffe
	str	w8, [x22, #4]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_NE_BASE,8,3                    ; @NE_BASE
	.comm	_ei_status,12,2                 ; @ei_status
	.comm	_ONLY_32BIT_IO,4,2              ; @ONLY_32BIT_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMAing conflict in ne2k_pci_block_output.[DMAstat:%d][irqlock:%d]\n"

	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.comm	_E8390_START,4,2                ; @E8390_START
	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_NE_CMD,8,3                     ; @NE_CMD
	.comm	_ENISR_RDC,4,2                  ; @ENISR_RDC
	.comm	_EN0_ISR,8,3                    ; @EN0_ISR
	.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_RWRITE,4,2               ; @E8390_RWRITE
	.comm	_ONLY_16BIT_IO,4,2              ; @ONLY_16BIT_IO
	.comm	_NE_DATAPORT,8,3                ; @NE_DATAPORT
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"timeout waiting for Tx RDC.\n"

	.comm	_E8390_RREAD,4,2                ; @E8390_RREAD
	.no_dead_strip	_ne2k_pci_block_output
.subsections_via_symbols
