	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acx565akm_power_on
_acx565akm_power_on:                    ## @acx565akm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$50, %edi
	callq	_msleep
	movl	24(%rbx), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	$120, %edi
	callq	_msleep
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_acx565akm_set_sleep_mode
	movl	$1, (%rbx)
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_acx565akm_set_display_state
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_acx565akm_set_cabc_mode
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_acx565akm_bl_update_status_locked ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"panel already enabled\n"

	.no_dead_strip	_acx565akm_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acx565akm_power_on
_acx565akm_power_on:                    ; @acx565akm_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
	mov	x19, x0
	mov	w0, #50
	bl	_msleep
	ldr	w0, [x19, #24]
	mov	w20, #1
	mov	w1, #1
	bl	_gpiod_set_value
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #120
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	bl	_acx565akm_set_sleep_mode
	str	w20, [x19]
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #1
	bl	_acx565akm_set_display_state
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_acx565akm_set_cabc_mode
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_acx565akm_bl_update_status_locked
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"panel already enabled\n"

	.no_dead_strip	_acx565akm_power_on
.subsections_via_symbols
