	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psp_get_status_line            ## -- Begin function psp_get_status_line
	.p2align	4, 0x90
_psp_get_status_line:                   ## @psp_get_status_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-48(%rbp), %rdi
	callq	_sceRtcGetCurrentClockLocalTime
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_scePowerGetBatteryLifePercent
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_scePowerGetBatteryLifeTime
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.1:
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.2:
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	leaq	_psp_get_status_line.buff(%rip), %r12
	leaq	L_.str(%rip), %rdx
	movl	$64, %r15d
	movq	%r12, %rdi
	movl	$64, %esi
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_snprintf
	xorl	%eax, %eax
	callq	_scePowerIsPowerOnline
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	_psp_get_status_line.buff(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r12, %rbx
	movq	%r12, %rdi
	callq	_strlen
	subl	%eax, %r15d
	movl	%r14d, %eax
	movl	$2290649225, %ecx               ## imm = 0x88888889
	imulq	%rax, %rcx
	shrq	$37, %rcx
	imull	$60, %ecx, %eax
	subl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
LBB0_5:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_psp_get_status_line.buff,64,4 ## @psp_get_status_line.buff
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02i:%02i  bat: %3i%%"

L_.str.1:                               ## @.str.1
	.asciz	" (%i:%02i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psp_get_status_line            ; -- Begin function psp_get_status_line
	.p2align	2
_psp_get_status_line:                   ; @psp_get_status_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	add	x0, sp, #8
	bl	_sceRtcGetCurrentClockLocalTime
	mov	x22, x0
	bl	_scePowerGetBatteryLifePercent
	mov	x21, x0
	bl	_scePowerGetBatteryLifeTime
	mov	x19, #0
	tbnz	w22, #31, LBB0_5
; %bb.1:
	tbnz	w21, #31, LBB0_5
; %bb.2:
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldp	w3, w4, [sp, #8]
	str	x21, [sp]
Lloh0:
	adrp	x19, _psp_get_status_line.buff@PAGE
Lloh1:
	add	x19, x19, _psp_get_status_line.buff@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w22, #64
	mov	x0, x19
	mov	w1, #64
	bl	_snprintf
	bl	_scePowerIsPowerOnline
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_strlen
	add	x21, x19, w0, sxtw
	mov	x0, x19
	bl	_strlen
	sub	w1, w22, w0
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	umull	x8, w20, w8
	lsr	x3, x8, #37
	mov	w8, #60
	msub	w4, w3, w8, w20
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_psp_get_status_line.buff,64,0 ; @psp_get_status_line.buff
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02i:%02i  bat: %3i%%"

l_.str.1:                               ; @.str.1
	.asciz	" (%i:%02i)"

.subsections_via_symbols
