	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntc_read
_ntc_read:                              ## @ntc_read
	.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	%r8, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	cmpl	$130, %ebx
	jne	LBB0_6
## %bb.1:
	cmpl	$128, %r12d
	je	LBB0_5
## %bb.2:
	cmpl	$129, %r12d
	jne	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ntc_thermistor_get_ohm
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_get_temp_mc
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	$4, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ntc_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntc_read
_ntc_read:                              ; @ntc_read
	.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, x4
	mov	x21, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	cmp	w22, #130
	b.ne	LBB0_5
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #129
	b.ne	LBB0_5
; %bb.3:
	mov	x20, x0
	bl	_ntc_thermistor_get_ohm
	mov	x1, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_get_temp_mc
	mov	w1, #0
	str	x0, [x19]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_6:
	mov	x0, x1
	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
	ret
LBB0_7:
	mov	w1, #0
	mov	w8, #4
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ntc_read
.subsections_via_symbols
