	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88772_bind
_ax88772_bind:                          ## @ax88772_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
	pushq	%rax
	.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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_AX88772_EEPROM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_get_endpoints
	movq	_AX_GPIO_RSE@GOTPCREL(%rip), %rax
	movq	_AX_GPIO_GPO_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_AX_GPIO_GPO2EN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_asix_write_gpio
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_asix_get_phy_addr
	movl	%eax, %r12d
	andl	$31, %r12d
	xorl	%edx, %edx
	cmpl	$16, %r12d
	sete	%dl
	movq	_AX_CMD_SW_PHY_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_AX_SWRESET_IPPD@GOTPCREL(%rip), %rax
	movq	_AX_SWRESET_PRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_asix_sw_reset
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	$150, %edi
	callq	_msleep
	movq	_AX_SWRESET_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_asix_sw_reset
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movl	$150, %edi
	callq	_msleep
	cmpl	$16, %r12d
	jne	LBB0_10
## %bb.5:
	movq	_AX_SWRESET_IPRL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_9:
	movl	%ebx, %esi
	callq	_dbg
	jmp	LBB0_22
LBB0_10:
	movq	_AX_SWRESET_PRTE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_asix_sw_reset
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:
	movl	$150, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_asix_read_rx_ctl
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_7
## %bb.12:
	movq	%r15, %rdi
	callq	_asix_read_rx_ctl
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movq	_AX_CMD_READ_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %r8d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_asix_read_cmd
	testl	%eax, %eax
	js	LBB0_24
## %bb.13:
	movq	56(%r15), %rax
	movl	16(%rax), %edi
	movl	(%r13), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	56(%r15), %rax
	movq	%rax, 48(%r15)
	movq	_asix_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_asix_mdio_write@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movabsq	$133143986207, %rax             ## imm = 0x1F0000001F
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	callq	_asix_get_phy_addr
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	callq	_asix_get_phyid
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movq	_AX_SWRESET_PRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_asix_sw_reset
	testl	%eax, %eax
	js	LBB0_7
## %bb.14:
	movl	$150, %edi
	callq	_msleep
	movq	_AX_SWRESET_IPRL@GOTPCREL(%rip), %rax
	movl	(%r14), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_asix_sw_reset
	testl	%eax, %eax
	js	LBB0_7
## %bb.15:
	leaq	16(%r15), %rbx
	movl	$150, %edi
	callq	_msleep
	movq	56(%r15), %rdi
	movq	_ax88772_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	_ax88772_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movl	24(%r15), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	56(%r15), %rdi
	movl	24(%r15), %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_CSMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_asix_mdio_write
	movq	%rbx, %rdi
	callq	_mii_nway_restart
	movq	_AX88772_MEDIUM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_asix_write_medium_mode
	testl	%eax, %eax
	js	LBB0_7
## %bb.16:
	movq	_AX_CMD_WRITE_IPG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AX88772_IPG0_DEFAULT@GOTPCREL(%rip), %rax
	movq	_AX88772_IPG1_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_AX88772_IPG2_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_25
## %bb.17:
	movq	_AX_DEFAULT_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_7
## %bb.18:
	movq	%r15, %rdi
	callq	_asix_read_rx_ctl
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movq	%r15, %rdi
	callq	_asix_read_medium_status
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movq	8(%r15), %rax
	movq	_FLAG_FRAMING_AX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_20
## %bb.19:
	movl	$2048, (%r15)                   ## imm = 0x800
LBB0_20:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_7:
	movl	%eax, %ebx
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.23:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_25:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_9
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AX88772_EEPROM_LEN,4,2         ## @AX88772_EEPROM_LEN
	.comm	_AX_GPIO_RSE,4,2                ## @AX_GPIO_RSE
	.comm	_AX_GPIO_GPO_2,4,2              ## @AX_GPIO_GPO_2
	.comm	_AX_GPIO_GPO2EN,4,2             ## @AX_GPIO_GPO2EN
	.comm	_AX_CMD_SW_PHY_SELECT,4,2       ## @AX_CMD_SW_PHY_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Select PHY #1 failed: %d"

	.comm	_AX_SWRESET_IPPD,4,2            ## @AX_SWRESET_IPPD
	.comm	_AX_SWRESET_PRL,4,2             ## @AX_SWRESET_PRL
	.comm	_AX_SWRESET_CLEAR,4,2           ## @AX_SWRESET_CLEAR
	.comm	_AX_SWRESET_IPRL,4,2            ## @AX_SWRESET_IPRL
	.comm	_AX_SWRESET_PRTE,4,2            ## @AX_SWRESET_PRTE
L_.str.1:                               ## @.str.1
	.asciz	"RX_CTL is 0x%04x after software reset"

L_.str.2:                               ## @.str.2
	.asciz	"RX_CTL is 0x%04x setting to 0x0000"

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

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

	.comm	_ax88772_netdev_ops,4,2         ## @ax88772_netdev_ops
	.comm	_ax88772_ethtool_ops,4,2        ## @ax88772_ethtool_ops
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ## @ADVERTISE_CSMA
	.comm	_AX88772_MEDIUM_DEFAULT,4,2     ## @AX88772_MEDIUM_DEFAULT
	.comm	_AX_CMD_WRITE_IPG0,4,2          ## @AX_CMD_WRITE_IPG0
	.comm	_AX88772_IPG0_DEFAULT,4,2       ## @AX88772_IPG0_DEFAULT
	.comm	_AX88772_IPG1_DEFAULT,4,2       ## @AX88772_IPG1_DEFAULT
	.comm	_AX88772_IPG2_DEFAULT,4,2       ## @AX88772_IPG2_DEFAULT
L_.str.5:                               ## @.str.5
	.asciz	"Write IPG,IPG1,IPG2 failed: %d"

	.comm	_AX_DEFAULT_RX_CTL,4,2          ## @AX_DEFAULT_RX_CTL
L_.str.6:                               ## @.str.6
	.asciz	"RX_CTL is 0x%04x after all initializations"

L_.str.7:                               ## @.str.7
	.asciz	"Medium Status is 0x%04x after all initializations"

	.comm	_FLAG_FRAMING_AX,4,2            ## @FLAG_FRAMING_AX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ax88772_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88772_bind
_ax88772_bind:                          ; @ax88772_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, #16
	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, #2
	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, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _AX88772_EEPROM_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AX88772_EEPROM_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #64]
	bl	_usbnet_get_endpoints
Lloh10:
	adrp	x8, _AX_GPIO_RSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AX_GPIO_RSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _AX_GPIO_GPO_2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AX_GPIO_GPO_2@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _AX_GPIO_GPO2EN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AX_GPIO_GPO2EN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #5
	bl	_asix_write_gpio
	tbnz	w0, #31, LBB0_21
; %bb.1:
	mov	x0, x19
	bl	_asix_get_phy_addr
	and	w24, w0, #0x1f
	cmp	w24, #16
	cset	w2, eq
Lloh19:
	adrp	x8, _AX_CMD_SW_PHY_SELECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AX_CMD_SW_PHY_SELECT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh22:
	adrp	x8, _AX_SWRESET_IPPD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AX_SWRESET_IPPD@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x23, _AX_SWRESET_PRL@GOTPAGE
Lloh26:
	ldr	x23, [x23, _AX_SWRESET_PRL@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_asix_sw_reset
	tbnz	w0, #31, LBB0_21
; %bb.3:
	mov	w0, #150
	bl	_msleep
Lloh27:
	adrp	x8, _AX_SWRESET_CLEAR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AX_SWRESET_CLEAR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asix_sw_reset
	tbnz	w0, #31, LBB0_21
; %bb.4:
	mov	w0, #150
	bl	_msleep
	cmp	w24, #16
	b.ne	LBB0_8
; %bb.5:
Lloh30:
	adrp	x8, _AX_SWRESET_IPRL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AX_SWRESET_IPRL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x21, x0
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	mov	x1, x21
	bl	_dbg
	b	LBB0_22
LBB0_8:
Lloh34:
	adrp	x8, _AX_SWRESET_PRTE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AX_SWRESET_PRTE@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asix_sw_reset
	tbnz	w0, #31, LBB0_21
; %bb.10:
	mov	w0, #150
	bl	_msleep
	mov	x0, x19
	bl	_asix_read_rx_ctl
	mov	x1, x0
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	mov	x0, x19
	mov	w1, #0
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_21
; %bb.11:
	mov	x0, x19
	bl	_asix_read_rx_ctl
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg
Lloh40:
	adrp	x8, _AX_CMD_READ_NODE_ID@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AX_CMD_READ_NODE_ID@GOTPAGEOFF]
Lloh42:
	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_24
; %bb.12:
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #16]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19, #56]
	movi.2s	v0, #31
	mov	x20, x19
	str	d0, [x20, #16]!
Lloh43:
	adrp	x9, _asix_mdio_read@GOTPAGE
Lloh44:
	ldr	x9, [x9, _asix_mdio_read@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh45:
	ldr	w8, [x9]
	str	w8, [x19, #40]
Lloh46:
	adrp	x8, _asix_mdio_write@GOTPAGE
Lloh47:
	ldr	x8, [x8, _asix_mdio_write@GOTPAGEOFF]
	str	x8, [x19, #32]
	mov	x0, x19
	bl	_asix_get_phy_addr
	str	w0, [x19, #24]
	mov	x0, x19
	bl	_asix_get_phyid
	mov	x1, x0
Lloh48:
	adrp	x0, l_.str.4@PAGE
Lloh49:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dbg
	ldr	w1, [x23]
	mov	x0, x19
	bl	_asix_sw_reset
	tbnz	w0, #31, LBB0_21
; %bb.13:
	mov	w0, #150
	bl	_msleep
Lloh50:
	adrp	x8, _AX_SWRESET_IPRL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AX_SWRESET_IPRL@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_asix_sw_reset
	tbnz	w0, #31, LBB0_21
; %bb.14:
	mov	w0, #150
	bl	_msleep
Lloh53:
	adrp	x8, _ax88772_netdev_ops@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ax88772_netdev_ops@GOTPAGEOFF]
	ldr	x0, [x19, #56]
Lloh55:
	adrp	x9, _ax88772_ethtool_ops@GOTPAGE
Lloh56:
	ldr	x9, [x9, _ax88772_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x0]
	ldr	w1, [x19, #24]
Lloh57:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
Lloh60:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh61:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh62:
	ldr	w3, [x8]
	bl	_asix_mdio_write
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #24]
Lloh63:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh65:
	adrp	x9, _ADVERTISE_ALL@GOTPAGE
Lloh66:
	ldr	x9, [x9, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
Lloh68:
	ldr	w8, [x9]
Lloh69:
	adrp	x9, _ADVERTISE_CSMA@GOTPAGE
Lloh70:
	ldr	x9, [x9, _ADVERTISE_CSMA@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_asix_mdio_write
	mov	x0, x20
	bl	_mii_nway_restart
Lloh72:
	adrp	x8, _AX88772_MEDIUM_DEFAULT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _AX88772_MEDIUM_DEFAULT@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asix_write_medium_mode
	tbnz	w0, #31, LBB0_21
; %bb.15:
Lloh75:
	adrp	x8, _AX_CMD_WRITE_IPG0@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AX_CMD_WRITE_IPG0@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
Lloh78:
	adrp	x8, _AX88772_IPG0_DEFAULT@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AX88772_IPG0_DEFAULT@GOTPAGEOFF]
Lloh80:
	adrp	x9, _AX88772_IPG1_DEFAULT@GOTPAGE
Lloh81:
	ldr	x9, [x9, _AX88772_IPG1_DEFAULT@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
Lloh83:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh84:
	adrp	x8, _AX88772_IPG2_DEFAULT@GOTPAGE
Lloh85:
	ldr	x8, [x8, _AX88772_IPG2_DEFAULT@GOTPAGEOFF]
Lloh86:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_25
; %bb.16:
Lloh87:
	adrp	x8, _AX_DEFAULT_RX_CTL@GOTPAGE
Lloh88:
	ldr	x8, [x8, _AX_DEFAULT_RX_CTL@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_21
; %bb.17:
	mov	x0, x19
	bl	_asix_read_rx_ctl
	mov	x1, x0
Lloh90:
	adrp	x0, l_.str.6@PAGE
Lloh91:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dbg
	mov	x0, x19
	bl	_asix_read_medium_status
	mov	x1, x0
Lloh92:
	adrp	x0, l_.str.7@PAGE
Lloh93:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_dbg
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh94:
	adrp	x9, _FLAG_FRAMING_AX@GOTPAGE
Lloh95:
	ldr	x9, [x9, _FLAG_FRAMING_AX@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	mov	w8, #2048
	str	w8, [x19]
LBB0_19:
Lloh97:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh98:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	w0, [x19, #4]
	cbz	w0, LBB0_26
; %bb.20:
	mov	w21, #0
	b	LBB0_22
LBB0_21:
	mov	x21, x0
LBB0_22:
	ldur	x8, [x29, #-56]
Lloh100:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh101:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.23:
	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_24:
	mov	x21, x0
Lloh103:
	adrp	x0, l_.str.3@PAGE
Lloh104:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_25:
	mov	x21, x0
Lloh105:
	adrp	x0, l_.str.5@PAGE
Lloh106:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_26:
Lloh107:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh108:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh109:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_22
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh67
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh82
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AX88772_EEPROM_LEN,4,2         ; @AX88772_EEPROM_LEN
	.comm	_AX_GPIO_RSE,4,2                ; @AX_GPIO_RSE
	.comm	_AX_GPIO_GPO_2,4,2              ; @AX_GPIO_GPO_2
	.comm	_AX_GPIO_GPO2EN,4,2             ; @AX_GPIO_GPO2EN
	.comm	_AX_CMD_SW_PHY_SELECT,4,2       ; @AX_CMD_SW_PHY_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Select PHY #1 failed: %d"

	.comm	_AX_SWRESET_IPPD,4,2            ; @AX_SWRESET_IPPD
	.comm	_AX_SWRESET_PRL,4,2             ; @AX_SWRESET_PRL
	.comm	_AX_SWRESET_CLEAR,4,2           ; @AX_SWRESET_CLEAR
	.comm	_AX_SWRESET_IPRL,4,2            ; @AX_SWRESET_IPRL
	.comm	_AX_SWRESET_PRTE,4,2            ; @AX_SWRESET_PRTE
l_.str.1:                               ; @.str.1
	.asciz	"RX_CTL is 0x%04x after software reset"

l_.str.2:                               ; @.str.2
	.asciz	"RX_CTL is 0x%04x setting to 0x0000"

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

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

	.comm	_ax88772_netdev_ops,4,2         ; @ax88772_netdev_ops
	.comm	_ax88772_ethtool_ops,4,2        ; @ax88772_ethtool_ops
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_CSMA,4,2             ; @ADVERTISE_CSMA
	.comm	_AX88772_MEDIUM_DEFAULT,4,2     ; @AX88772_MEDIUM_DEFAULT
	.comm	_AX_CMD_WRITE_IPG0,4,2          ; @AX_CMD_WRITE_IPG0
	.comm	_AX88772_IPG0_DEFAULT,4,2       ; @AX88772_IPG0_DEFAULT
	.comm	_AX88772_IPG1_DEFAULT,4,2       ; @AX88772_IPG1_DEFAULT
	.comm	_AX88772_IPG2_DEFAULT,4,2       ; @AX88772_IPG2_DEFAULT
l_.str.5:                               ; @.str.5
	.asciz	"Write IPG,IPG1,IPG2 failed: %d"

	.comm	_AX_DEFAULT_RX_CTL,4,2          ; @AX_DEFAULT_RX_CTL
l_.str.6:                               ; @.str.6
	.asciz	"RX_CTL is 0x%04x after all initializations"

l_.str.7:                               ; @.str.7
	.asciz	"Medium Status is 0x%04x after all initializations"

	.comm	_FLAG_FRAMING_AX,4,2            ; @FLAG_FRAMING_AX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ax88772_bind
.subsections_via_symbols
