	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_batt_stat
_print_batt_stat:                       ## @print_batt_stat
	.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
	movl	%edi, %ebx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_APM_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.1:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	cmpl	$4, %ebx
	jl	LBB0_4
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_4:
	movslq	%ebx, %rax
	leaq	l_reltable.print_batt_stat(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"high"

L_.str.1:                               ## @.str.1
	.asciz	"low"

L_.str.2:                               ## @.str.2
	.asciz	"critical"

L_.str.3:                               ## @.str.3
	.asciz	"charging"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.print_batt_stat
l_reltable.print_batt_stat:
	.long	L_.str-l_reltable.print_batt_stat
	.long	L_.str.1-l_reltable.print_batt_stat
	.long	L_.str.2-l_reltable.print_batt_stat
	.long	L_.str.3-l_reltable.print_batt_stat

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"Battery Status: "

	.comm	_APM_UNKNOWN,4,2                ## @APM_UNKNOWN
L_.str.6:                               ## @.str.6
	.asciz	"invalid value (0x%x)\n"

L_str:                                  ## @str
	.asciz	"unknown"

	.no_dead_strip	_print_batt_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_batt_stat
_print_batt_stat:                       ; @print_batt_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh2:
	adrp	x8, _APM_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APM_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_5
LBB0_2:
	cmp	w19, #4
	b.lt	LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh7:
	adrp	x0, l_.str.6@PAGE
Lloh8:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh9:
	adrp	x8, l___const.print_batt_stat.batt_msg@PAGE
Lloh10:
	add	x8, x8, l___const.print_batt_stat.batt_msg@PAGEOFF
	ldr	x0, [x8, w19, sxtw #3]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_puts
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"high"

l_.str.1:                               ; @.str.1
	.asciz	"low"

l_.str.2:                               ; @.str.2
	.asciz	"critical"

l_.str.3:                               ; @.str.3
	.asciz	"charging"

	.section	__DATA,__const
	.p2align	3                               ; @__const.print_batt_stat.batt_msg
l___const.print_batt_stat.batt_msg:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"Battery Status: "

	.comm	_APM_UNKNOWN,4,2                ; @APM_UNKNOWN
l_.str.6:                               ; @.str.6
	.asciz	"invalid value (0x%x)\n"

l_str:                                  ; @str
	.asciz	"unknown"

	.no_dead_strip	_print_batt_stat
.subsections_via_symbols
