	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_map_battery_level
_hidpp_map_battery_level:               ## @hidpp_map_battery_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$11, %edi
	jge	LBB0_2
## %bb.1:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	cmpl	$30, %edi
	jae	LBB0_4
## %bb.3:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	cmpl	$81, %edi
	jae	LBB0_5
## %bb.6:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_FULL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_LOW,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_LOW
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_NORMAL
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_FULL,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_FULL
	.no_dead_strip	_hidpp_map_battery_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_map_battery_level
_hidpp_map_battery_level:               ; @hidpp_map_battery_level
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _POWER_SUPPLY_CAPACITY_LEVEL_LOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POWER_SUPPLY_CAPACITY_LEVEL_LOW@GOTPAGEOFF]
Lloh4:
	adrp	x10, _POWER_SUPPLY_CAPACITY_LEVEL_FULL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _POWER_SUPPLY_CAPACITY_LEVEL_FULL@GOTPAGEOFF]
Lloh6:
	adrp	x11, _POWER_SUPPLY_CAPACITY_LEVEL_NORMAL@GOTPAGE
Lloh7:
	ldr	x11, [x11, _POWER_SUPPLY_CAPACITY_LEVEL_NORMAL@GOTPAGEOFF]
	cmp	w0, #81
	csel	x10, x11, x10, lo
	cmp	w0, #30
	csel	x9, x9, x10, lo
	cmp	w0, #11
	csel	x8, x8, x9, lt
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_LOW,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_LOW
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_NORMAL
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_FULL,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_FULL
	.no_dead_strip	_hidpp_map_battery_level
.subsections_via_symbols
