	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct7802_read_temp
_nct7802_read_temp:                     ## @nct7802_read_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -40(%rbp)
	movl	$0, (%rcx)
	callq	_mutex_lock
	movl	4(%r15), %edi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	-36(%rbp), %eax
	shll	$8, %eax
	movl	%eax, -36(%rbp)
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	4(%r15), %edi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rsi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movl	-36(%rbp), %eax
	movl	$224, %ecx
	andl	-40(%rbp), %ecx
	jmp	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
LBB0_5:
	orl	%ecx, %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%eax, -36(%rbp)
	sarl	$5, %ecx
	imull	$125, %ecx, %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nct7802_read_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct7802_read_temp
_nct7802_read_temp:                     ; @nct7802_read_temp
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	str	wzr, [x3]
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	add	x2, sp, #12
	mov	x1, x21
	bl	_regmap_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	lsl	w8, w8, #8
	str	w8, [sp, #12]
	cbz	x22, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
	add	x2, sp, #8
	mov	x1, x22
	bl	_regmap_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldp	w9, w8, [sp, #8]
	and	w9, w9, #0xe0
	b	LBB0_5
LBB0_4:
	mov	w9, #0
LBB0_5:
	orr	w8, w8, w9
	str	w8, [sp, #12]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	mov	w9, #125
	mul	w8, w8, w9
	str	w8, [x20]
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nct7802_read_temp
.subsections_via_symbols
