	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wuxga_nt_panel_prepare
_wuxga_nt_panel_prepare:                ## @wuxga_nt_panel_prepare
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_wuxga_nt_panel
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r15
	movl	8(%rax), %ebx
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ktime_ms_delta
	movq	_MIN_POFF_MS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	cmovlq	%rax, %rdi
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msleep
LBB0_3:
	movl	4(%r15), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$250, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_wuxga_nt_panel_on
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	$1, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	4(%r15), %edi
	callq	_regulator_disable
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_POFF_MS,8,3                ## @MIN_POFF_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set panel on: %d\n"

	.no_dead_strip	_wuxga_nt_panel_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wuxga_nt_panel_prepare
_wuxga_nt_panel_prepare:                ; @wuxga_nt_panel_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_to_wuxga_nt_panel
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w21, [x0, #8]
	bl	_ktime_get_real
	mov	x1, x0
	mov	x0, x21
	bl	_ktime_ms_delta
Lloh0:
	adrp	x8, _MIN_POFF_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_POFF_MS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x0, x0, x8, lt
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.4:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_msleep
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	w0, #250
	bl	_msleep
	mov	x0, x19
	bl	_wuxga_nt_panel_on
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
LBB0_8:
	mov	x21, x0
	b	LBB0_2
LBB0_9:
	mov	x21, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	ldr	w0, [x19, #4]
	bl	_regulator_disable
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_POFF_MS,8,3                ; @MIN_POFF_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set panel on: %d\n"

	.no_dead_strip	_wuxga_nt_panel_prepare
.subsections_via_symbols
