	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function miphy28lp_setup
_miphy28lp_setup:                       ## @miphy28lp_setup
	.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	8(%rdi), %rax
	movq	_SYSCFG_CTRL@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	24(%rdi), %r12
	movl	(%rdi), %edi
	callq	_reset_control_assert
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.6:
	movq	_MIPHY_OSC_FORCE_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:
	orl	%r15d, %ecx
	movl	4(%r12), %edi
	movq	8(%r14), %rax
	movq	(%r13), %rdx
	movl	(%rax,%rdx,4), %esi
	movq	_MIPHY_CTRL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	movl	(%r14), %edi
	callq	_reset_control_deassert
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_miphy_osc_is_ready             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCFG_CTRL,8,3                ## @SYSCFG_CTRL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to bring out of miphy reset\n"

	.comm	_MIPHY_OSC_FORCE_EXT,4,2        ## @MIPHY_OSC_FORCE_EXT
	.comm	_MIPHY_CTRL_MASK,4,2            ## @MIPHY_CTRL_MASK
	.no_dead_strip	_miphy28lp_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function miphy28lp_setup
_miphy28lp_setup:                       ; @miphy28lp_setup
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _SYSCFG_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SYSCFG_CTRL@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	ldr	w0, [x0]
	bl	_reset_control_assert
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _MIPHY_OSC_FORCE_EXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIPHY_OSC_FORCE_EXT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	x10, x9, [x19, #8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w3, w8, w21
	ldr	w0, [x22, #4]
	ldr	x8, [x23]
	ldr	w1, [x10, x8, lsl #2]
Lloh5:
	adrp	x8, _MIPHY_CTRL_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIPHY_CTRL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	ldr	w0, [x19]
	bl	_reset_control_deassert
	cbz	w0, LBB0_6
LBB0_3:
	mov	x20, x0
	ldr	w0, [x22]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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_6:
	mov	x0, x19
	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
	b	_miphy_osc_is_ready
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCFG_CTRL,8,3                ; @SYSCFG_CTRL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to bring out of miphy reset\n"

	.comm	_MIPHY_OSC_FORCE_EXT,4,2        ; @MIPHY_OSC_FORCE_EXT
	.comm	_MIPHY_CTRL_MASK,4,2            ; @MIPHY_CTRL_MASK
	.no_dead_strip	_miphy28lp_setup
.subsections_via_symbols
