	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nt39016_enable
_nt39016_enable:                        ## @nt39016_enable
	.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_nt39016
	movq	%rax, %r14
	movl	12(%rax), %edi
	movq	_NT39016_REG_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NT39016_SYSTEM_RESET_N@GOTPCREL(%rip), %rax
	movq	_NT39016_SYSTEM_STANDBY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.5:
	movl	$150, %edi
	callq	_msleep
	movq	(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_backlight_enable               ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NT39016_REG_SYSTEM,4,2         ## @NT39016_REG_SYSTEM
	.comm	_NT39016_SYSTEM_RESET_N,4,2     ## @NT39016_SYSTEM_RESET_N
	.comm	_NT39016_SYSTEM_STANDBY,4,2     ## @NT39016_SYSTEM_STANDBY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to enable panel: %d"

	.no_dead_strip	_nt39016_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nt39016_enable
_nt39016_enable:                        ; @nt39016_enable
	.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_nt39016
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _NT39016_REG_SYSTEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NT39016_REG_SYSTEM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NT39016_SYSTEM_RESET_N@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NT39016_SYSTEM_RESET_N@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _NT39016_SYSTEM_STANDBY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NT39016_SYSTEM_STANDBY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #150
	bl	_msleep
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_backlight_enable
LBB0_5:
	mov	w20, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NT39016_REG_SYSTEM,4,2         ; @NT39016_REG_SYSTEM
	.comm	_NT39016_SYSTEM_RESET_N,4,2     ; @NT39016_SYSTEM_RESET_N
	.comm	_NT39016_SYSTEM_STANDBY,4,2     ; @NT39016_SYSTEM_STANDBY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to enable panel: %d"

	.no_dead_strip	_nt39016_enable
.subsections_via_symbols
