	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan88xx_TR_reg_set
_lan88xx_TR_reg_set:                    ## @lan88xx_TR_reg_set
	.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
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_phy_save_page
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_LAN88XX_EXT_PAGE_ACCESS_TR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_lan88xx_write_page
	movq	_LAN88XX_EXT_PAGE_TR_LOW_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	%bx, %edx
	movq	%r13, %rdi
	callq	___phy_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_LAN88XX_EXT_PAGE_TR_HIGH_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$16, %ebx
	movzbl	%bl, %edx
	movq	%r13, %rdi
	callq	___phy_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%r12d, %edx
	andl	$-57345, %edx                   ## imm = 0xFFFF1FFF
	orl	$32768, %edx                    ## imm = 0x8000
	movq	_LAN88XX_EXT_PAGE_TR_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	___phy_write
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	___phy_read
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_phydev_warn
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_phydev_warn
LBB0_11:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_restore_page               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get current page\n"

	.comm	_LAN88XX_EXT_PAGE_ACCESS_TR,4,2 ## @LAN88XX_EXT_PAGE_ACCESS_TR
	.comm	_LAN88XX_EXT_PAGE_TR_LOW_DATA,4,2 ## @LAN88XX_EXT_PAGE_TR_LOW_DATA
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write TR low data\n"

	.comm	_LAN88XX_EXT_PAGE_TR_HIGH_DATA,4,2 ## @LAN88XX_EXT_PAGE_TR_HIGH_DATA
L_.str.2:                               ## @.str.2
	.asciz	"Failed to write TR high data\n"

	.comm	_LAN88XX_EXT_PAGE_TR_CR,4,2     ## @LAN88XX_EXT_PAGE_TR_CR
L_.str.3:                               ## @.str.3
	.asciz	"Failed to write data in reg\n"

L_.str.4:                               ## @.str.4
	.asciz	"TR Register[0x%X] configuration failed\n"

	.no_dead_strip	_lan88xx_TR_reg_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan88xx_TR_reg_set
_lan88xx_TR_reg_set:                    ; @lan88xx_TR_reg_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	bl	_phy_save_page
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _LAN88XX_EXT_PAGE_ACCESS_TR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAN88XX_EXT_PAGE_ACCESS_TR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lan88xx_write_page
Lloh3:
	adrp	x8, _LAN88XX_EXT_PAGE_TR_LOW_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LAN88XX_EXT_PAGE_TR_LOW_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w2, w23, #0xffff
	mov	x0, x19
	bl	___phy_write
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _LAN88XX_EXT_PAGE_TR_HIGH_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAN88XX_EXT_PAGE_TR_HIGH_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ubfx	w2, w23, #16, #8
	mov	x0, x19
	bl	___phy_write
	tbnz	w0, #31, LBB0_8
; %bb.3:
	and	w8, w21, #0xffff1fff
	orr	w2, w8, #0x8000
Lloh9:
	adrp	x23, _LAN88XX_EXT_PAGE_TR_CR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _LAN88XX_EXT_PAGE_TR_CR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	___phy_write
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x23]
	mov	x0, x19
	bl	___phy_read
	tbnz	w0, #15, LBB0_11
; %bb.5:
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_phydev_warn
	mov	w22, #0
	b	LBB0_11
LBB0_7:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_phydev_warn
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_phy_restore_page
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get current page\n"

	.comm	_LAN88XX_EXT_PAGE_ACCESS_TR,4,2 ; @LAN88XX_EXT_PAGE_ACCESS_TR
	.comm	_LAN88XX_EXT_PAGE_TR_LOW_DATA,4,2 ; @LAN88XX_EXT_PAGE_TR_LOW_DATA
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write TR low data\n"

	.comm	_LAN88XX_EXT_PAGE_TR_HIGH_DATA,4,2 ; @LAN88XX_EXT_PAGE_TR_HIGH_DATA
l_.str.2:                               ; @.str.2
	.asciz	"Failed to write TR high data\n"

	.comm	_LAN88XX_EXT_PAGE_TR_CR,4,2     ; @LAN88XX_EXT_PAGE_TR_CR
l_.str.3:                               ; @.str.3
	.asciz	"Failed to write data in reg\n"

l_.str.4:                               ; @.str.4
	.asciz	"TR Register[0x%X] configuration failed\n"

	.no_dead_strip	_lan88xx_TR_reg_set
.subsections_via_symbols
