	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctemp_show
_ctemp_show:                            ## @ctemp_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_dev_get_drvdata
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movslq	16(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rbx
	addq	$-192, %rbx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$73, %esi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_i2c_read_regs
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$77, %esi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_i2c_read_regs
	testq	%rax, %rax
	js	LBB0_4
LBB0_5:
	imull	$1000, -32(%rbp), %edx          ## imm = 0x3E8
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movabsq	$8030883942533984110, %rax      ## imm = 0x6F736E6573206F6E
	movq	%rax, (%r14)
	movl	$684655, 7(%r14)                ## imm = 0xA726F
	movl	$10, %eax
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no sensor\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d\n"

	.no_dead_strip	_ctemp_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctemp_show
_ctemp_show:                            ; @ctemp_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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_dev_get_drvdata
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x20]
	ldrsw	x9, [x9, #16]
	add	x8, x8, x9, lsl #2
	sub	x20, x8, #192
	add	x3, sp, #16
	mov	x0, x20
	mov	w1, #73
	mov	w2, #0
	mov	w4, #2
	bl	_i2c_read_regs
	tbz	x0, #63, LBB0_3
; %bb.2:
	add	x3, sp, #16
	mov	x0, x20
	mov	w1, #77
	mov	w2, #0
	mov	w4, #2
	bl	_i2c_read_regs
	tbnz	x0, #63, LBB0_7
LBB0_3:
	ldr	w8, [sp, #16]
	mov	w9, #1000
	mul	w8, w8, w9
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	w8, #29295
	movk	w8, #10, lsl #16
	stur	w8, [x19, #7]
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #10
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAddLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no sensor\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d\n"

	.no_dead_strip	_ctemp_show
.subsections_via_symbols
