	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function force_power_store
_force_power_store:                     ## @force_power_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdi, %r14
	movl	$4, -48(%rbp)
	leaq	-28(%rbp), %rax
	movq	%rax, -40(%rbp)
	movsbl	(%rdx), %edi
	callq	_hex_to_bin
	movl	%eax, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$1, -28(%rbp)
	ja	LBB0_1
## %bb.2:
	movq	_INTEL_WMI_THUNDERBOLT_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_wmi_evaluate_method
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	subq	(%r15), %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"force_power: storing %#x\n"

	.comm	_INTEL_WMI_THUNDERBOLT_GUID,4,2 ## @INTEL_WMI_THUNDERBOLT_GUID
L_.str.1:                               ## @.str.1
	.asciz	"force_power: failed to evaluate ACPI method\n"

	.comm	_ENODEV,8,3                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"force_power: unsupported mode\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_force_power_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function force_power_store
_force_power_store:                     ; @force_power_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #16]
	add	x8, sp, #12
	str	x8, [sp, #24]
	ldrsb	w0, [x2]
	bl	_hex_to_bin
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #12]
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _INTEL_WMI_THUNDERBOLT_GUID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_WMI_THUNDERBOLT_GUID@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x3, sp, #16
	mov	w1, #0
	mov	w2, #1
	mov	x4, #0
	bl	_wmi_evaluate_method
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x20, _ENODEV@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ENODEV@GOTPAGEOFF]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x20, _EINVAL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20]
	neg	x20, x8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"force_power: storing %#x\n"

	.comm	_INTEL_WMI_THUNDERBOLT_GUID,4,2 ; @INTEL_WMI_THUNDERBOLT_GUID
l_.str.1:                               ; @.str.1
	.asciz	"force_power: failed to evaluate ACPI method\n"

	.comm	_ENODEV,8,3                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"force_power: unsupported mode\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_force_power_store
.subsections_via_symbols
