	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pollux_bat_capacity_get
_pollux_bat_capacity_get:               ## @pollux_bat_capacity_get
	.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
	movw	$0, -10(%rbp)
	movq	_battdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$-1, %ebx
	testq	%rdi, %rdi
	js	LBB0_4
## %bb.1:
	leaq	-10(%rbp), %rsi
	movl	$2, %edx
	callq	_read
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.2:
	movzwl	-10(%rbp), %eax
	addl	$-2, %eax
	movl	$100, %ebx
	cmpw	$2, %ax
	ja	LBB0_4
## %bb.3:
	movswq	%ax, %rax
	leaq	l_switch.table.pollux_bat_capacity_get(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_battdev,8,3                    ## @battdev
	.no_dead_strip	_pollux_bat_capacity_get
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.pollux_bat_capacity_get
l_switch.table.pollux_bat_capacity_get:
	.long	66                              ## 0x42
	.long	40                              ## 0x28
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pollux_bat_capacity_get
_pollux_bat_capacity_get:               ; @pollux_bat_capacity_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	sturh	wzr, [x29, #-2]
Lloh0:
	adrp	x8, _battdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _battdev@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_4
; %bb.1:
	sub	x1, x29, #2
	mov	w2, #2
	bl	_read
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.2:
	ldurh	w8, [x29, #-2]
	sub	w8, w8, #2
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.3:
	sxth	x8, w8
Lloh3:
	adrp	x9, l_switch.table.pollux_bat_capacity_get@PAGE
Lloh4:
	add	x9, x9, l_switch.table.pollux_bat_capacity_get@PAGEOFF
	ldr	w0, [x9, x8, lsl #2]
	b	LBB0_6
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	mov	w0, #100
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_battdev,8,3                    ; @battdev
	.no_dead_strip	_pollux_bat_capacity_get
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.pollux_bat_capacity_get
l_switch.table.pollux_bat_capacity_get:
	.long	66                              ; 0x42
	.long	40                              ; 0x28
	.long	0                               ; 0x0

.subsections_via_symbols
