	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_val
_show_val:                              ## @show_val
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_to_acpi_device
	movl	(%rbx), %edx
	cmpq	$8, %rdx
	ja	LBB0_4
## %bb.1:
	movq	(%rax), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_2:
	movq	(%rax), %rax
	leal	-7(%rdx), %ecx
	movl	(%rax,%rcx,4), %eax
	testl	%eax, %eax
	js	LBB0_10
LBB0_13:
	imull	$1000, %eax, %edx               ## imm = 0x3E8
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_5:
	movl	16(%rax), %edx
	jmp	LBB0_14
LBB0_6:
	movl	20(%rax), %edx
	jmp	LBB0_14
LBB0_7:
	imull	$1000, 24(%rax), %edx           ## imm = 0x3E8
	jmp	LBB0_14
LBB0_8:
	imull	$1000, 28(%rax), %edx           ## imm = 0x3E8
	jmp	LBB0_14
LBB0_9:
	movl	32(%rax), %eax
	movq	_UNKNOWN_HYSTERESIS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
LBB0_10:
	movabsq	$751669508295061109, %rax       ## imm = 0xA6E776F6E6B6E75
	movq	%rax, (%r14)
	movb	$0, 8(%r14)
	movl	$8, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_POWER_METER_IS_BATTERY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, 36(%rax)
	setne	%dl
	jmp	LBB0_14
LBB0_12:
	movl	12(%rax), %ecx
	xorl	%edx, %edx
	cmpl	8(%rax), %ecx
	setg	%dl
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_UNKNOWN_HYSTERESIS,4,2         ## @UNKNOWN_HYSTERESIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown\n"

	.comm	_POWER_METER_IS_BATTERY,4,2     ## @POWER_METER_IS_BATTERY
L_.str.1:                               ## @.str.1
	.asciz	"Implementation error: unexpected attribute index %d\n"

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

	.no_dead_strip	_show_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_val
_show_val:                              ; @show_val
	.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	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x21, x0
	mov	x0, x20
	bl	_to_acpi_device
	ldr	w2, [x21]
	cmp	w2, #8
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x2]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x8]
	sub	w9, w2, #7
	ldr	w8, [x8, w9, uxtw #2]
	tbz	w8, #31, LBB0_10
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_WARN
	mov	w8, #0
	b	LBB0_13
LBB0_4:
	ldr	w8, [x8, #16]
	b	LBB0_13
LBB0_5:
	ldr	w8, [x8, #20]
	b	LBB0_13
LBB0_6:
	ldr	w8, [x8, #24]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x8, #28]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x8, #32]
Lloh4:
	adrp	x9, _UNKNOWN_HYSTERESIS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UNKNOWN_HYSTERESIS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_9:
	strb	wzr, [x19, #8]
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #8
	b	LBB0_14
LBB0_10:
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_13
LBB0_11:
	ldr	w8, [x8, #36]
Lloh10:
	adrp	x9, _POWER_METER_IS_BATTERY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _POWER_METER_IS_BATTERY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_13
LBB0_12:
	ldp	w8, w9, [x8, #8]
	cmp	w9, w8
	cset	w8, gt
LBB0_13:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_14:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAddLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_UNKNOWN_HYSTERESIS,4,2         ; @UNKNOWN_HYSTERESIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown\n"

	.comm	_POWER_METER_IS_BATTERY,4,2     ; @POWER_METER_IS_BATTERY
l_.str.1:                               ; @.str.1
	.asciz	"Implementation error: unexpected attribute index %d\n"

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

	.no_dead_strip	_show_val
.subsections_via_symbols
