	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ohm_of_thermistor
_get_ohm_of_thermistor:                 ## @get_ohm_of_thermistor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	movl	(%rdi), %eax
	movq	16(%rdi), %rdx
	movq	_NTC_CONNECTED_POSITIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	subl	%esi, %eax
	jbe	LBB0_4
## %bb.5:
	movl	4(%rdi), %r8d
	movl	8(%rdi), %edi
	cmpq	%r9, %rdx
	jne	LBB0_8
## %bb.6:
	testl	%r8d, %r8d
	jne	LBB0_8
## %bb.7:
	imull	%eax, %edi
	callq	_div_u64
	jmp	LBB0_15
LBB0_1:
	movq	16(%rdi), %rcx
	movq	_NTC_CONNECTED_POSITIVE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_2
LBB0_16:
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	cmpq	%r9, %rdx
	je	LBB0_16
LBB0_2:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_NTC_CONNECTED_GROUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_11
## %bb.9:
	testl	%edi, %edi
	jne	LBB0_11
## %bb.10:
	imull	%esi, %r8d
	movl	%r8d, %edi
	movl	%eax, %esi
	callq	_div_u64
	jmp	LBB0_15
LBB0_11:
	cmpq	%r9, %rdx
	jne	LBB0_13
## %bb.12:
	movl	%edi, %edx
	imull	%r8d, %edx
	imull	%eax, %edx
	imull	%r8d, %esi
	imull	%eax, %edi
	subl	%edi, %esi
	movl	%edx, %edi
	jmp	LBB0_14
LBB0_13:
	imull	%esi, %r8d
	movl	%r8d, %edx
	imull	%edi, %edx
	imull	%edi, %eax
	subl	%r8d, %eax
	movl	%edx, %edi
	movl	%eax, %esi
LBB0_14:
	callq	_div64_u64_safe
LBB0_15:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovbl	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NTC_CONNECTED_POSITIVE,8,3     ## @NTC_CONNECTED_POSITIVE
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_NTC_CONNECTED_GROUND,8,3       ## @NTC_CONNECTED_GROUND
	.no_dead_strip	_get_ohm_of_thermistor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ohm_of_thermistor
_get_ohm_of_thermistor:                 ; @get_ohm_of_thermistor
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x10, [x0]
	cbz	w1, LBB0_6
; %bb.1:
	ldr	w8, [x10]
	ldr	x11, [x10, #16]
Lloh0:
	adrp	x9, _NTC_CONNECTED_POSITIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NTC_CONNECTED_POSITIVE@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x9]
	subs	w8, w8, w1
	b.ls	LBB0_7
; %bb.2:
	ldp	w9, w10, [x10, #4]
	cmp	x11, x12
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_8
; %bb.3:
Lloh3:
	adrp	x13, _NTC_CONNECTED_GROUND@GOTPAGE
Lloh4:
	ldr	x13, [x13, _NTC_CONNECTED_GROUND@GOTPAGEOFF]
Lloh5:
	ldr	x13, [x13]
	cmp	x11, x13
	ccmp	w10, #0, #0, eq
	b.eq	LBB0_9
; %bb.4:
	cmp	x11, x12
	b.ne	LBB0_10
; %bb.5:
	mul	w11, w10, w9
	mul	w0, w11, w8
	mul	w8, w10, w8
	neg	w8, w8
	madd	w1, w9, w1, w8
	b	LBB0_11
LBB0_6:
	ldr	x8, [x10, #16]
Lloh6:
	adrp	x9, _NTC_CONNECTED_POSITIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NTC_CONNECTED_POSITIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, w10, wzr, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh12:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x11, x12
	csel	w0, wzr, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mul	w0, w10, w8
	bl	_div_u64
	b	LBB0_12
LBB0_9:
	mul	w0, w9, w1
	mov	x1, x8
	bl	_div_u64
	b	LBB0_12
LBB0_10:
	mul	w9, w9, w1
	mul	w0, w9, w10
	neg	w9, w9
	madd	w1, w10, w8, w9
LBB0_11:
	bl	_div64_u64_safe
LBB0_12:
Lloh15:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w0, w0, w8, lo
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NTC_CONNECTED_POSITIVE,8,3     ; @NTC_CONNECTED_POSITIVE
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_NTC_CONNECTED_GROUND,8,3       ; @NTC_CONNECTED_GROUND
	.no_dead_strip	_get_ohm_of_thermistor
.subsections_via_symbols
