	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_phy_regulator_enable
_dsi_phy_regulator_enable:              ## @dsi_phy_regulator_enable
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movl	(%rax), %r13d
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movl	$0, %ebx
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$16, %r12
	cmpq	%rbx, %r13
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_regulator_set_load
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movl	%r14d, %r13d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testl	%ebx, %ebx
	jg	LBB0_10
	jmp	LBB0_12
LBB0_6:
	movl	%r13d, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	movl	$0, %r13d
	jns	LBB0_12
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movl	%r14d, %r13d
	testl	%ebx, %ebx
	jle	LBB0_12
LBB0_10:
	movl	%ebx, %eax
	leaq	1(%rax), %rbx
	shlq	$4, %rax
	leaq	(%r12,%rax), %r14
	addq	$-8, %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%r15,%rbx,4), %edi
	movq	(%r14), %rsi
	callq	_regulator_set_load
	decq	%rbx
	addq	$-16, %r14
	cmpq	$1, %rbx
	ja	LBB0_11
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"regulator %d set op mode failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"regulator enable failed, %d\n"

	.no_dead_strip	_dsi_phy_regulator_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_phy_regulator_enable
_dsi_phy_regulator_enable:              ; @dsi_phy_regulator_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	x22, x19, [x0, #8]
	ldr	x8, [x0]
	ldr	x24, [x8, #8]
	ldr	w23, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, #0
	mov	x25, x24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x25, x25, #16
	cmp	x23, x20
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25]
	tbnz	x1, #63, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, x20, lsl #2]
	bl	_regulator_set_load
	tbz	w0, #31, LBB0_2
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	b	LBB0_11
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	x20, x23
LBB0_8:
	mov	x0, x23
	mov	x1, x19
	bl	_regulator_bulk_enable
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	w21, #0
	b	LBB0_14
LBB0_10:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x21
LBB0_11:
	bl	_DRM_DEV_ERROR
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w22, w20
	add	x8, x24, w20, uxtw #4
	sub	x20, x8, #8
	sub	x19, x19, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, x22, lsl #2]
	ldr	x1, [x20], #-16
	bl	_regulator_set_load
	subs	x22, x22, #1
	b.hi	LBB0_13
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"regulator %d set op mode failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"regulator enable failed, %d\n"

	.no_dead_strip	_dsi_phy_regulator_enable
.subsections_via_symbols
