	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88172a_reset
_ax88172a_reset:                        ## @ax88172a_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	24(%r15), %esi
	callq	_ax88172a_reset_phy
	movl	$150, %edi
	callq	_msleep
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_asix_read_rx_ctl
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_dbg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_asix_read_rx_ctl
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_dbg
	movl	$150, %edi
	callq	_msleep
	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
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	16(%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	16(%rbx), %r9
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_asix_write_cmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_AX_DEFAULT_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asix_write_rx_ctl
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_asix_read_rx_ctl
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_dbg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_asix_read_medium_status
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_dbg
	movq	_PHY_ID_FMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movl	(%r15), %edi
	movl	8(%r15), %r8d
	movl	$20, %esi
	callq	_snprintf
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ax88172a_adjust_link@GOTPCREL(%rip), %rdx
	callq	_phy_connect
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movq	(%rbx), %rdi
	movl	(%r15), %edx
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	callq	_netdev_err
	movl	4(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.6(%rip), %rsi
	callq	_netdev_info
	movl	4(%r15), %edi
	callq	_genphy_resume
	movl	4(%r15), %edi
	callq	_phy_start
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX_CTL is 0x%04x after software reset\n"

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

	.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.2:                               ## @.str.2
	.asciz	"Write IPG,IPG1,IPG2 failed: %d\n"

	.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
L_.str.3:                               ## @.str.3
	.asciz	"RX_CTL is 0x%04x after all initializations\n"

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

	.comm	_PHY_ID_FMT,8,3                 ## @PHY_ID_FMT
	.comm	_ax88172a_adjust_link,4,2       ## @ax88172a_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
L_.str.5:                               ## @.str.5
	.asciz	"Could not connect to PHY device %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"Connected to phy %s\n"

	.no_dead_strip	_ax88172a_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88172a_reset
_ax88172a_reset:                        ; @ax88172a_reset
	.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, x0
	ldr	x21, [x0, #8]
	ldr	w1, [x21, #24]
	bl	_ax88172a_reset_phy
	mov	w0, #150
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	bl	_asix_read_rx_ctl
	mov	x2, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_asix_read_rx_ctl
	mov	x2, x0
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	mov	w0, #150
	bl	_msleep
Lloh4:
	adrp	x8, _AX_CMD_WRITE_IPG0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AX_CMD_WRITE_IPG0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _AX88772_IPG0_DEFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AX88772_IPG0_DEFAULT@GOTPAGEOFF]
Lloh9:
	adrp	x9, _AX88772_IPG1_DEFAULT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AX88772_IPG1_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh13:
	adrp	x8, _AX88772_IPG2_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AX88772_IPG2_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh16:
	adrp	x20, _ETH_ALEN@GOTPAGE
Lloh17:
	ldr	x20, [x20, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_memcpy
Lloh18:
	adrp	x8, _AX_CMD_WRITE_NODE_ID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AX_CMD_WRITE_NODE_ID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w4, [x20]
	ldr	x5, [x19, #16]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	bl	_asix_write_cmd
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh21:
	adrp	x8, _AX_DEFAULT_RX_CTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AX_DEFAULT_RX_CTL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_asix_write_rx_ctl
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_asix_read_rx_ctl
	mov	x2, x0
	ldr	x0, [x19]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x19
	mov	w1, #0
	bl	_asix_read_medium_status
	mov	x2, x0
	ldr	x0, [x19]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_dbg
	ldr	w0, [x21]
Lloh28:
	adrp	x8, _PHY_ID_FMT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PHY_ID_FMT@GOTPAGEOFF]
Lloh30:
	ldr	x2, [x8]
	ldr	x8, [x21, #16]
	ldr	w3, [x8]
	ldr	w4, [x21, #8]
	mov	w1, #20
	bl	_snprintf
	ldr	x0, [x19]
	ldr	w1, [x21]
Lloh31:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
Lloh34:
	adrp	x2, _ax88172a_adjust_link@GOTPAGE
Lloh35:
	ldr	x2, [x2, _ax88172a_adjust_link@GOTPAGEOFF]
	bl	_phy_connect
	str	w0, [x21, #4]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	ldr	w2, [x21]
	cbz	x8, LBB0_8
; %bb.5:
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_err
	ldr	w0, [x21, #4]
	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
	b	_PTR_ERR
LBB0_6:
	mov	x20, x0
	b	LBB0_9
LBB0_7:
	mov	x20, x0
	ldr	x0, [x19]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
	b	LBB0_9
LBB0_8:
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x21, #4]
	bl	_genphy_resume
	ldr	w0, [x21, #4]
	bl	_phy_start
	mov	w20, #0
LBB0_9:
	mov	x0, 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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX_CTL is 0x%04x after software reset\n"

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

	.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.2:                               ; @.str.2
	.asciz	"Write IPG,IPG1,IPG2 failed: %d\n"

	.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
l_.str.3:                               ; @.str.3
	.asciz	"RX_CTL is 0x%04x after all initializations\n"

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

	.comm	_PHY_ID_FMT,8,3                 ; @PHY_ID_FMT
	.comm	_ax88172a_adjust_link,4,2       ; @ax88172a_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
l_.str.5:                               ; @.str.5
	.asciz	"Could not connect to PHY device %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"Connected to phy %s\n"

	.no_dead_strip	_ax88172a_reset
.subsections_via_symbols
