	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88178_reset
_ax88178_reset:                         ## @ax88178_reset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_AX_CMD_READ_GPIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	movl	$1, %r14d
	leaq	-40(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_asix_read_cmd
	movq	(%rbx), %rdi
	movq	-40(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_AX_CMD_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	movq	_AX_CMD_READ_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-32(%rbp), %r9
	movq	%rbx, %rdi
	movl	$23, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	_asix_read_cmd
	movq	_AX_CMD_WRITE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	movq	(%rbx), %rdi
	movq	-32(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	-32(%rbp), %r15
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	cmpq	%rax, %r15
	jne	LBB0_2
## %bb.1:
	movq	_PHY_MODE_MARVELL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	$0, 16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	-32(%rbp), %rdi
	callq	_le16_to_cpu
	andl	$127, %eax
	movl	%eax, 12(%rbx)
	movq	-32(%rbp), %rdi
	callq	_le16_to_cpu
	sarl	$8, %eax
	movl	%eax, 16(%rbx)
	movq	-32(%rbp), %rdi
	callq	_le16_to_cpu
	xorl	%r14d, %r14d
	testb	$-128, %al
	sete	%r14b
	movl	12(%rbx), %ecx
LBB0_3:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_AX_GPIO_RSE@GOTPCREL(%rip), %rax
	movq	_AX_GPIO_GPO_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%rax), %esi
	movq	_AX_GPIO_GPO1EN@GOTPCREL(%rip), %r15
	orl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$40, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_gpio
	movq	-32(%rbp), %rdi
	callq	_le16_to_cpu
	andl	$-256, %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$30, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_gpio
	movl	(%r14), %r14d
	orl	(%r15), %r14d
	jmp	LBB0_6
LBB0_4:
	movl	$60, %r14d
	movq	%rbx, %rdi
	movl	$60, %esi
	movl	$30, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_gpio
	movq	%rbx, %rdi
	movl	$28, %esi
	movl	$300, %edx                      ## imm = 0x12C
	xorl	%ecx, %ecx
	callq	_asix_write_gpio
LBB0_6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$30, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_gpio
	movq	%rbx, %rdi
	callq	_asix_get_phyid
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_AX_CMD_SW_PHY_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_asix_sw_reset
	movl	$150, %edi
	callq	_msleep
	movq	_AX_SWRESET_PRL@GOTPCREL(%rip), %rax
	movq	_AX_SWRESET_IPPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_sw_reset
	movl	$150, %edi
	callq	_msleep
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_asix_write_rx_ctl
	movl	12(%rbx), %eax
	movq	_PHY_MODE_MARVELL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_marvell_phy_init
	movl	$60, %edi
	callq	_msleep
	jmp	LBB0_10
LBB0_8:
	movq	_PHY_MODE_RTL8211CL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_rtl8211cl_phy_init
LBB0_10:
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_asix_phy_reset
	movq	(%rbx), %rdi
	leaq	8(%rbx), %r14
	movl	8(%rbx), %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rdx
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	_AX88178_MEDIUM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_medium_mode
	movq	%r14, %rdi
	callq	_mii_nway_restart
	movq	(%rbx), %rax
	movq	20(%rbx), %rdi
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_memcpy
	movq	_AX_CMD_WRITE_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r8d
	movq	20(%rbx), %r9
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	_AX_DEFAULT_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_rx_ctl
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_CMD_READ_GPIOS,4,2          ## @AX_CMD_READ_GPIOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO Status: 0x%04x\n"

	.comm	_AX_CMD_WRITE_ENABLE,4,2        ## @AX_CMD_WRITE_ENABLE
	.comm	_AX_CMD_READ_EEPROM,4,2         ## @AX_CMD_READ_EEPROM
	.comm	_AX_CMD_WRITE_DISABLE,4,2       ## @AX_CMD_WRITE_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"EEPROM index 0x17 is 0x%04x\n"

	.comm	_PHY_MODE_MARVELL,4,2           ## @PHY_MODE_MARVELL
L_.str.2:                               ## @.str.2
	.asciz	"GPIO0: %d, PhyMode: %d\n"

	.comm	_AX_GPIO_RSE,4,2                ## @AX_GPIO_RSE
	.comm	_AX_GPIO_GPO_1,4,2              ## @AX_GPIO_GPO_1
	.comm	_AX_GPIO_GPO1EN,4,2             ## @AX_GPIO_GPO1EN
L_.str.3:                               ## @.str.3
	.asciz	"gpio phymode == 1 path\n"

L_.str.4:                               ## @.str.4
	.asciz	"PHYID=0x%08x\n"

	.comm	_AX_CMD_SW_PHY_SELECT,4,2       ## @AX_CMD_SW_PHY_SELECT
	.comm	_AX_SWRESET_PRL,4,2             ## @AX_SWRESET_PRL
	.comm	_AX_SWRESET_IPPD,4,2            ## @AX_SWRESET_IPPD
	.comm	_PHY_MODE_RTL8211CL,4,2         ## @PHY_MODE_RTL8211CL
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_AX88178_MEDIUM_DEFAULT,4,2     ## @AX88178_MEDIUM_DEFAULT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AX_CMD_WRITE_NODE_ID,4,2       ## @AX_CMD_WRITE_NODE_ID
	.comm	_AX_DEFAULT_RX_CTL,4,2          ## @AX_DEFAULT_RX_CTL
	.no_dead_strip	_ax88178_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88178_reset
_ax88178_reset:                         ; @ax88178_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _AX_CMD_READ_GPIOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AX_CMD_READ_GPIOS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w20, #1
	add	x5, sp, #16
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	mov	w6, #0
	bl	_asix_read_cmd
	ldr	x0, [x19]
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
Lloh5:
	adrp	x8, _AX_CMD_WRITE_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AX_CMD_WRITE_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_asix_write_cmd
Lloh8:
	adrp	x8, _AX_CMD_READ_EEPROM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AX_CMD_READ_EEPROM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x5, sp, #24
	mov	x0, x19
	mov	w2, #23
	mov	w3, #0
	mov	w4, #2
	mov	w6, #0
	bl	_asix_read_cmd
Lloh11:
	adrp	x8, _AX_CMD_WRITE_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AX_CMD_WRITE_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_asix_write_cmd
	ldr	x0, [x19]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	ldr	x22, [sp, #24]
	mov	w0, #65535
	bl	_cpu_to_le16
Lloh16:
	adrp	x21, _PHY_MODE_MARVELL@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PHY_MODE_MARVELL@GOTPAGEOFF]
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	stp	w8, wzr, [x19, #12]
	mov	w9, #1
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
	and	w8, w0, #0x7f
	str	w8, [x19, #12]
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
	asr	w8, w0, #8
	str	w8, [x19, #16]
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
	bic	w9, w20, w0, lsr #7
	ldr	w8, [x19, #12]
LBB0_3:
	ldr	x0, [x19]
	stp	x9, x8, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
Lloh20:
	adrp	x8, _AX_GPIO_RSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AX_GPIO_RSE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x20, _AX_GPIO_GPO_1@GOTPAGE
Lloh24:
	ldr	x20, [x20, _AX_GPIO_GPO_1@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh25:
	adrp	x22, _AX_GPIO_GPO1EN@GOTPAGE
Lloh26:
	ldr	x22, [x22, _AX_GPIO_GPO1EN@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #40
	mov	w3, #0
	bl	_asix_write_gpio
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
	and	w8, w0, #0xffffff00
	cmp	w8, #256
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_dbg
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #30
	mov	w3, #0
	bl	_asix_write_gpio
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w20, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #60
	mov	x0, x19
	mov	w1, #60
	mov	w2, #30
	mov	w3, #0
	bl	_asix_write_gpio
	mov	x0, x19
	mov	w1, #28
	mov	w2, #300
	mov	w3, #0
	bl	_asix_write_gpio
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #30
	mov	w3, #0
	bl	_asix_write_gpio
	mov	x0, x19
	bl	_asix_get_phyid
	ldr	x8, [x19]
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_netdev_dbg
Lloh31:
	adrp	x8, _AX_CMD_SW_PHY_SELECT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AX_CMD_SW_PHY_SELECT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_asix_write_cmd
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_asix_sw_reset
	mov	w0, #150
	bl	_msleep
Lloh34:
	adrp	x8, _AX_SWRESET_PRL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AX_SWRESET_PRL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _AX_SWRESET_IPPD@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AX_SWRESET_IPPD@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_asix_sw_reset
	mov	w0, #150
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_asix_write_rx_ctl
	ldr	w8, [x19, #12]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_marvell_phy_init
	mov	w0, #60
	bl	_msleep
	b	LBB0_10
LBB0_8:
Lloh40:
	adrp	x9, _PHY_MODE_RTL8211CL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PHY_MODE_RTL8211CL@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_rtl8211cl_phy_init
LBB0_10:
Lloh43:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_asix_phy_reset
	ldr	x0, [x19]
	mov	x20, x19
	ldr	w1, [x20, #8]!
Lloh49:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _ADVERTISE_ALL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _ADVERTISE_CSMA@GOTPAGE
Lloh56:
	ldr	x9, [x9, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh58:
	adrp	x9, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w3, w8, w9
	bl	_asix_mdio_write
	ldr	x0, [x19]
	ldr	w1, [x20]
Lloh61:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
Lloh64:
	adrp	x8, _ADVERTISE_1000FULL@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh66:
	ldr	w3, [x8]
	bl	_asix_mdio_write
Lloh67:
	adrp	x8, _AX88178_MEDIUM_DEFAULT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _AX88178_MEDIUM_DEFAULT@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_medium_mode
	mov	x0, x20
	bl	_mii_nway_restart
	ldur	x0, [x19, #20]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh70:
	adrp	x20, _ETH_ALEN@GOTPAGE
Lloh71:
	ldr	x20, [x20, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_memcpy
Lloh72:
	adrp	x8, _AX_CMD_WRITE_NODE_ID@GOTPAGE
Lloh73:
	ldr	x8, [x8, _AX_CMD_WRITE_NODE_ID@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	ldr	w4, [x20]
	ldur	x5, [x19, #20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_12
; %bb.11:
Lloh75:
	adrp	x8, _AX_DEFAULT_RX_CTL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AX_DEFAULT_RX_CTL@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_rx_ctl
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_CMD_READ_GPIOS,4,2          ; @AX_CMD_READ_GPIOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO Status: 0x%04x\n"

	.comm	_AX_CMD_WRITE_ENABLE,4,2        ; @AX_CMD_WRITE_ENABLE
	.comm	_AX_CMD_READ_EEPROM,4,2         ; @AX_CMD_READ_EEPROM
	.comm	_AX_CMD_WRITE_DISABLE,4,2       ; @AX_CMD_WRITE_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"EEPROM index 0x17 is 0x%04x\n"

	.comm	_PHY_MODE_MARVELL,4,2           ; @PHY_MODE_MARVELL
l_.str.2:                               ; @.str.2
	.asciz	"GPIO0: %d, PhyMode: %d\n"

	.comm	_AX_GPIO_RSE,4,2                ; @AX_GPIO_RSE
	.comm	_AX_GPIO_GPO_1,4,2              ; @AX_GPIO_GPO_1
	.comm	_AX_GPIO_GPO1EN,4,2             ; @AX_GPIO_GPO1EN
l_.str.3:                               ; @.str.3
	.asciz	"gpio phymode == 1 path\n"

l_.str.4:                               ; @.str.4
	.asciz	"PHYID=0x%08x\n"

	.comm	_AX_CMD_SW_PHY_SELECT,4,2       ; @AX_CMD_SW_PHY_SELECT
	.comm	_AX_SWRESET_PRL,4,2             ; @AX_SWRESET_PRL
	.comm	_AX_SWRESET_IPPD,4,2            ; @AX_SWRESET_IPPD
	.comm	_PHY_MODE_RTL8211CL,4,2         ; @PHY_MODE_RTL8211CL
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_AX88178_MEDIUM_DEFAULT,4,2     ; @AX88178_MEDIUM_DEFAULT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AX_CMD_WRITE_NODE_ID,4,2       ; @AX_CMD_WRITE_NODE_ID
	.comm	_AX_DEFAULT_RX_CTL,4,2          ; @AX_DEFAULT_RX_CTL
	.no_dead_strip	_ax88178_reset
.subsections_via_symbols
