	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ld9040_init
_ld9040_init:                           ## @ld9040_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MCS_USER_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$90, %edx
	movl	$90, %ecx
	xorl	%eax, %eax
	callq	_ld9040_dcs_write_seq_static
	movq	_MCS_PANEL_CONDITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$5, %edx
	movl	$101, %ecx
	movl	$150, %r8d
	movl	$113, %r9d
	xorl	%eax, %eax
	pushq	$2
	pushq	$2
	pushq	$32
	pushq	$32
	pushq	$32
	pushq	$7
	pushq	$7
	pushq	$125
	pushq	$126
	pushq	$0
	pushq	$0
	pushq	$226
	pushq	$13
	pushq	$126
	pushq	$25
	pushq	$13
	pushq	$59
	pushq	$25
	pushq	$125
	callq	_ld9040_dcs_write_seq_static
	addq	$160, %rsp
	movq	_MCS_DISPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$8, %ecx
	movl	$8, %r8d
	movl	$16, %r9d
	xorl	%eax, %eax
	pushq	$16
	callq	_ld9040_dcs_write_seq_static
	addq	$16, %rsp
	movq	_MCS_MANPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_ld9040_dcs_write_seq_static
	movq	_MCS_POWER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$135, %ecx
	movl	$37, %r8d
	movl	$106, %r9d
	xorl	%eax, %eax
	pushq	$136
	pushq	$2
	pushq	$68
	callq	_ld9040_dcs_write_seq_static
	addq	$32, %rsp
	movq	_MCS_ELVSS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$13, %edx
	xorl	%ecx, %ecx
	movl	$22, %r8d
	xorl	%eax, %eax
	callq	_ld9040_dcs_write_seq_static
	movq	_MCS_GTCON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_ld9040_dcs_write_seq_static
	movq	%rbx, %rdi
	callq	_ld9040_brightness_set
	movq	_MIPI_DCS_EXIT_SLEEP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ld9040_dcs_write_seq_static
	movq	_MIPI_DCS_SET_DISPLAY_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ld9040_dcs_write_seq_static    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCS_USER_SETTING,4,2           ## @MCS_USER_SETTING
	.comm	_MCS_PANEL_CONDITION,4,2        ## @MCS_PANEL_CONDITION
	.comm	_MCS_DISPCTL,4,2                ## @MCS_DISPCTL
	.comm	_MCS_MANPWR,4,2                 ## @MCS_MANPWR
	.comm	_MCS_POWER_CTRL,4,2             ## @MCS_POWER_CTRL
	.comm	_MCS_ELVSS_ON,4,2               ## @MCS_ELVSS_ON
	.comm	_MCS_GTCON,4,2                  ## @MCS_GTCON
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ## @MIPI_DCS_EXIT_SLEEP_MODE
	.comm	_MIPI_DCS_SET_DISPLAY_ON,4,2    ## @MIPI_DCS_SET_DISPLAY_ON
	.no_dead_strip	_ld9040_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ld9040_init
_ld9040_init:                           ; @ld9040_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
Lloh0:
	adrp	x8, _MCS_USER_SETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCS_USER_SETTING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #90
	stp	x8, x8, [sp]
	bl	_ld9040_dcs_write_seq_static
Lloh3:
	adrp	x8, _MCS_PANEL_CONDITION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCS_PANEL_CONDITION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w21, #2
	stp	x21, x21, [sp, #168]
	mov	w9, #32
	stp	x9, x9, [sp, #152]
	mov	w10, #7
	stp	x10, x9, [sp, #136]
	mov	w11, #125
	mov	w9, #126
	stp	x11, x10, [sp, #120]
	stp	xzr, x9, [sp, #104]
	mov	w10, #226
	mov	w20, #13
	stp	x10, xzr, [sp, #88]
	stp	x9, x20, [sp, #72]
	mov	w10, #25
	stp	x20, x10, [sp, #56]
	mov	w9, #59
	stp	x10, x9, [sp, #40]
	mov	w8, #113
	mov	w9, #150
	stp	x8, x11, [sp, #24]
	str	x9, [sp, #16]
	mov	w8, #101
	mov	w9, #5
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
Lloh6:
	adrp	x8, _MCS_DISPCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCS_DISPCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w8, #16
	stp	x8, x8, [sp, #24]
	mov	w9, #8
	stp	x9, x9, [sp, #8]
	str	x21, [sp]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
Lloh9:
	adrp	x8, _MCS_MANPWR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCS_MANPWR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w8, #4
	str	x8, [sp]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
Lloh12:
	adrp	x8, _MCS_POWER_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCS_POWER_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w8, #136
	stp	x21, x8, [sp, #40]
	mov	w11, #68
	mov	w8, #106
	mov	w9, #37
	stp	x8, x11, [sp, #24]
	str	x9, [sp, #16]
	mov	w8, #135
	mov	w9, #10
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
Lloh15:
	adrp	x8, _MCS_ELVSS_ON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCS_ELVSS_ON@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w8, #22
	stp	xzr, x8, [sp, #8]
	str	x20, [sp]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
Lloh18:
	adrp	x8, _MCS_GTCON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCS_GTCON@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	stp	xzr, xzr, [sp, #8]
	mov	w8, #9
	str	x8, [sp]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
	mov	x0, x19
	bl	_ld9040_brightness_set
Lloh21:
	adrp	x8, _MIPI_DCS_EXIT_SLEEP_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MIPI_DCS_EXIT_SLEEP_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ld9040_dcs_write_seq_static
Lloh24:
	adrp	x8, _MIPI_DCS_SET_DISPLAY_ON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MIPI_DCS_SET_DISPLAY_ON@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #240
	b	_ld9040_dcs_write_seq_static
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MCS_USER_SETTING,4,2           ; @MCS_USER_SETTING
	.comm	_MCS_PANEL_CONDITION,4,2        ; @MCS_PANEL_CONDITION
	.comm	_MCS_DISPCTL,4,2                ; @MCS_DISPCTL
	.comm	_MCS_MANPWR,4,2                 ; @MCS_MANPWR
	.comm	_MCS_POWER_CTRL,4,2             ; @MCS_POWER_CTRL
	.comm	_MCS_ELVSS_ON,4,2               ; @MCS_ELVSS_ON
	.comm	_MCS_GTCON,4,2                  ; @MCS_GTCON
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ; @MIPI_DCS_EXIT_SLEEP_MODE
	.comm	_MIPI_DCS_SET_DISPLAY_ON,4,2    ; @MIPI_DCS_SET_DISPLAY_ON
	.no_dead_strip	_ld9040_init
.subsections_via_symbols
