	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_all_info
_print_all_info:                        ## @print_all_info
	.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
	subq	$1144, %rsp                     ## imm = 0x478
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edi, -1076(%rbp)               ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %esi
	movl	4(%r12), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpq	$0, 40(%r12)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movslq	8(%r12), %rsi
	movq	_APM_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_2
## %bb.1:
	leaq	L_str.46(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	cmpl	$3, %esi
	jl	LBB0_4
## %bb.3:
	leaq	L_.str.9(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_6
LBB0_4:
	leaq	l_reltable.print_all_info(%rip), %rax
	movslq	(%rax,%rsi,4), %rdi
	addq	%rax, %rdi
LBB0_5:
	callq	_puts
LBB0_6:
	movl	32(%r12), %edi
	callq	_print_batt_stat
	movl	28(%r12), %edi
	callq	_print_batt_life
	movl	24(%r12), %edi
	callq	_print_batt_time
	cmpl	$0, 12(%r12)
	jle	LBB0_17
## %bb.7:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	16(%r12), %esi
	cmpl	$-1, %esi
	je	LBB0_8
## %bb.9:
	movl	%ebx, -1080(%rbp)               ## 4-byte Spill
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, 16(%r12)
	je	LBB0_16
## %bb.10:
	leaq	-1072(%rbp), %rbx
	movq	_PMDV_BATT0@GOTPCREL(%rip), %r14
	movq	_APMIO_GETPWSTATUS@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$9, %edi
	callq	_putchar
	movl	-1028(%rbp), %edi
	callq	_print_batt_stat
	movl	$9, %edi
	callq	_putchar
	movl	-1032(%rbp), %edi
	callq	_print_batt_life
	movl	$9, %edi
	callq	_putchar
	movl	-1036(%rbp), %edi
	callq	_print_batt_time
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	cmpl	16(%r12), %r15d
	jae	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_bzero
	movl	(%r14), %eax
	addl	%r15d, %eax
	movl	%eax, -1072(%rbp)
	movl	(%r13), %esi
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_ioctl
	cmpq	$-1, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.13(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_APM_BATT_NOT_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -1068(%rbp)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_str.44(%rip), %rdi
	callq	_puts
	jmp	LBB0_15
LBB0_16:
	movl	-1080(%rbp), %ebx               ## 4-byte Reload
LBB0_17:
	testl	%ebx, %ebx
	je	LBB0_33
LBB0_18:
	leaq	-1136(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_bzero
	movq	_APM_BIOS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shll	$8, %eax
	movq	_APM_RESUMETIMER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -1128(%rbp)
	movq	_PMDV_APMBIOS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -1112(%rbp)
	movl	$1, -1124(%rbp)
	movq	_APMIO_BIOS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_19
LBB0_29:
	leaq	L_str.43(%rip), %rdi
	jmp	LBB0_30
LBB0_8:
	leaq	L_str.46(%rip), %rdi
	callq	_puts
	testl	%ebx, %ebx
	jne	LBB0_18
	jmp	LBB0_33
LBB0_19:
	movl	-1128(%rbp), %edi
	callq	_APMERR
	testl	%eax, %eax
	je	LBB0_24
## %bb.20:
	cmpl	$134, %eax
	je	LBB0_22
## %bb.21:
	cmpl	$13, %eax
	jne	LBB0_23
LBB0_22:
	leaq	L_str.42(%rip), %rdi
LBB0_30:
	callq	_puts
LBB0_31:
	leaq	-1136(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_bzero
	movl	(%r14), %eax
	shll	$8, %eax
	movq	_APM_RESUMEONRING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -1128(%rbp)
	movq	(%r13), %rax
	movq	%rax, -1112(%rbp)
	movl	$2, -1124(%rbp)
	movl	(%r15), %esi
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_33
## %bb.32:
	cmpl	$0, -1124(%rbp)
	leaq	L_.str.23(%rip), %rax
	leaq	L_.str.22(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.21(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_33:
	cmpl	$0, 12(%r12)
	jle	LBB0_51
## %bb.34:
	cmpl	$65280, 20(%r12)                ## imm = 0xFF00
	je	LBB0_51
## %bb.35:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$1, %al
	jne	LBB0_36
## %bb.37:
	testb	$2, %al
	jne	LBB0_38
LBB0_39:
	testb	$4, %al
	jne	LBB0_40
LBB0_41:
	testb	$8, %al
	jne	LBB0_42
LBB0_43:
	testb	$16, %al
	jne	LBB0_44
LBB0_45:
	testb	$32, %al
	jne	LBB0_46
LBB0_47:
	testb	$64, %al
	jne	LBB0_48
LBB0_49:
	testb	$-128, %al
	je	LBB0_51
LBB0_50:
	leaq	L_str.33(%rip), %rdi
	callq	_puts
LBB0_51:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.52:
	addq	$1144, %rsp                     ## imm = 0x478
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	leaq	L_str.40(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$2, %al
	je	LBB0_39
LBB0_38:
	leaq	L_str.39(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$4, %al
	je	LBB0_41
LBB0_40:
	leaq	L_str.38(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$8, %al
	je	LBB0_43
LBB0_42:
	leaq	L_str.37(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$16, %al
	je	LBB0_45
LBB0_44:
	leaq	L_str.36(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$32, %al
	je	LBB0_47
LBB0_46:
	leaq	L_str.35(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$64, %al
	je	LBB0_49
LBB0_48:
	leaq	L_str.34(%rip), %rdi
	callq	_puts
	movl	20(%r12), %eax
	testb	$-128, %al
	jne	LBB0_50
	jmp	LBB0_51
LBB0_24:
	movl	-1124(%rbp), %edi
	callq	_xh
	movl	%eax, %edi
	callq	_bcd2int
	movq	%rax, -1144(%rbp)
	movl	-1120(%rbp), %edi
	callq	_xl
	movl	%eax, %edi
	callq	_bcd2int
	movq	%rax, -1152(%rbp)
	movl	-1120(%rbp), %edi
	callq	_xh
	movl	%eax, %edi
	callq	_bcd2int
	movq	%rax, -1160(%rbp)
	movl	-1116(%rbp), %edi
	callq	_xl
	movl	%eax, %edi
	callq	_bcd2int
	movq	%rax, -1168(%rbp)
	movl	-1116(%rbp), %edi
	callq	_xh
	movl	%eax, %edi
	callq	_bcd2int
	decq	%rax
	movq	%rax, -1176(%rbp)
	movl	-1104(%rbp), %edi
	callq	_bcd2int
	addq	$-1900, %rax                    ## imm = 0xF894
	movq	%rax, -1184(%rbp)
	movq	_cmos_wall@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.25:
	leaq	-1184(%rbp), %rdi
	callq	_mktime
	jmp	LBB0_27
LBB0_23:
	leaq	L_.str.18(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	jmp	LBB0_31
LBB0_26:
	leaq	-1184(%rbp), %rdi
	callq	_timegm
LBB0_27:
	movl	%eax, -1084(%rbp)
	cmpl	$-1, %eax
	je	LBB0_29
## %bb.28:
	leaq	-1084(%rbp), %rdi
	callq	_localtime
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movaps	%xmm0, -1184(%rbp)
	movaps	%xmm1, -1168(%rbp)
	movaps	%xmm2, -1152(%rbp)
	leaq	L_.str.19(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	leaq	-1184(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_strftime
	leaq	L_.str.20(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_31
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"off-line"

L_.str.1:                               ## @.str.1
	.asciz	"on-line"

L_.str.2:                               ## @.str.2
	.asciz	"backup power"

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

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"APM version: %d.%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"APM Management: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"Enabled"

L_.str.6:                               ## @.str.6
	.asciz	"Disabled"

L_.str.7:                               ## @.str.7
	.asciz	"AC Line status: "

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

L_.str.11:                              ## @.str.11
	.asciz	"Number of batteries: "

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

	.comm	_PMDV_BATT0,4,2                 ## @PMDV_BATT0
	.comm	_APMIO_GETPWSTATUS,4,2          ## @APMIO_GETPWSTATUS
L_.str.13:                              ## @.str.13
	.asciz	"Battery %d:\n"

	.comm	_APM_BATT_NOT_PRESENT,4,2       ## @APM_BATT_NOT_PRESENT
	.comm	_APM_BIOS,4,2                   ## @APM_BIOS
	.comm	_APM_RESUMETIMER,4,2            ## @APM_RESUMETIMER
	.comm	_PMDV_APMBIOS,8,3               ## @PMDV_APMBIOS
	.comm	_APMIO_BIOS,4,2                 ## @APMIO_BIOS
L_.str.18:                              ## @.str.18
	.asciz	"failed to get the resume timer: APM error0x%x"

	.comm	_cmos_wall,8,3                  ## @cmos_wall
L_.str.19:                              ## @.str.19
	.asciz	"%c"

L_.str.20:                              ## @.str.20
	.asciz	"Resume timer: %s\n"

	.comm	_APM_RESUMEONRING,4,2           ## @APM_RESUMEONRING
L_.str.21:                              ## @.str.21
	.asciz	"Resume on ring indicator: %sabled\n"

L_.str.22:                              ## @.str.22
	.asciz	"en"

L_.str.23:                              ## @.str.23
	.asciz	"dis"

L_str:                                  ## @str
	.asciz	"APM Capabilities:"

L_str.33:                               ## @str.33
	.asciz	"\tPCMCIA RI resume from suspend"

L_str.34:                               ## @str.34
	.asciz	"\tPCMCIA RI resume from standby"

L_str.35:                               ## @str.35
	.asciz	"\tRI resume from suspend"

L_str.36:                               ## @str.36
	.asciz	"\tRI resume from standby"

L_str.37:                               ## @str.37
	.asciz	"\tresume timer from suspend"

L_str.38:                               ## @str.38
	.asciz	"\tresume timer from standby"

L_str.39:                               ## @str.39
	.asciz	"\tglobal suspend state"

L_str.40:                               ## @str.40
	.asciz	"\tglobal standby state"

L_str.42:                               ## @str.42
	.asciz	"Resume timer: disabled"

L_str.43:                               ## @str.43
	.asciz	"Resume timer: unknown"

L_str.44:                               ## @str.44
	.asciz	"not present"

L_str.46:                               ## @str.46
	.asciz	"unknown"

	.no_dead_strip	_print_all_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_all_info
_print_all_info:                        ; @print_all_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1168
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	w8, w9, [x1]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str.3@PAGE
Lloh4:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x8, [x19, #40]
Lloh5:
	adrp	x9, l_.str.5@PAGE
Lloh6:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh7:
	adrp	x10, l_.str.6@PAGE
Lloh8:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh11:
	adrp	x0, l_.str.7@PAGE
Lloh12:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldrsw	x8, [x19, #8]
Lloh13:
	adrp	x9, _APM_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _APM_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x0, l_str.46@PAGE
Lloh17:
	add	x0, x0, l_str.46@PAGEOFF
	b	LBB0_5
LBB0_2:
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.9@PAGE
Lloh19:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x9, l___const.print_all_info.line_msg@PAGE
Lloh21:
	add	x9, x9, l___const.print_all_info.line_msg@PAGEOFF
	ldr	x0, [x9, x8, lsl #3]
LBB0_5:
	bl	_puts
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_print_batt_stat
	ldr	w0, [x19, #28]
	bl	_print_batt_life
	ldr	w0, [x19, #24]
	bl	_print_batt_time
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
Lloh22:
	adrp	x0, l_.str.11@PAGE
Lloh23:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	ldr	w8, [x19, #16]
	cmn	w8, #1
	b.eq	LBB0_15
; %bb.8:
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.12@PAGE
Lloh25:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_16
; %bb.9:
	mov	w24, #0
Lloh26:
	adrp	x25, _PMDV_BATT0@GOTPAGE
Lloh27:
	ldr	x25, [x25, _PMDV_BATT0@GOTPAGEOFF]
Lloh28:
	adrp	x26, _APMIO_GETPWSTATUS@GOTPAGE
Lloh29:
	ldr	x26, [x26, _APMIO_GETPWSTATUS@GOTPAGEOFF]
Lloh30:
	adrp	x22, l_.str.13@PAGE
Lloh31:
	add	x22, x22, l_.str.13@PAGEOFF
Lloh32:
	adrp	x27, _APM_BATT_NOT_PRESENT@GOTPAGE
Lloh33:
	ldr	x27, [x27, _APM_BATT_NOT_PRESENT@GOTPAGEOFF]
Lloh34:
	adrp	x23, l_str.44@PAGE
Lloh35:
	add	x23, x23, l_str.44@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #9
	bl	_putchar
	ldr	w0, [sp, #180]
	bl	_print_batt_stat
	mov	w0, #9
	bl	_putchar
	ldr	w0, [sp, #176]
	bl	_print_batt_life
	mov	w0, #9
	bl	_putchar
	ldr	w0, [sp, #172]
	bl	_print_batt_time
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w24, w24, #1
	ldr	w8, [x19, #16]
	cmp	w24, w8
	b.hs	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #136
	mov	w1, #48
	bl	_bzero
	ldr	w8, [x25]
	add	w8, w24, w8
	str	w8, [sp, #136]
	ldr	w1, [x26]
	add	x2, sp, #136
	mov	x0, x20
	bl	_ioctl
	cmn	x0, #1
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x24, [sp]
	mov	x0, x22
	bl	_printf
	ldr	w8, [sp, #140]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_puts
	b	LBB0_11
LBB0_15:
Lloh36:
	adrp	x0, l_str.46@PAGE
Lloh37:
	add	x0, x0, l_str.46@PAGEOFF
	bl	_puts
LBB0_16:
	cbz	w21, LBB0_26
; %bb.17:
	add	x0, sp, #88
	mov	w1, #48
	bl	_bzero
Lloh38:
	adrp	x21, _APM_BIOS@GOTPAGE
Lloh39:
	ldr	x21, [x21, _APM_BIOS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh40:
	adrp	x9, _APM_RESUMETIMER@GOTPAGE
Lloh41:
	ldr	x9, [x9, _APM_RESUMETIMER@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #8
Lloh43:
	adrp	x22, _PMDV_APMBIOS@GOTPAGE
Lloh44:
	ldr	x22, [x22, _PMDV_APMBIOS@GOTPAGEOFF]
	ldr	x9, [x22]
	str	x9, [sp, #112]
	mov	w9, #1
	stp	w8, w9, [sp, #96]
Lloh45:
	adrp	x23, _APMIO_BIOS@GOTPAGE
Lloh46:
	ldr	x23, [x23, _APMIO_BIOS@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #88
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_19
LBB0_18:
Lloh47:
	adrp	x0, l_str.43@PAGE
Lloh48:
	add	x0, x0, l_str.43@PAGEOFF
	b	LBB0_23
LBB0_19:
	ldr	w0, [sp, #96]
	bl	_APMERR
	cbz	w0, LBB0_46
; %bb.20:
	mov	x1, x0
	cmp	w0, #134
	b.eq	LBB0_22
; %bb.21:
	cmp	w1, #13
	b.ne	LBB0_48
LBB0_22:
Lloh49:
	adrp	x0, l_str.42@PAGE
Lloh50:
	add	x0, x0, l_str.42@PAGEOFF
LBB0_23:
	bl	_puts
LBB0_24:
	add	x0, sp, #88
	mov	w1, #48
	bl	_bzero
	ldr	w8, [x21]
Lloh51:
	adrp	x9, _APM_RESUMEONRING@GOTPAGE
Lloh52:
	ldr	x9, [x9, _APM_RESUMEONRING@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #8
	ldr	x9, [x22]
	str	x9, [sp, #112]
	mov	w9, #2
	stp	w8, w9, [sp, #96]
	ldr	w1, [x23]
	add	x2, sp, #88
	mov	x0, x20
	bl	_ioctl
	cbnz	x0, LBB0_26
; %bb.25:
	ldr	w8, [sp, #100]
Lloh54:
	adrp	x9, l_.str.22@PAGE
Lloh55:
	add	x9, x9, l_.str.22@PAGEOFF
Lloh56:
	adrp	x10, l_.str.23@PAGE
Lloh57:
	add	x10, x10, l_.str.23@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh58:
	adrp	x0, l_.str.21@PAGE
Lloh59:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_printf
LBB0_26:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.27:
	ldr	w8, [x19, #20]
	mov	w9, #65280
	cmp	w8, w9
	b.eq	LBB0_37
; %bb.28:
Lloh60:
	adrp	x0, l_str@PAGE
Lloh61:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbnz	w8, #0, LBB0_39
; %bb.29:
	tbnz	w8, #1, LBB0_40
LBB0_30:
	tbnz	w8, #2, LBB0_41
LBB0_31:
	tbnz	w8, #3, LBB0_42
LBB0_32:
	tbnz	w8, #4, LBB0_43
LBB0_33:
	tbnz	w8, #5, LBB0_44
LBB0_34:
	tbnz	w8, #6, LBB0_45
LBB0_35:
	tbz	w8, #7, LBB0_37
LBB0_36:
Lloh62:
	adrp	x0, l_str.33@PAGE
Lloh63:
	add	x0, x0, l_str.33@PAGEOFF
	bl	_puts
LBB0_37:
	ldur	x8, [x29, #-88]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.38:
	add	sp, sp, #1168
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_39:
Lloh67:
	adrp	x0, l_str.40@PAGE
Lloh68:
	add	x0, x0, l_str.40@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbz	w8, #1, LBB0_30
LBB0_40:
Lloh69:
	adrp	x0, l_str.39@PAGE
Lloh70:
	add	x0, x0, l_str.39@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbz	w8, #2, LBB0_31
LBB0_41:
Lloh71:
	adrp	x0, l_str.38@PAGE
Lloh72:
	add	x0, x0, l_str.38@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbz	w8, #3, LBB0_32
LBB0_42:
Lloh73:
	adrp	x0, l_str.37@PAGE
Lloh74:
	add	x0, x0, l_str.37@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbz	w8, #4, LBB0_33
LBB0_43:
Lloh75:
	adrp	x0, l_str.36@PAGE
Lloh76:
	add	x0, x0, l_str.36@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbz	w8, #5, LBB0_34
LBB0_44:
Lloh77:
	adrp	x0, l_str.35@PAGE
Lloh78:
	add	x0, x0, l_str.35@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbz	w8, #6, LBB0_35
LBB0_45:
Lloh79:
	adrp	x0, l_str.34@PAGE
Lloh80:
	add	x0, x0, l_str.34@PAGEOFF
	bl	_puts
	ldr	w8, [x19, #20]
	tbnz	w8, #7, LBB0_36
	b	LBB0_37
LBB0_46:
	ldr	w0, [sp, #100]
	bl	_xh
	bl	_bcd2int
	str	x0, [sp, #72]
	ldr	w0, [sp, #104]
	bl	_xl
	bl	_bcd2int
	str	x0, [sp, #64]
	ldr	w0, [sp, #104]
	bl	_xh
	bl	_bcd2int
	str	x0, [sp, #56]
	ldr	w0, [sp, #108]
	bl	_xl
	bl	_bcd2int
	str	x0, [sp, #48]
	ldr	w0, [sp, #108]
	bl	_xh
	bl	_bcd2int
	sub	x8, x0, #1
	str	x8, [sp, #40]
	ldr	w0, [sp, #120]
	bl	_bcd2int
	sub	x8, x0, #1900
	str	x8, [sp, #32]
Lloh81:
	adrp	x8, _cmos_wall@GOTPAGE
Lloh82:
	ldr	x8, [x8, _cmos_wall@GOTPAGEOFF]
Lloh83:
	ldr	x8, [x8]
	cbz	x8, LBB0_49
; %bb.47:
	add	x0, sp, #32
	bl	_mktime
	b	LBB0_50
LBB0_48:
Lloh84:
	adrp	x0, l_.str.18@PAGE
Lloh85:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_warnx
	b	LBB0_24
LBB0_49:
	add	x0, sp, #32
	bl	_timegm
LBB0_50:
	str	w0, [sp, #28]
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.51:
	add	x0, sp, #28
	bl	_localtime
	ldp	q1, q0, [x0, #16]
	ldr	q2, [x0]
	stp	q2, q1, [sp, #32]
	str	q0, [sp, #64]
Lloh86:
	adrp	x2, l_.str.19@PAGE
Lloh87:
	add	x2, x2, l_.str.19@PAGEOFF
	add	x24, sp, #136
	add	x0, sp, #136
	add	x3, sp, #32
	mov	w1, #1024
	bl	_strftime
	str	x24, [sp]
Lloh88:
	adrp	x0, l_.str.20@PAGE
Lloh89:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_printf
	b	LBB0_24
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"off-line"

l_.str.1:                               ; @.str.1
	.asciz	"on-line"

l_.str.2:                               ; @.str.2
	.asciz	"backup power"

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

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"APM version: %d.%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"APM Management: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"Enabled"

l_.str.6:                               ; @.str.6
	.asciz	"Disabled"

l_.str.7:                               ; @.str.7
	.asciz	"AC Line status: "

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

l_.str.11:                              ; @.str.11
	.asciz	"Number of batteries: "

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

	.comm	_PMDV_BATT0,4,2                 ; @PMDV_BATT0
	.comm	_APMIO_GETPWSTATUS,4,2          ; @APMIO_GETPWSTATUS
l_.str.13:                              ; @.str.13
	.asciz	"Battery %d:\n"

	.comm	_APM_BATT_NOT_PRESENT,4,2       ; @APM_BATT_NOT_PRESENT
	.comm	_APM_BIOS,4,2                   ; @APM_BIOS
	.comm	_APM_RESUMETIMER,4,2            ; @APM_RESUMETIMER
	.comm	_PMDV_APMBIOS,8,3               ; @PMDV_APMBIOS
	.comm	_APMIO_BIOS,4,2                 ; @APMIO_BIOS
l_.str.18:                              ; @.str.18
	.asciz	"failed to get the resume timer: APM error0x%x"

	.comm	_cmos_wall,8,3                  ; @cmos_wall
l_.str.19:                              ; @.str.19
	.asciz	"%c"

l_.str.20:                              ; @.str.20
	.asciz	"Resume timer: %s\n"

	.comm	_APM_RESUMEONRING,4,2           ; @APM_RESUMEONRING
l_.str.21:                              ; @.str.21
	.asciz	"Resume on ring indicator: %sabled\n"

l_.str.22:                              ; @.str.22
	.asciz	"en"

l_.str.23:                              ; @.str.23
	.asciz	"dis"

l_str:                                  ; @str
	.asciz	"APM Capabilities:"

l_str.33:                               ; @str.33
	.asciz	"\tPCMCIA RI resume from suspend"

l_str.34:                               ; @str.34
	.asciz	"\tPCMCIA RI resume from standby"

l_str.35:                               ; @str.35
	.asciz	"\tRI resume from suspend"

l_str.36:                               ; @str.36
	.asciz	"\tRI resume from standby"

l_str.37:                               ; @str.37
	.asciz	"\tresume timer from suspend"

l_str.38:                               ; @str.38
	.asciz	"\tresume timer from standby"

l_str.39:                               ; @str.39
	.asciz	"\tglobal suspend state"

l_str.40:                               ; @str.40
	.asciz	"\tglobal standby state"

l_str.42:                               ; @str.42
	.asciz	"Resume timer: disabled"

l_str.43:                               ; @str.43
	.asciz	"Resume timer: unknown"

l_str.44:                               ; @str.44
	.asciz	"not present"

l_str.46:                               ; @str.46
	.asciz	"unknown"

	.no_dead_strip	_print_all_info
.subsections_via_symbols
