	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet_reset_8390
_pcnet_reset_8390:                      ## @pcnet_reset_8390
	.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
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	xorps	%xmm0, %xmm0
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_E8390_STOP@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_ei_status@GOTPCREL(%rip), %rax
	movups	%xmm0, (%rax)
	movq	_E8390_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movq	_PCNET_RESET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r15, %rdi
	callq	_inb
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	movl	%eax, %edi
	callq	_outb
	xorl	%ebx, %ebx
	movq	_EN0_ISR@GOTPCREL(%rip), %r12
	movq	_ENISR_RESET@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_inb_p
	movl	(%r13), %edi
	testl	%eax, %edi
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$100, %edi
	callq	_udelay
	incl	%ebx
	cmpl	$100, %ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r13), %edi
	movl	$100, %ebx
LBB0_4:
	addq	(%r12), %r15
	movq	%r15, %rsi
	callq	_outb_p
	cmpl	$100, %ebx
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_misc_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ei_status,16,3                 ## @ei_status
	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.comm	_E8390_STOP,4,2                 ## @E8390_STOP
	.comm	_E8390_CMD,8,3                  ## @E8390_CMD
	.comm	_PCNET_RESET,8,3                ## @PCNET_RESET
	.comm	_EN0_ISR,8,3                    ## @EN0_ISR
	.comm	_ENISR_RESET,4,2                ## @ENISR_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcnet_reset_8390() did not complete.\n"

	.no_dead_strip	_pcnet_reset_8390
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet_reset_8390
_pcnet_reset_8390:                      ; @pcnet_reset_8390
	.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	x19, x0
Lloh0:
	adrp	x8, _ei_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ei_status@GOTPAGEOFF]
	ldr	w20, [x0]
	stp	xzr, xzr, [x8]
Lloh2:
	adrp	x8, _E8390_NODMA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E8390_NODMA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _E8390_PAGE0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E8390_PAGE0@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _E8390_STOP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _E8390_STOP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w0, w8, w10
Lloh11:
	adrp	x8, _E8390_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E8390_CMD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_outb_p
Lloh14:
	adrp	x21, _PCNET_RESET@GOTPAGE
Lloh15:
	ldr	x21, [x21, _PCNET_RESET@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inb
	ldr	x8, [x21]
	add	x1, x8, x20
	bl	_outb
	mov	w21, #0
Lloh16:
	adrp	x22, _EN0_ISR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _EN0_ISR@GOTPAGEOFF]
Lloh18:
	adrp	x23, _ENISR_RESET@GOTPAGE
Lloh19:
	ldr	x23, [x23, _ENISR_RESET@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_inb_p
	mov	x8, x0
	ldr	w0, [x23]
	tst	w0, w8
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #100
	bl	_udelay
	add	w21, w21, #1
	cmp	w21, #100
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x23]
LBB0_4:
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_outb_p
	cmp	w21, #100
	b.ne	LBB0_6
; %bb.5:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_6:
	mov	x0, x19
	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	_set_misc_reg
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ei_status,16,3                 ; @ei_status
	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.comm	_E8390_STOP,4,2                 ; @E8390_STOP
	.comm	_E8390_CMD,8,3                  ; @E8390_CMD
	.comm	_PCNET_RESET,8,3                ; @PCNET_RESET
	.comm	_EN0_ISR,8,3                    ; @EN0_ISR
	.comm	_ENISR_RESET,4,2                ; @ENISR_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcnet_reset_8390() did not complete.\n"

	.no_dead_strip	_pcnet_reset_8390
.subsections_via_symbols
