	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_val_to_charge_mode
_psp_val_to_charge_mode:                ## @psp_val_to_charge_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_CHARGE_MODE_AC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_CHARGE_MODE_STD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_CHARGE_MODE_EXP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_CHARGE_MODE_CUSTOM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	_CHARGE_MODE_AUTO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_CHARGE_MODE_AC,4,2             ## @CHARGE_MODE_AC
	.comm	_CHARGE_MODE_EXP,4,2            ## @CHARGE_MODE_EXP
	.comm	_CHARGE_MODE_STD,4,2            ## @CHARGE_MODE_STD
	.comm	_CHARGE_MODE_AUTO,4,2           ## @CHARGE_MODE_AUTO
	.comm	_CHARGE_MODE_CUSTOM,4,2         ## @CHARGE_MODE_CUSTOM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_psp_val_to_charge_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_val_to_charge_mode
_psp_val_to_charge_mode:                ; @psp_val_to_charge_mode
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _CHARGE_MODE_AC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHARGE_MODE_AC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
Lloh8:
	adrp	x8, _CHARGE_MODE_STD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHARGE_MODE_STD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh11:
	adrp	x8, _CHARGE_MODE_EXP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHARGE_MODE_EXP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh14:
	adrp	x8, _CHARGE_MODE_CUSTOM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHARGE_MODE_CUSTOM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh17:
	adrp	x8, _CHARGE_MODE_AUTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHARGE_MODE_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CHARGE_MODE_AC,4,2             ; @CHARGE_MODE_AC
	.comm	_CHARGE_MODE_EXP,4,2            ; @CHARGE_MODE_EXP
	.comm	_CHARGE_MODE_STD,4,2            ; @CHARGE_MODE_STD
	.comm	_CHARGE_MODE_AUTO,4,2           ; @CHARGE_MODE_AUTO
	.comm	_CHARGE_MODE_CUSTOM,4,2         ; @CHARGE_MODE_CUSTOM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_psp_val_to_charge_mode
.subsections_via_symbols
