	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_abm_init
_dce_abm_init:                          ## @dce_abm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_TO_DCE_ABM
	movq	%rax, %rdi
	callq	_calculate_16_bit_backlight_from_pwm
	movl	%eax, %r14d
	movq	_DC_ABM1_HG_SAMPLE_RATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$259, %esi                      ## imm = 0x103
	callq	_REG_WRITE
	movl	(%rbx), %edi
	movl	$257, %esi                      ## imm = 0x101
	callq	_REG_WRITE
	movq	_DC_ABM1_LS_SAMPLE_RATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$259, %esi                      ## imm = 0x103
	callq	_REG_WRITE
	movl	(%rbx), %edi
	movl	$257, %esi                      ## imm = 0x101
	callq	_REG_WRITE
	movq	_BL1_PWM_BL_UPDATE_SAMPLE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$257, %esi                      ## imm = 0x101
	callq	_REG_WRITE
	movq	_DC_ABM1_HG_MISC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ABM1_HG_NUM_OF_BINS_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ABM1_HG_VMAX_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ABM1_HG_BIN_BITWIDTH_SIZE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	pushq	$0
	pushq	%rax
	callq	_REG_SET_3
	addq	$16, %rsp
	movq	_DC_ABM1_IPCSC_COEFF_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ABM1_IPCSC_COEFF_SEL_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ABM1_IPCSC_COEFF_SEL_G@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ABM1_IPCSC_COEFF_SEL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movl	$2, %ecx
	movl	$4, %r9d
	pushq	$2
	pushq	%rax
	callq	_REG_SET_3
	addq	$16, %rsp
	movq	_BL1_PWM_CURRENT_ABM_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
	movq	_BL1_PWM_TARGET_ABM_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
	movq	_BL1_PWM_USER_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
	movq	_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ABM1_LS_MIN_PIXEL_VALUE_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABM1_LS_MAX_PIXEL_VALUE_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_REG_UPDATE_2
	movq	_DC_ABM1_HGLS_REG_READ_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ABM1_HG_REG_READ_MISSED_FRAME_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ABM1_LS_REG_READ_MISSED_FRAME_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ABM1_BL_REG_READ_MISSED_FRAME_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movl	$1, %ecx
	movl	$1, %r9d
	pushq	$1
	pushq	%rax
	callq	_REG_SET_3
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_ABM1_HG_SAMPLE_RATE,4,2     ## @DC_ABM1_HG_SAMPLE_RATE
	.comm	_DC_ABM1_LS_SAMPLE_RATE,4,2     ## @DC_ABM1_LS_SAMPLE_RATE
	.comm	_BL1_PWM_BL_UPDATE_SAMPLE_RATE,4,2 ## @BL1_PWM_BL_UPDATE_SAMPLE_RATE
	.comm	_DC_ABM1_HG_MISC_CTRL,4,2       ## @DC_ABM1_HG_MISC_CTRL
	.comm	_ABM1_HG_NUM_OF_BINS_SEL,4,2    ## @ABM1_HG_NUM_OF_BINS_SEL
	.comm	_ABM1_HG_VMAX_SEL,4,2           ## @ABM1_HG_VMAX_SEL
	.comm	_ABM1_HG_BIN_BITWIDTH_SIZE_SEL,4,2 ## @ABM1_HG_BIN_BITWIDTH_SIZE_SEL
	.comm	_DC_ABM1_IPCSC_COEFF_SEL,4,2    ## @DC_ABM1_IPCSC_COEFF_SEL
	.comm	_ABM1_IPCSC_COEFF_SEL_R,4,2     ## @ABM1_IPCSC_COEFF_SEL_R
	.comm	_ABM1_IPCSC_COEFF_SEL_G,4,2     ## @ABM1_IPCSC_COEFF_SEL_G
	.comm	_ABM1_IPCSC_COEFF_SEL_B,4,2     ## @ABM1_IPCSC_COEFF_SEL_B
	.comm	_BL1_PWM_CURRENT_ABM_LEVEL,4,2  ## @BL1_PWM_CURRENT_ABM_LEVEL
	.comm	_BL1_PWM_TARGET_ABM_LEVEL,4,2   ## @BL1_PWM_TARGET_ABM_LEVEL
	.comm	_BL1_PWM_USER_LEVEL,4,2         ## @BL1_PWM_USER_LEVEL
	.comm	_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES,4,2 ## @DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES
	.comm	_ABM1_LS_MIN_PIXEL_VALUE_THRES,4,2 ## @ABM1_LS_MIN_PIXEL_VALUE_THRES
	.comm	_ABM1_LS_MAX_PIXEL_VALUE_THRES,4,2 ## @ABM1_LS_MAX_PIXEL_VALUE_THRES
	.comm	_DC_ABM1_HGLS_REG_READ_PROGRESS,4,2 ## @DC_ABM1_HGLS_REG_READ_PROGRESS
	.comm	_ABM1_HG_REG_READ_MISSED_FRAME_CLEAR,4,2 ## @ABM1_HG_REG_READ_MISSED_FRAME_CLEAR
	.comm	_ABM1_LS_REG_READ_MISSED_FRAME_CLEAR,4,2 ## @ABM1_LS_REG_READ_MISSED_FRAME_CLEAR
	.comm	_ABM1_BL_REG_READ_MISSED_FRAME_CLEAR,4,2 ## @ABM1_BL_REG_READ_MISSED_FRAME_CLEAR
	.no_dead_strip	_dce_abm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_abm_init
_dce_abm_init:                          ; @dce_abm_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
	bl	_TO_DCE_ABM
	bl	_calculate_16_bit_backlight_from_pwm
	mov	x19, x0
Lloh0:
	adrp	x20, _DC_ABM1_HG_SAMPLE_RATE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DC_ABM1_HG_SAMPLE_RATE@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #259
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #257
	bl	_REG_WRITE
Lloh2:
	adrp	x20, _DC_ABM1_LS_SAMPLE_RATE@GO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F_SEL_R@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _ABM1_IPCSC_COEFF_SEL_G@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABM1_IPCSC_COEFF_SEL_G@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
Lloh28:
	adrp	x8, _ABM1_IPCSC_COEFF_SEL_B@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ABM1_IPCSC_COEFF_SEL_B@GOTPAGEOFF]
Lloh30:
	ldr	w6, [x8]
	mov	w1, #0
	mov	w3, #2
	mov	w5, #4
	mov	w7, #2
	bl	_REG_SET_3
Lloh31:
	adrp	x8, _BL1_PWM_CURRENT_ABM_LEVEL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BL1_PWM_CURRENT_ABM_LEVEL@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x19
	bl	_REG_UPDATE
Lloh34:
	adrp	x8, _BL1_PWM_TARGET_ABM_LEVEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BL1_PWM_TARGET_ABM_LEVEL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x19
	bl	_REG_UPDATE
Lloh37:
	adrp	x8, _BL1_PWM_USER_LEVEL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BL1_PWM_USER_LEVEL@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x19
	bl	_REG_UPDATE
Lloh40:
	adrp	x8, _DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _ABM1_LS_MIN_PIXEL_VALUE_THRES@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ABM1_LS_MIN_PIXEL_VALUE_THRES@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _ABM1_LS_MAX_PIXEL_VALUE_THRES@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ABM1_LS_MAX_PIXEL_VALUE_THRES@GOTPAGEOFF]
Lloh48:
	ldr	w3, [x8]
	mov	w2, #0
	mov	w4, #1000
	bl	_REG_UPDATE_2
Lloh49:
	adrp	x8, _DC_ABM1_HGLS_REG_READ_PROGRESS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DC_ABM1_HGLS_REG_READ_PROGRESS@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x8, _ABM1_HG_REG_READ_MISSED_FRAME_CLEAR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ABM1_HG_REG_READ_MISSED_FRAME_CLEAR@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
Lloh55:
	adrp	x8, _ABM1_LS_REG_READ_MISSED_FRAME_CLEAR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ABM1_LS_REG_READ_MISSED_FRAME_CLEAR@GOTPAGEOFF]
Lloh57:
	ldr	w4, [x8]
Lloh58:
	adrp	x8, _ABM1_BL_REG_READ_MISSED_FRAME_CLEAR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ABM1_BL_REG_READ_MISSED_FRAME_CLEAR@GOTPAGEOFF]
Lloh60:
	ldr	w6, [x8]
	mov	w1, #0
	mov	w3, #1
	mov	w5, #1
	mov	w7, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_SET_3
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_ABM1_HG_SAMPLE_RATE,4,2     ; @DC_ABM1_HG_SAMPLE_RATE
	.comm	_DC_ABM1_LS_SAMPLE_RATE,4,2     ; @DC_ABM1_LS_SAMPLE_RATE
	.comm	_BL1_PWM_BL_UPDATE_SAMPLE_RATE,4,2 ; @BL1_PWM_BL_UPDATE_SAMPLE_RATE
	.comm	_DC_ABM1_HG_MISC_CTRL,4,2       ; @DC_ABM1_HG_MISC_CTRL
	.comm	_ABM1_HG_NUM_OF_BINS_SEL,4,2    ; @ABM1_HG_NUM_OF_BINS_SEL
	.comm	_ABM1_HG_VMAX_SEL,4,2           ; @ABM1_HG_VMAX_SEL
	.comm	_ABM1_HG_BIN_BITWIDTH_SIZE_SEL,4,2 ; @ABM1_HG_BIN_BITWIDTH_SIZE_SEL
	.comm	_DC_ABM1_IPCSC_COEFF_SEL,4,2    ; @DC_ABM1_IPCSC_COEFF_SEL
	.comm	_ABM1_IPCSC_COEFF_SEL_R,4,2     ; @ABM1_IPCSC_COEFF_SEL_R
	.comm	_ABM1_IPCSC_COEFF_SEL_G,4,2     ; @ABM1_IPCSC_COEFF_SEL_G
	.comm	_ABM1_IPCSC_COEFF_SEL_B,4,2     ; @ABM1_IPCSC_COEFF_SEL_B
	.comm	_BL1_PWM_CURRENT_ABM_LEVEL,4,2  ; @BL1_PWM_CURRENT_ABM_LEVEL
	.comm	_BL1_PWM_TARGET_ABM_LEVEL,4,2   ; @BL1_PWM_TARGET_ABM_LEVEL
	.comm	_BL1_PWM_USER_LEVEL,4,2         ; @BL1_PWM_USER_LEVEL
	.comm	_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES,4,2 ; @DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES
	.comm	_ABM1_LS_MIN_PIXEL_VALUE_THRES,4,2 ; @ABM1_LS_MIN_PIXEL_VALUE_THRES
	.comm	_ABM1_LS_MAX_PIXEL_VALUE_THRES,4,2 ; @ABM1_LS_MAX_PIXEL_VALUE_THRES
	.comm	_DC_ABM1_HGLS_REG_READ_PROGRESS,4,2 ; @DC_ABM1_HGLS_REG_READ_PROGRESS
	.comm	_ABM1_HG_REG_READ_MISSED_FRAME_CLEAR,4,2 ; @ABM1_HG_REG_READ_MISSED_FRAME_CLEAR
	.comm	_ABM1_LS_REG_READ_MISSED_FRAME_CLEAR,4,2 ; @ABM1_LS_REG_READ_MISSED_FRAME_CLEAR
	.comm	_ABM1_BL_REG_READ_MISSED_FRAME_CLEAR,4,2 ; @ABM1_BL_REG_READ_MISSED_FRAME_CLEAR
	.no_dead_strip	_dce_abm_init
.subsections_via_symbols
