	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_temp
_show_temp:                             ## @show_temp
	.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	_adt7475_update_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %rbx
	movslq	(%rax), %rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rbx), %rcx
	movq	_CONFIG5_TEMPOFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	8(%r15), %edx
	movl	$500, %edx                      ## imm = 0x1F4
	movl	$1000, %ebx                     ## imm = 0x3E8
	cmovel	%edx, %ebx
	imull	(%rax,%rcx,4), %ebx
	jmp	LBB0_4
LBB0_7:
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	callq	_reg2temp
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	8(%rbx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, %ebx
	shrl	$4, %ebx
	cmpq	$1, %rdx
	cmovel	%ecx, %ebx
	andl	$15, %ebx
	movq	_THERM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rdx,4), %esi
	movq	%r15, %rdi
	callq	_reg2temp
	imull	$-1000, %ebx, %ebx              ## imm = 0xFC18
	addl	%eax, %ebx
LBB0_4:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	setne	%al
	shll	$14, %eax
	addl	$16384, %eax                    ## imm = 0x4000
	xorl	%ebx, %ebx
	testl	%eax, 12(%r15)
	setne	%bl
	jmp	LBB0_8
LBB0_5:
	movl	12(%r15), %eax
	movb	8(%rbx), %cl
	addb	$4, %cl
	movzbl	%cl, %ecx
	xorl	%ebx, %ebx
	btl	%ecx, %eax
	setb	%bl
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_THERM,8,3                      ## @THERM
	.comm	_CONFIG5_TEMPOFFSET,4,2         ## @CONFIG5_TEMPOFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_show_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_temp
_show_temp:                             ; @show_temp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_adt7475_update_device
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	mov	x21, x0
	ldrsw	x8, [x0]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x22, x20, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x21, #8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x20, #8]
Lloh2:
	adrp	x10, _CONFIG5_TEMPOFFSET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CONFIG5_TEMPOFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #1000
	mov	w10, #500
	csel	w9, w10, w9, eq
	mul	w20, w9, w8
	b	LBB0_5
LBB0_3:
	ldr	x9, [x20]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x9, [x21, #8]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_reg2temp
	mov	x20, x0
	b	LBB0_8
LBB0_4:
	add	x22, x20, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x10, [x21, #8]
	lsl	x11, x10, #2
	ldr	w9, [x9, x11]
	lsr	w12, w9, #4
	cmp	x10, #1
	csel	w9, w9, w12, eq
Lloh5:
	adrp	x10, _THERM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _THERM@GOTPAGEOFF]
	and	w21, w9, #0xf
Lloh7:
	ldr	x9, [x10]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8, x11]
	mov	x0, x20
	bl	_reg2temp
	mov	w8, #-1000
	madd	w20, w21, w8, w0
LBB0_5:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20, #12]
	ldr	x9, [x21, #8]
	cmp	x9, #0
	mov	w9, #32768
	mov	w10, #16384
	csel	w9, w10, w9, eq
	tst	w9, w8
	cset	w20, ne
	b	LBB0_8
LBB0_7:
	ldr	w8, [x20, #12]
	ldr	w9, [x21, #8]
	add	w9, w9, #4
	lsr	w8, w8, w9
	and	w20, w8, #0x1
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_THERM,8,3                      ; @THERM
	.comm	_CONFIG5_TEMPOFFSET,4,2         ; @CONFIG5_TEMPOFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_show_temp
.subsections_via_symbols
