	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_battery_get_state
_cpcap_battery_get_state:               ## @cpcap_battery_get_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CPCAP_BATTERY_STATE_NR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movl	%esi, %eax
	shlq	$2, %rax
	addq	(%rdi), %rax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPCAP_BATTERY_STATE_NR,4,2     ## @CPCAP_BATTERY_STATE_NR
	.no_dead_strip	_cpcap_battery_get_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_battery_get_state
_cpcap_battery_get_state:               ; @cpcap_battery_get_state
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CPCAP_BATTERY_STATE_NR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPCAP_BATTERY_STATE_NR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	add	x0, x8, w1, uxtw #2
	ret
LBB0_2:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CPCAP_BATTERY_STATE_NR,4,2     ; @CPCAP_BATTERY_STATE_NR
	.no_dead_strip	_cpcap_battery_get_state
.subsections_via_symbols
