	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_integrated_phy_analog_init
_rockchip_integrated_phy_analog_init:   ## @rockchip_integrated_phy_analog_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_rockchip_init_tstmode
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_SMI_ADDR_TSTWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$11, %edx
	callq	_phy_write
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_SMI_ADDR_TSTCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TSTCNTL_WR@GOTPCREL(%rip), %rax
	movq	_WR_ADDR_A7CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_write
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rockchip_close_tstmode         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMI_ADDR_TSTWRITE,4,2          ## @SMI_ADDR_TSTWRITE
	.comm	_SMI_ADDR_TSTCNTL,4,2           ## @SMI_ADDR_TSTCNTL
	.comm	_TSTCNTL_WR,4,2                 ## @TSTCNTL_WR
	.comm	_WR_ADDR_A7CFG,4,2              ## @WR_ADDR_A7CFG
	.no_dead_strip	_rockchip_integrated_phy_analog_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_integrated_phy_analog_init
_rockchip_integrated_phy_analog_init:   ; @rockchip_integrated_phy_analog_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rockchip_init_tstmode
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SMI_ADDR_TSTWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMI_ADDR_TSTWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #11
	bl	_phy_write
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SMI_ADDR_TSTCNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMI_ADDR_TSTCNTL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TSTCNTL_WR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TSTCNTL_WR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _WR_ADDR_A7CFG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WR_ADDR_A7CFG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_phy_write
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rockchip_close_tstmode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMI_ADDR_TSTWRITE,4,2          ; @SMI_ADDR_TSTWRITE
	.comm	_SMI_ADDR_TSTCNTL,4,2           ; @SMI_ADDR_TSTCNTL
	.comm	_TSTCNTL_WR,4,2                 ; @TSTCNTL_WR
	.comm	_WR_ADDR_A7CFG,4,2              ; @WR_ADDR_A7CFG
	.no_dead_strip	_rockchip_integrated_phy_analog_init
.subsections_via_symbols
