	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_read_thermometer
_tda18271_read_thermometer:             ## @tda18271_read_thermometer
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_R_TM@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	orb	$16, (%r15,%rax)
	movq	(%r12), %rsi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	%rbx, %rdi
	callq	_tda18271_read_regs
	movq	(%r12), %rax
	movb	(%r15,%rax), %cl
	movl	%ecx, %edx
	andb	$47, %dl
	cmpb	$32, %dl
	je	LBB0_2
## %bb.1:
	cmpb	$8, %dl
	jne	LBB0_3
LBB0_2:
	xorb	$32, %cl
	movb	%cl, (%r15,%rax)
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_tda18271_read_regs
LBB0_3:
	movq	%rbx, %rdi
	callq	_tda18271_lookup_thermometer
	movl	%eax, %r14d
	movq	(%r12), %rax
	andb	$-17, (%r15,%rax)
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EP4@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	andb	$-4, (%r15,%rcx)
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_TM,8,3                       ## @R_TM
	.comm	_R_EP4,8,3                      ## @R_EP4
	.no_dead_strip	_tda18271_read_thermometer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_read_thermometer
_tda18271_read_thermometer:             ; @tda18271_read_thermometer
	.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, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x22, _R_TM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _R_TM@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrb	w9, [x21, x8]
	orr	w9, w9, #0x10
	strb	w9, [x21, x8]
	ldr	x1, [x22]
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x0, x19
	bl	_tda18271_read_regs
	ldr	x8, [x22]
	ldrb	w9, [x21, x8]
	mov	w10, #47
	and	w10, w9, w10
	cmp	w10, #32
	ccmp	w10, #8, #4, ne
	b.ne	LBB0_2
; %bb.1:
	eor	w9, w9, #0x20
	strb	w9, [x21, x8]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_tda18271_read_regs
LBB0_2:
	mov	x0, x19
	bl	_tda18271_lookup_thermometer
	mov	x20, x0
	ldr	x8, [x22]
	ldrb	w9, [x21, x8]
	and	w9, w9, #0xffffffef
	strb	w9, [x21, x8]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh2:
	adrp	x8, _R_EP4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_EP4@GOTPAGEOFF]
	ldr	x9, [x8]
	ldrb	w10, [x21, x9]
	and	w10, w10, #0xfc
	strb	w10, [x21, x9]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_R_TM,8,3                       ; @R_TM
	.comm	_R_EP4,8,3                      ; @R_EP4
	.no_dead_strip	_tda18271_read_thermometer
.subsections_via_symbols
