	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function boot_on_ac_store
_boot_on_ac_store:                      ## @boot_on_ac_store
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtou8
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	cmpl	$2, -36(%rbp)
	jl	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	leaq	-104(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_CMD_KB_CMOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_SUB_CMD_KB_CMOS_AUTO_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -104(%rbp)
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_WILCO_EC_MSG_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, -64(%rbp)
	movl	$32, -68(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wilco_ec_mailbox
	testl	%eax, %eax
	cmovsl	%eax, %r15d
	movl	%r15d, %eax
LBB0_4:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CMD_KB_CMOS,4,2                ## @CMD_KB_CMOS
	.comm	_SUB_CMD_KB_CMOS_AUTO_ON,4,2    ## @SUB_CMD_KB_CMOS_AUTO_ON
	.comm	_WILCO_EC_MSG_LEGACY,4,2        ## @WILCO_EC_MSG_LEGACY
	.no_dead_strip	_boot_on_ac_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function boot_on_ac_store
_boot_on_ac_store:                      ; @boot_on_ac_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtou8
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	add	x21, sp, #48
	mov	w22, #32
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh3:
	adrp	x8, _CMD_KB_CMOS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_KB_CMOS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #72]
Lloh6:
	adrp	x8, _SUB_CMD_KB_CMOS_AUTO_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUB_CMD_KB_CMOS_AUTO_ON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	str	w8, [sp, #68]
	str	w9, [sp, #48]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh9:
	adrp	x8, _WILCO_EC_MSG_LEGACY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WILCO_EC_MSG_LEGACY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	x21, [sp, #24]
	str	w22, [sp, #20]
	add	x1, sp, #16
	mov	x0, x20
	bl	_wilco_ec_mailbox
	cmp	w0, #0
	csel	w0, w0, w19, lt
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CMD_KB_CMOS,4,2                ; @CMD_KB_CMOS
	.comm	_SUB_CMD_KB_CMOS_AUTO_ON,4,2    ; @SUB_CMD_KB_CMOS_AUTO_ON
	.comm	_WILCO_EC_MSG_LEGACY,4,2        ; @WILCO_EC_MSG_LEGACY
	.no_dead_strip	_boot_on_ac_store
.subsections_via_symbols
