	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88178_bind
_ax88178_bind:                          ## @ax88178_bind
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_get_endpoints
	movq	_AX_CMD_READ_GPIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r15d
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_asix_read_cmd
	movq	-64(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	movq	_AX_CMD_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %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
	leaq	-56(%rbp), %r9
	movq	%r12, %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
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	movq	-56(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	movq	-56(%rbp), %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_PHY_MODE_MARVELL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 64(%r12)
	movl	$0, 68(%r12)
	jmp	LBB0_3
LBB0_2:
	movq	-56(%rbp), %rdi
	callq	_le16_to_cpu
	andl	$7, %eax
	movl	%eax, 64(%r12)
	movq	-56(%rbp), %rdi
	callq	_le16_to_cpu
	sarl	$8, %eax
	movl	%eax, 68(%r12)
	movq	-56(%rbp), %rdi
	callq	_le16_to_cpu
	xorl	%r15d, %r15d
	testb	$-128, %al
	sete	%r15b
	movl	64(%r12), %edx
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_dbg
	movq	_AX_GPIO_RSE@GOTPCREL(%rip), %rax
	movq	_AX_GPIO_GPO_1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movq	_AX_GPIO_GPO1EN@GOTPCREL(%rip), %r15
	orl	(%r15), %esi
	movq	%r12, %rdi
	movl	$40, %edx
	callq	_asix_write_gpio
	movq	-56(%rbp), %rdi
	callq	_le16_to_cpu
	andl	$-256, %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$30, %edx
	callq	_asix_write_gpio
	movl	(%rbx), %ebx
	orl	(%r15), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	$60, %ebx
	movq	%r12, %rdi
	movl	$60, %esi
	movl	$30, %edx
	callq	_asix_write_gpio
	movq	%r12, %rdi
	movl	$28, %esi
	movl	$300, %edx                      ## imm = 0x12C
	callq	_asix_write_gpio
LBB0_6:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$30, %edx
	callq	_asix_write_gpio
	movq	%r12, %rdi
	xorl	%esi, %esi
	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	%r12, %rdi
	callq	_asix_sw_reset
	movl	$150, %edi
	callq	_msleep
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_asix_write_rx_ctl
	movq	_AX_CMD_READ_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %r8d
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_asix_read_cmd
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:
	movq	56(%r12), %rax
	movl	16(%rax), %edi
	movl	(%r13), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	56(%r12), %rax
	leaq	16(%r12), %r14
	movq	%rax, 48(%r12)
	movq	_asix_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_asix_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movabsq	$1095216660511, %rax            ## imm = 0xFF0000001F
	movq	%rax, 16(%r12)
	movl	$1, 24(%r12)
	movq	%r12, %rdi
	callq	_asix_get_phy_addr
	movl	%eax, 28(%r12)
	movq	56(%r12), %rax
	movq	_ax88178_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_ax88178_ethtool_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	callq	_asix_get_phyid
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_dbg
	movl	64(%r12), %eax
	movq	_PHY_MODE_MARVELL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_marvell_phy_init
	movl	$60, %edi
	callq	_msleep
LBB0_9:
	movq	56(%r12), %rdi
	movl	28(%r12), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	56(%r12), %rdi
	movl	28(%r12), %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	56(%r12), %rdi
	movl	28(%r12), %esi
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	%r14, %rdi
	callq	_mii_nway_restart
	movq	_AX88178_MEDIUM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_asix_write_medium_mode
	testl	%eax, %eax
	js	LBB0_17
## %bb.10:
	movq	_AX_DEFAULT_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movq	8(%r12), %rax
	movq	_FLAG_FRAMING_AX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movl	$2048, (%r12)                   ## imm = 0x800
LBB0_13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movl	%eax, 4(%r12)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_15:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_dbg
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AX_CMD_READ_GPIOS,4,2          ## @AX_CMD_READ_GPIOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO Status: 0x%04x"

	.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"

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

	.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"

	.comm	_AX_SWRESET_PRL,4,2             ## @AX_SWRESET_PRL
	.comm	_AX_SWRESET_IPPD,4,2            ## @AX_SWRESET_IPPD
	.comm	_AX_CMD_READ_NODE_ID,4,2        ## @AX_CMD_READ_NODE_ID
L_.str.4:                               ## @.str.4
	.asciz	"Failed to read MAC address: %d"

	.comm	_asix_mdio_read,4,2             ## @asix_mdio_read
	.comm	_ax88178_netdev_ops,4,2         ## @ax88178_netdev_ops
	.comm	_ax88178_ethtool_ops,4,2        ## @ax88178_ethtool_ops
L_.str.5:                               ## @.str.5
	.asciz	"PHYID=0x%08x"

	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.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	_AX_DEFAULT_RX_CTL,4,2          ## @AX_DEFAULT_RX_CTL
	.comm	_FLAG_FRAMING_AX,4,2            ## @FLAG_FRAMING_AX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ax88178_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ax88178_bind
lCPI0_0:
	.long	31                              ; 0x1f
	.long	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ax88178_bind:                          ; @ax88178_bind
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_usbnet_get_endpoints
Lloh7:
	adrp	x8, _AX_CMD_READ_GPIOS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AX_CMD_READ_GPIOS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w21, #1
	sub	x5, x29, #72
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_asix_read_cmd
	ldur	x8, [x29, #-72]
	str	x8, [sp, #-16]!
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	add	sp, sp, #16
Lloh12:
	adrp	x8, _AX_CMD_WRITE_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AX_CMD_WRITE_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
Lloh15:
	adrp	x8, _AX_CMD_READ_EEPROM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AX_CMD_READ_EEPROM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	sub	x5, x29, #64
	mov	x0, x19
	mov	w2, #23
	mov	w3, #0
	mov	w4, #2
	bl	_asix_read_cmd
Lloh18:
	adrp	x8, _AX_CMD_WRITE_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AX_CMD_WRITE_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	ldur	x8, [x29, #-64]
	str	x8, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	add	sp, sp, #16
	ldur	x24, [x29, #-64]
	mov	w0, #65535
	bl	_cpu_to_le16
Lloh23:
	adrp	x23, _PHY_MODE_MARVELL@GOTPAGE
Lloh24:
	ldr	x23, [x23, _PHY_MODE_MARVELL@GOTPAGEOFF]
	cmp	x24, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x23]
	stp	w8, wzr, [x19, #64]
	mov	w9, #1
	b	LBB0_3
LBB0_2:
	ldur	x0, [x29, #-64]
	bl	_le16_to_cpu
	and	w8, w0, #0x7
	str	w8, [x19, #64]
	ldur	x0, [x29, #-64]
	bl	_le16_to_cpu
	asr	w8, w0, #8
	str	w8, [x19, #68]
	ldur	x0, [x29, #-64]
	bl	_le16_to_cpu
	bic	w9, w21, w0, lsr #7
	ldr	w8, [x19, #64]
LBB0_3:
	stp	x9, x8, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg
	add	sp, sp, #16
Lloh27:
	adrp	x8, _AX_GPIO_RSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AX_GPIO_RSE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x21, _AX_GPIO_GPO_1@GOTPAGE
Lloh31:
	ldr	x21, [x21, _AX_GPIO_GPO_1@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh32:
	adrp	x24, _AX_GPIO_GPO1EN@GOTPAGE
Lloh33:
	ldr	x24, [x24, _AX_GPIO_GPO1EN@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #40
	bl	_asix_write_gpio
	ldur	x0, [x29, #-64]
	bl	_le16_to_cpu
	and	w8, w0, #0xffffff00
	cmp	w8, #256
	b.ne	LBB0_5
; %bb.4:
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dbg
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #30
	bl	_asix_write_gpio
	ldr	w8, [x24]
	ldr	w9, [x21]
	orr	w21, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w21, #60
	mov	x0, x19
	mov	w1, #60
	mov	w2, #30
	bl	_asix_write_gpio
	mov	x0, x19
	mov	w1, #28
	mov	w2, #300
	bl	_asix_write_gpio
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #30
	bl	_asix_write_gpio
	mov	x0, x19
	mov	w1, #0
	bl	_asix_sw_reset
	mov	w0, #150
	bl	_msleep
Lloh36:
	adrp	x8, _AX_SWRESET_PRL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AX_SWRESET_PRL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _AX_SWRESET_IPPD@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AX_SWRESET_IPPD@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_asix_sw_reset
	mov	w0, #150
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	bl	_asix_write_rx_ctl
Lloh42:
	adrp	x8, _AX_CMD_READ_NODE_ID@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AX_CMD_READ_NODE_ID@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x5, x20
	bl	_asix_read_cmd
	tbnz	w0, #31, LBB0_16
; %bb.7:
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #16]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19, #56]
Lloh45:
	adrp	x9, lCPI0_0@PAGE
Lloh46:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	mov	x20, x19
	str	d0, [x20, #16]!
	str	x8, [x19, #48]
Lloh47:
	adrp	x8, _asix_mdio_read@GOTPAGE
Lloh48:
	ldr	x8, [x8, _asix_mdio_read@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh50:
	adrp	x8, _asix_mdio_write@GOTPAGE
Lloh51:
	ldr	x8, [x8, _asix_mdio_write@GOTPAGEOFF]
	str	x8, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_asix_get_phy_addr
	str	w0, [x19, #28]
	ldr	x8, [x19, #56]
Lloh52:
	adrp	x9, _ax88178_netdev_ops@GOTPAGE
Lloh53:
	ldr	x9, [x9, _ax88178_netdev_ops@GOTPAGEOFF]
Lloh54:
	adrp	x10, _ax88178_ethtool_ops@GOTPAGE
Lloh55:
	ldr	x10, [x10, _ax88178_ethtool_ops@GOTPAGEOFF]
	stp	x10, x9, [x8]
	mov	x0, x19
	bl	_asix_get_phyid
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh56:
	adrp	x0, l_.str.5@PAGE
Lloh57:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dbg
	add	sp, sp, #16
	ldr	w8, [x19, #64]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_marvell_phy_init
	mov	w0, #60
	bl	_msleep
LBB0_9:
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #28]
Lloh58:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh60:
	adrp	x9, _BMCR_RESET@GOTPAGE
Lloh61:
	ldr	x9, [x9, _BMCR_RESET@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
Lloh63:
	ldr	w8, [x9]
Lloh64:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_asix_mdio_write
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #28]
Lloh67:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
Lloh70:
	adrp	x8, _ADVERTISE_ALL@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
Lloh73:
	adrp	x9, _ADVERTISE_CSMA@GOTPAGE
Lloh74:
	ldr	x9, [x9, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh76:
	adrp	x9, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh77:
	ldr	x9, [x9, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	orr	w3, w8, w9
	bl	_asix_mdio_write
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #28]
Lloh79:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh80:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh81:
	ldr	w2, [x8]
Lloh82:
	adrp	x8, _ADVERTISE_1000FULL@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh84:
	ldr	w3, [x8]
	bl	_asix_mdio_write
	mov	x0, x20
	bl	_mii_nway_restart
Lloh85:
	adrp	x8, _AX88178_MEDIUM_DEFAULT@GOTPAGE
Lloh86:
	ldr	x8, [x8, _AX88178_MEDIUM_DEFAULT@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asix_write_medium_mode
	tbnz	w0, #31, LBB0_15
; %bb.10:
Lloh88:
	adrp	x8, _AX_DEFAULT_RX_CTL@GOTPAGE
Lloh89:
	ldr	x8, [x8, _AX_DEFAULT_RX_CTL@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_15
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh91:
	adrp	x9, _FLAG_FRAMING_AX@GOTPAGE
Lloh92:
	ldr	x9, [x9, _FLAG_FRAMING_AX@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	w8, #2048
	str	w8, [x19]
LBB0_13:
Lloh94:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh95:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	w0, [x19, #4]
	cbz	w0, LBB0_19
; %bb.14:
	mov	w21, #0
	b	LBB0_17
LBB0_15:
	mov	x21, x0
	b	LBB0_17
LBB0_16:
	mov	x21, x0
	str	x21, [sp, #-16]!
Lloh97:
	adrp	x0, l_.str.4@PAGE
Lloh98:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dbg
	add	sp, sp, #16
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh99:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh100:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh101:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x21
	sub	sp, x29, #48
	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
	ret
LBB0_19:
Lloh102:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh103:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdr	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh62
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AX_CMD_READ_GPIOS,4,2          ; @AX_CMD_READ_GPIOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO Status: 0x%04x"

	.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"

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

	.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"

	.comm	_AX_SWRESET_PRL,4,2             ; @AX_SWRESET_PRL
	.comm	_AX_SWRESET_IPPD,4,2            ; @AX_SWRESET_IPPD
	.comm	_AX_CMD_READ_NODE_ID,4,2        ; @AX_CMD_READ_NODE_ID
l_.str.4:                               ; @.str.4
	.asciz	"Failed to read MAC address: %d"

	.comm	_asix_mdio_read,4,2             ; @asix_mdio_read
	.comm	_ax88178_netdev_ops,4,2         ; @ax88178_netdev_ops
	.comm	_ax88178_ethtool_ops,4,2        ; @ax88178_ethtool_ops
l_.str.5:                               ; @.str.5
	.asciz	"PHYID=0x%08x"

	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.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	_AX_DEFAULT_RX_CTL,4,2          ; @AX_DEFAULT_RX_CTL
	.comm	_FLAG_FRAMING_AX,4,2            ; @FLAG_FRAMING_AX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ax88178_bind
.subsections_via_symbols
