	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ax88190
_get_ax88190:                           ## @get_ax88190
	.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
	cmpl	$960, (%rdi)                    ## imm = 0x3C0
	jne	LBB0_2
## %bb.1:
	movq	8(%rdi), %r14
	movl	(%r14), %ebx
	movq	_EN0_DCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$1, %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	$4, %edi
	callq	_outb_p
	movq	_E8390_RREAD@GOTPCREL(%rip), %rax
	movq	_E8390_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_E8390_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outb_p
	movq	_PCNET_DATAPORT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movzbl	%al, %ecx
	movq	8(%r14), %rdx
	movl	%ecx, (%rdx)
	sarl	$8, %eax
	movl	%eax, 4(%rdx)
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movzbl	%al, %ecx
	movq	8(%r14), %rdx
	movl	%ecx, 8(%rdx)
	sarl	$8, %eax
	movl	%eax, 12(%rdx)
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_inw
	movzbl	%al, %ecx
	movq	8(%r14), %rdx
	movl	%ecx, 16(%rdx)
	sarl	$8, %eax
	movl	%eax, 20(%rdx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EN0_DCFG,8,3                   ## @EN0_DCFG
	.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	_E8390_CMD,8,3                  ## @E8390_CMD
	.comm	_PCNET_DATAPORT,8,3             ## @PCNET_DATAPORT
	.no_dead_strip	_get_ax88190
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ax88190
_get_ax88190:                           ; @get_ax88190
	.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
	ldr	w8, [x0]
	cmp	w8, #960
	b.ne	LBB0_2
; %bb.1:
	ldr	x19, [x0, #8]
	ldr	w20, [x19]
Lloh0:
	adrp	x8, _EN0_DCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EN0_DCFG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #1
	bl	_outb_p
Lloh3:
	adrp	x8, _EN0_RSARLO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EN0_RSARLO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #0
	bl	_outb_p
Lloh6:
	adrp	x8, _EN0_RSARHI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EN0_RSARHI@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #4
	bl	_outb_p
Lloh9:
	adrp	x8, _E8390_RREAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E8390_RREAD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _E8390_START@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E8390_START@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w0, w9, w8
Lloh15:
	adrp	x8, _E8390_CMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E8390_CMD@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_outb_p
Lloh18:
	adrp	x21, _PCNET_DATAPORT@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PCNET_DATAPORT@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inw
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	asr	w10, w0, #8
	stp	w8, w10, [x9]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inw
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	asr	w10, w0, #8
	stp	w8, w10, [x9, #8]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_inw
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	asr	w10, w0, #8
	stp	w8, w10, [x9, #16]
LBB0_2:
	mov	x0, #0
	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 AdrpLdrGot	Lloh18, Lloh19
	.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_DCFG,8,3                   ; @EN0_DCFG
	.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	_E8390_CMD,8,3                  ; @E8390_CMD
	.comm	_PCNET_DATAPORT,8,3             ; @PCNET_DATAPORT
	.no_dead_strip	_get_ax88190
.subsections_via_symbols
