	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function td043mtea1_power_on
_td043mtea1_power_on:                   ## @td043mtea1_power_on
	.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
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	$160, %edi
	callq	_msleep
	movl	8(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	4(%rbx), %edi
	callq	_TPO_R02_MODE
	movq	_TPO_R02_NCLK_RISING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_td043mtea1_write
	movq	_TPO_R03_VAL_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_td043mtea1_write
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$240, %edx
	callq	_td043mtea1_write
	movq	%rbx, %rdi
	movl	$33, %esi
	movl	$240, %edx
	callq	_td043mtea1_write
	movq	%rbx, %rdi
	callq	_td043mtea1_write_mirror
	movq	%rbx, %rdi
	callq	_td043mtea1_write_gamma
	movl	$1, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPO_R02_NCLK_RISING,4,2        ## @TPO_R02_NCLK_RISING
	.comm	_TPO_R03_VAL_NORMAL,4,2         ## @TPO_R03_VAL_NORMAL
	.no_dead_strip	_td043mtea1_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function td043mtea1_power_on
_td043mtea1_power_on:                   ; @td043mtea1_power_on
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w0, #160
	bl	_msleep
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_gpiod_set_value
	ldr	w0, [x19, #4]
	bl	_TPO_R02_MODE
Lloh0:
	adrp	x8, _TPO_R02_NCLK_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPO_R02_NCLK_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	w1, #2
	bl	_td043mtea1_write
Lloh3:
	adrp	x8, _TPO_R03_VAL_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPO_R03_VAL_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #3
	bl	_td043mtea1_write
	mov	x0, x19
	mov	w1, #32
	mov	w2, #240
	bl	_td043mtea1_write
	mov	x0, x19
	mov	w1, #33
	mov	w2, #240
	bl	_td043mtea1_write
	mov	x0, x19
	bl	_td043mtea1_write_mirror
	mov	x0, x19
	bl	_td043mtea1_write_gamma
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TPO_R02_NCLK_RISING,4,2        ; @TPO_R02_NCLK_RISING
	.comm	_TPO_R03_VAL_NORMAL,4,2         ; @TPO_R03_VAL_NORMAL
	.no_dead_strip	_td043mtea1_power_on
.subsections_via_symbols
