	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_on_lut
_power_on_lut:                          ## @power_on_lut
	.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	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_mmDCFEV_MEM_PWR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm_read_reg
	movl	%eax, %r12d
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movq	_DCFEV_MEM_PWR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_COL_MAN_INPUT_GAMMA_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
LBB0_3:
	movl	$1, %esi
	jmp	LBB0_7
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	_DCFEV_MEM_PWR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_COL_MAN_INPUT_GAMMA_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_set_reg_field_value
LBB0_6:
	xorl	%esi, %esi
LBB0_7:
	testl	%r15d, %r15d
	movq	_mmDCFEV_MEM_PWR_CTRL@GOTPCREL(%rip), %r13
	je	LBB0_9
## %bb.8:
	movq	_DCFEV_MEM_PWR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_COL_MAN_GAMMA_CORR_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	callq	_set_reg_field_value
LBB0_9:
	movl	(%r14), %edi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_dm_write_reg
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_dm_read_reg
	movl	%eax, %ebx
	movq	_DCFEV_MEM_PWR_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_COL_MAN_INPUT_GAMMA_MEM_PWR_DIS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_get_reg_field_value
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r15), %esi
	movq	_COL_MAN_GAMMA_CORR_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_get_reg_field_value
	testq	%rax, %rax
	jne	LBB0_15
LBB0_11:
	movl	$2, %edi
	callq	_udelay
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_dm_read_reg
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_get_reg_field_value
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%r15), %esi
	movq	_COL_MAN_GAMMA_CORR_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_get_reg_field_value
	testq	%rax, %rax
	jne	LBB0_15
LBB0_13:
	movl	$2, %edi
	callq	_udelay
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_dm_read_reg
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_get_reg_field_value
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movl	(%r15), %esi
	movq	_COL_MAN_GAMMA_CORR_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_get_reg_field_value
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmDCFEV_MEM_PWR_CTRL,4,2       ## @mmDCFEV_MEM_PWR_CTRL
	.comm	_DCFEV_MEM_PWR_CTRL,4,2         ## @DCFEV_MEM_PWR_CTRL
	.comm	_COL_MAN_INPUT_GAMMA_MEM_PWR_DIS,4,2 ## @COL_MAN_INPUT_GAMMA_MEM_PWR_DIS
	.comm	_COL_MAN_GAMMA_CORR_MEM_PWR_DIS,4,2 ## @COL_MAN_GAMMA_CORR_MEM_PWR_DIS
	.no_dead_strip	_power_on_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_on_lut
_power_on_lut:                          ; @power_on_lut
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x26, _mmDCFEV_MEM_PWR_CTRL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _mmDCFEV_MEM_PWR_CTRL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_dm_read_reg
	mov	x20, x0
Lloh2:
	adrp	x24, _DCFEV_MEM_PWR_CTRL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DCFEV_MEM_PWR_CTRL@GOTPAGEOFF]
Lloh4:
	adrp	x27, _COL_MAN_INPUT_GAMMA_MEM_PWR_DIS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _COL_MAN_INPUT_GAMMA_MEM_PWR_DIS@GOTPAGEOFF]
Lloh6:
	adrp	x25, _COL_MAN_GAMMA_CORR_MEM_PWR_DIS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _COL_MAN_GAMMA_CORR_MEM_PWR_DIS@GOTPAGEOFF]
	cbz	w23, LBB0_5
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	ldr	w2, [x24]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w1, #1
	bl	_set_reg_field_value
LBB0_3:
	cbz	w21, LBB0_10
; %bb.4:
	mov	w1, #1
	b	LBB0_9
LBB0_5:
	cbz	w22, LBB0_7
; %bb.6:
	ldr	w2, [x24]
	ldr	w3, [x27]
	mov	x0, x20
	mov	w1, #0
	bl	_set_reg_field_value
LBB0_7:
	cbz	w21, LBB0_10
; %bb.8:
	mov	w1, #0
LBB0_9:
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x20
	bl	_set_reg_field_value
LBB0_10:
	ldr	w0, [x19]
	ldr	w1, [x26]
	mov	x2, x20
	bl	_dm_write_reg
	ldr	w0, [x19]
	ldr	w1, [x26]
	bl	_dm_read_reg
	mov	x20, x0
	ldr	w1, [x24]
	ldr	w2, [x27]
	bl	_get_reg_field_value
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_get_reg_field_value
	cbnz	x0, LBB0_16
LBB0_12:
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x19]
	ldr	w1, [x26]
	bl	_dm_read_reg
	mov	x20, x0
	ldr	w1, [x24]
	ldr	w2, [x27]
	bl	_get_reg_field_value
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_get_reg_field_value
	cbnz	x0, LBB0_16
LBB0_14:
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x19]
	ldr	w1, [x26]
	bl	_dm_read_reg
	mov	x19, x0
	ldr	w1, [x24]
	ldr	w2, [x27]
	bl	_get_reg_field_value
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_get_reg_field_value
	cbz	x0, LBB0_17
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #2
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mmDCFEV_MEM_PWR_CTRL,4,2       ; @mmDCFEV_MEM_PWR_CTRL
	.comm	_DCFEV_MEM_PWR_CTRL,4,2         ; @DCFEV_MEM_PWR_CTRL
	.comm	_COL_MAN_INPUT_GAMMA_MEM_PWR_DIS,4,2 ; @COL_MAN_INPUT_GAMMA_MEM_PWR_DIS
	.comm	_COL_MAN_GAMMA_CORR_MEM_PWR_DIS,4,2 ; @COL_MAN_GAMMA_CORR_MEM_PWR_DIS
	.no_dead_strip	_power_on_lut
.subsections_via_symbols
