	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_show_power_2
_occ_show_power_2:                      ## @occ_show_power_2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_occ_update_response
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	4(%rbx), %ecx
	cmpq	$3, %rcx
	ja	LBB0_8
## %bb.2:
	movq	8(%r15), %r12
	movslq	(%rbx), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	decq	%r15
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r12,%rbx,8), %rdi
	addq	$20, %rdi
	callq	_get_unaligned_be32
	movl	(%r12,%rbx,8), %r8d
	movl	4(%r12,%rbx,8), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rdi
	addq	$16, %rdi
	leaq	(%r12,%rax,8), %rsi
	addq	$12, %rsi
	callq	_occ_get_powr_avg
	movl	%eax, %ecx
	jmp	LBB0_7
LBB0_4:
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rdi
	addq	$12, %rdi
	callq	_get_unaligned_be32
	movl	%eax, %ecx
	imull	(%r15), %ecx
	jmp	LBB0_7
LBB0_5:
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rdi
	addq	$8, %rdi
	callq	_get_unaligned_be16
	imull	$1000000, %eax, %ecx            ## imm = 0xF4240
LBB0_7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u_%u_%u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%llu\n"

	.no_dead_strip	_occ_show_power_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_show_power_2
_occ_show_power_2:                      ; @occ_show_power_2
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	mov	x21, x0
	mov	x0, x20
	bl	_occ_update_response
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	w10, [x21, #4]
	cmp	w10, #3
	b.hi	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x21]
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_4
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_4:
Lloh2:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	sub	x20, x10, #1
	mov	w10, #24
	madd	x21, x9, x10, x8
	add	x0, x21, #20
	bl	_get_unaligned_be32
	mov	x3, x0
	ldp	w8, w9, [x21]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	b	LBB0_1
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x0, x8, #16
	add	x1, x8, #12
	bl	_occ_get_powr_avg
	mov	x3, x0
	b	LBB0_9
LBB0_7:
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x0, x8, #12
	bl	_get_unaligned_be32
	ldr	w8, [x20]
	mul	w3, w8, w0
	b	LBB0_9
LBB0_8:
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x0, x8, #8
	bl	_get_unaligned_be16
	mov	w8, #16960
	movk	w8, #15, lsl #16
	mul	w3, w0, w8
LBB0_9:
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	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
	b	_snprintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u_%u_%u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%llu\n"

	.no_dead_strip	_occ_show_power_2
.subsections_via_symbols
