	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_batt_time
_print_batt_time:                       ## @print_batt_time
	.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(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$-1, %ebx
	je	LBB0_1
## %bb.2:
	movslq	%ebx, %rax
	imulq	$-2004318071, %rax, %rdx        ## imm = 0x88888889
	shrq	$32, %rdx
	addl	%ebx, %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	sarl	$5, %edx
	addl	%ecx, %edx
	imull	$60, %edx, %esi
	movl	%ebx, %ecx
	subl	%esi, %ecx
	movslq	%edx, %rdx
	imulq	$-2004318071, %rdx, %rsi        ## imm = 0x88888889
	shrq	$32, %rsi
	addl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	sarl	$5, %esi
	addl	%edi, %esi
	imull	$60, %esi, %esi
	subl	%esi, %edx
	imulq	$-1851608123, %rax, %rsi        ## imm = 0x91A2B3C5
	shrq	$32, %rsi
	addl	%ebx, %esi
	movl	%esi, %eax
	shrl	$31, %eax
	sarl	$11, %esi
	addl	%eax, %esi
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_1:
	leaq	L_str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remaining battery time: "

L_.str.2:                               ## @.str.2
	.asciz	"%2d:%02d:%02d\n"

L_str:                                  ## @str
	.asciz	"unknown"

	.no_dead_strip	_print_batt_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_batt_time
_print_batt_time:                       ; @print_batt_time
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cmn	w19, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	smull	x9, w19, w8
	lsr	x9, x9, #32
	add	w9, w9, w19
	asr	w10, w9, #5
	add	w9, w10, w9, lsr #31
	mov	w10, #60
	msub	w11, w9, w10, w19
	smull	x8, w9, w8
	lsr	x8, x8, #32
	add	w8, w8, w9
	asr	w12, w8, #5
	add	w8, w12, w8, lsr #31
	msub	w8, w8, w10, w9
	mov	w9, #46021
	movk	w9, #37282, lsl #16
	smull	x9, w19, w9
	lsr	x9, x9, #32
	add	w9, w9, w19
	asr	w10, w9, #11
	add	w9, w10, w9, lsr #31
	stp	x8, x11, [sp, #8]
	str	x9, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_puts
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remaining battery time: "

l_.str.2:                               ; @.str.2
	.asciz	"%2d:%02d:%02d\n"

l_str:                                  ; @str
	.asciz	"unknown"

	.no_dead_strip	_print_batt_time
.subsections_via_symbols
