	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_apm_show
_proc_apm_show:                         ## @proc_apm_show
	.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
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_num_online_cpus
	leaq	L_.str(%rip), %r15
	movl	$-1, %r13d
	movw	$255, %r12w
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	leaq	-46(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-42(%rbp), %rdx
	callq	_apm_get_power_status
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movw	$255, %di
	movw	$255, %si
	movl	$-1, %r10d
LBB0_6:
	movq	_driver_version@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_apm_info@GOTPCREL(%rip), %rcx
	movl	4(%rcx), %eax
	movl	8(%rcx), %r9d
	movzbl	%ah, %ecx
	movzbl	%al, %r8d
	movzwl	%r12w, %eax
	movzwl	%si, %ebx
	movzwl	%di, %r11d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	pushq	%r15
	pushq	%r10
	pushq	%r13
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	callq	_seq_printf
	addq	$48, %rsp
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movzwl	-46(%rbp), %edx
	movl	%edx, %edi
	shrl	$8, %edi
	movzwl	-44(%rbp), %ecx
	movzbl	%cl, %r13d
	cmpl	$255, %r13d
	movl	$-1, %r10d
	cmovel	%r10d, %r13d
	movzbl	%dl, %esi
	movq	_apm_info@GOTPCREL(%rip), %rdx
	cmpl	$257, (%rdx)                    ## imm = 0x101
	jl	LBB0_6
## %bb.4:
	movzwl	%cx, %r12d
	shrl	$8, %r12d
	movzwl	-42(%rbp), %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	je	LBB0_6
## %bb.5:
	testl	$32768, %ecx                    ## imm = 0x8000
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rdx, %r15
	andl	$32767, %ecx                    ## imm = 0x7FFF
	movl	%ecx, %r10d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?"

	.comm	_apm_info,12,2                  ## @apm_info
L_.str.1:                               ## @.str.1
	.asciz	"min"

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

L_.str.3:                               ## @.str.3
	.asciz	"%s %d.%d 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n"

	.comm	_driver_version,4,2             ## @driver_version
	.no_dead_strip	_proc_apm_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_apm_show
_proc_apm_show:                         ; @proc_apm_show
	.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
	bl	_num_online_cpus
Lloh0:
	adrp	x20, _apm_info@GOTPAGE
Lloh1:
	ldr	x20, [x20, _apm_info@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	sub	x0, x29, #18
	sub	x1, x29, #20
	sub	x2, x29, #22
	bl	_apm_get_power_status
	cbz	w0, LBB0_4
LBB0_2:
	mov	w8, #-1
	mov	w6, #255
	mov	w7, #255
	mov	w9, #255
	mov	w10, #-1
Lloh2:
	adrp	x11, l_.str@PAGE
Lloh3:
	add	x11, x11, l_.str@PAGEOFF
LBB0_3:
Lloh4:
	adrp	x12, _driver_version@GOTPAGE
Lloh5:
	ldr	x12, [x12, _driver_version@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x12]
	ldp	w12, w5, [x20, #4]
	ubfx	w3, w12, #8, #8
	and	w4, w12, #0xff
	str	x11, [sp, #16]
	stp	w8, w10, [sp, #4]
	strh	w9, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldurh	w8, [x29, #-18]
	lsr	w6, w8, #8
	and	w7, w8, #0xff
	ldurh	w9, [x29, #-20]
	and	w8, w9, #0xff
	cmp	w8, #255
	csinv	w8, w8, wzr, ne
	ldr	w10, [x20]
	cmp	w10, #257
	b.lt	LBB0_6
; %bb.5:
	lsr	w9, w9, #8
	ldurh	w10, [x29, #-22]
Lloh9:
	adrp	x11, l_.str@PAGE
Lloh10:
	add	x11, x11, l_.str@PAGEOFF
	mov	w12, #-1
	mov	w13, #65535
Lloh11:
	adrp	x14, l_.str.1@PAGE
Lloh12:
	add	x14, x14, l_.str.1@PAGEOFF
Lloh13:
	adrp	x15, l_.str.2@PAGE
Lloh14:
	add	x15, x15, l_.str.2@PAGEOFF
	tst	w10, #0x8000
	csel	x14, x15, x14, eq
	and	w15, w10, #0x7fff
	cmp	w10, w13
	csel	w10, w12, w15, eq
	csel	x11, x11, x14, eq
	b	LBB0_3
LBB0_6:
Lloh15:
	adrp	x11, l_.str@PAGE
Lloh16:
	add	x11, x11, l_.str@PAGEOFF
	mov	w10, #-1
	mov	w9, #255
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?"

	.comm	_apm_info,12,2                  ; @apm_info
l_.str.1:                               ; @.str.1
	.asciz	"min"

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

l_.str.3:                               ; @.str.3
	.asciz	"%s %d.%d 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n"

	.comm	_driver_version,4,2             ; @driver_version
	.no_dead_strip	_proc_apm_show
.subsections_via_symbols
