	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_8390_hdr
_get_8390_hdr:                          ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	(%rdi), %ebx
	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
	movq	_E8390_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_AXNET_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outb_p
	movq	_AXNET_DATAPORT@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_insw
	movl	(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EN0_RSARLO,8,3                 ## @EN0_RSARLO
	.comm	_EN0_RSARHI,8,3                 ## @EN0_RSARHI
	.comm	_E8390_RREAD,4,2                ## @E8390_RREAD
	.comm	_E8390_START,4,2                ## @E8390_START
	.comm	_AXNET_CMD,8,3                  ## @AXNET_CMD
	.comm	_AXNET_DATAPORT,8,3             ## @AXNET_DATAPORT
	.no_dead_strip	_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 get_8390_hdr
_get_8390_hdr:                          ; @get_8390_hdr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_outb_p
Lloh3:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_outb_p
Lloh6:
	adrp	x8, _E8390_RREAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E8390_RREAD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _E8390_START@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E8390_START@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w0, w9, w8
Lloh12:
	adrp	x8, _AXNET_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AXNET_CMD@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x21
	bl	_outb_p
Lloh15:
	adrp	x8, _AXNET_DATAPORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AXNET_DATAPORT@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x0, x8, x21
	mov	x1, x20
	mov	w2, #2
	bl	_insw
	ldr	w0, [x20]
	bl	_le16_to_cpu
	str	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EN0_RSARLO,8,3                 ; @EN0_RSARLO
	.comm	_EN0_RSARHI,8,3                 ; @EN0_RSARHI
	.comm	_E8390_RREAD,4,2                ; @E8390_RREAD
	.comm	_E8390_START,4,2                ; @E8390_START
	.comm	_AXNET_CMD,8,3                  ; @AXNET_CMD
	.comm	_AXNET_DATAPORT,8,3             ; @AXNET_DATAPORT
	.no_dead_strip	_get_8390_hdr
.subsections_via_symbols
