	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power1_average_show
_power1_average_show:                   ## @power1_average_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_MAX_CUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_read_registers
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.2:
	movq	(%r14), %rsi
	movq	8(%r14), %r13
	leaq	(,%r15,8), %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_3:
	movl	36(%r14), %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:
	movq	%r14, %rdi
	callq	_read_registers
	testl	%eax, %eax
	je	LBB0_5
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%r12,8), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	(%rcx,%r12,8), %rsi
	movslq	32(%r14), %rcx
	imulq	%rax, %rcx
	imulq	$1000, %rcx, %rbx               ## imm = 0x3E8
	movq	%rbx, %rdi
	callq	_do_div
	addq	%rbx, %r13
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	subq	%rdx, %rcx
	addq	24(%r14), %rcx
	movq	%rcx, %rax
	jmp	LBB0_11
LBB0_6:
	xorl	%r13d, %r13d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CUS,4,2                    ## @MAX_CUS
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%llu\n"

	.no_dead_strip	_power1_average_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power1_average_show
_power1_average_show:                   ; @power1_average_show
	.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, #16
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh3:
	adrp	x8, _MAX_CUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0xffffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh10:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh11:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	bl	_read_registers
	cbnz	w0, LBB0_5
; %bb.1:
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.2:
	ldp	x1, x23, [x20]
	lsl	x24, x25, #3
	mov	x0, x21
	mov	x2, x24
	bl	_memcpy
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
LBB0_3:
	ldr	w0, [x20, #36]
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_read_registers
	cbz	w0, LBB0_7
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.6:
	mov	w0, #0
	sub	sp, x29, #80
	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_7:
	cmp	w25, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x26, #0
	mov	x23, #0
	lsl	x25, x25, #3
	mov	w27, #1000
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x26]
	ldr	x10, [x22, x26]
	sub	x1, x9, x10
	ldrsw	x9, [x20, #32]
	mul	x8, x9, x8
	mul	x24, x8, x27
	mov	x0, x24
	bl	_do_div
	add	x23, x24, x23
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #8
	cmp	x25, x26
	b.eq	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x26]
	cbz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x26]
	ldr	x9, [x21, x26]
	subs	x8, x8, x9
	b.ge	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x20, #24]
	add	x8, x8, x9
	b	LBB0_9
LBB0_14:
	mov	x23, #0
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	sub	sp, x29, #80
	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
	b	_sprintf
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CUS,4,2                    ; @MAX_CUS
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%llu\n"

	.no_dead_strip	_power1_average_show
.subsections_via_symbols
