	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_pll_power
_dsi_pll_power:                         ## @dsi_pll_power
	.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	%rdi, %r14
	movq	(%rdi), %rcx
	movq	_DSI_QUIRK_PLL_PWR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	movl	%esi, %r13d
	movq	_DSI_PLL_POWER_ON_DIV@GOTPCREL(%rip), %rdx
	movl	%esi, %ecx
	cmpl	%esi, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_DSI_PLL_POWER_ON_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	testl	%eax, %eax
	cmovnel	%ecx, %r13d
	movq	_DSI_CLK_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	$31, %ecx
	movl	$30, %r8d
	callq	_REG_FLD_MOD
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_dsi_read_reg
	movl	%eax, %edi
	movl	$29, %esi
	movl	$28, %edx
	callq	_FLD_GET
	xorl	%r15d, %r15d
	cmpl	%r13d, %eax
	je	LBB0_7
## %bb.3:
	movl	$1001, %ebx                     ## imm = 0x3E9
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_dsi_read_reg
	movl	%eax, %edi
	movl	$29, %esi
	movl	$28, %edx
	callq	_FLD_GET
	cmpl	%r13d, %eax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_DSSERR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_QUIRK_PLL_PWR_BUG,4,2      ## @DSI_QUIRK_PLL_PWR_BUG
	.comm	_DSI_PLL_POWER_ON_DIV,4,2       ## @DSI_PLL_POWER_ON_DIV
	.comm	_DSI_PLL_POWER_ON_ALL,4,2       ## @DSI_PLL_POWER_ON_ALL
	.comm	_DSI_CLK_CTRL,4,2               ## @DSI_CLK_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set DSI PLL power mode to %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_dsi_pll_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_pll_power
_dsi_pll_power:                         ; @dsi_pll_power
	.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	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _DSI_QUIRK_PLL_PWR_BUG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DSI_QUIRK_PLL_PWR_BUG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _DSI_PLL_POWER_ON_DIV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSI_PLL_POWER_ON_DIV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
Lloh6:
	adrp	x9, _DSI_PLL_POWER_ON_ALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DSI_PLL_POWER_ON_ALL@GOTPAGEOFF]
	ccmp	w8, #0, #4, eq
Lloh8:
	ldr	w8, [x9]
	csel	w20, w8, w1, ne
Lloh9:
	adrp	x21, _DSI_CLK_CTRL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _DSI_CLK_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	mov	w3, #31
	mov	w4, #30
	bl	_REG_FLD_MOD
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dsi_read_reg
	mov	w1, #29
	mov	w2, #28
	bl	_FLD_GET
	cmp	w0, w20
	b.eq	LBB0_4
; %bb.1:
	mov	w22, #1001
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dsi_read_reg
	mov	w1, #29
	mov	w2, #28
	bl	_FLD_GET
	cmp	w0, w20
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DSSERR
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_QUIRK_PLL_PWR_BUG,4,2      ; @DSI_QUIRK_PLL_PWR_BUG
	.comm	_DSI_PLL_POWER_ON_DIV,4,2       ; @DSI_PLL_POWER_ON_DIV
	.comm	_DSI_PLL_POWER_ON_ALL,4,2       ; @DSI_PLL_POWER_ON_ALL
	.comm	_DSI_CLK_CTRL,4,2               ; @DSI_CLK_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set DSI PLL power mode to %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dsi_pll_power
.subsections_via_symbols
