	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_lookup_thermometer    ## -- Begin function tda18271_lookup_thermometer
	.p2align	4, 0x90
_tda18271_lookup_thermometer:           ## @tda18271_lookup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_tda18271_thermometer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_R_TM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	(%rcx,%rdx), %r8b
	movl	%r8d, %edx
	andb	$15, %dl
	movb	(%rax), %bl
	leaq	12(%rax), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rsi
	cmpb	%dl, %bl
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rsi), %rcx
	movzbl	(%rdi), %ebx
	addq	$12, %rdi
	testb	%bl, %bl
	jne	LBB0_1
LBB0_3:
	movl	%esi, %ecx
	xorl	%edx, %edx
	testb	$32, %r8b
	sete	%dl
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rax
	movl	4(%rax,%rdx,4), %ebx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_tda_map
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tda18271_thermometer,8,3       ## @tda18271_thermometer
	.comm	_R_TM,8,3                       ## @R_TM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) tm = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_lookup_thermometer    ; -- Begin function tda18271_lookup_thermometer
	.p2align	2
_tda18271_lookup_thermometer:           ; @tda18271_lookup_thermometer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x10, #0
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x8, _tda18271_thermometer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tda18271_thermometer@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x11, _R_TM@GOTPAGE
Lloh4:
	ldr	x11, [x11, _R_TM@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldrb	w9, [x9, x11]
	and	w11, w9, #0xf
	mov	x12, x8
	ldrb	w13, [x12], #12
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x10
	cmp	w13, w11
	b.hs	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x10, x1, #1
	ldrb	w13, [x12], #12
	cbnz	w13, LBB0_1
LBB0_3:
	and	x10, x1, #0xffffffff
	mov	w11, #12
	madd	x8, x10, x11, x8
	add	x10, x8, #4
	add	x8, x8, #8
	tst	w9, #0x20
	csel	x8, x8, x10, eq
	ldr	w19, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x19
	bl	_tda_map
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tda18271_thermometer,8,3       ; @tda18271_thermometer
	.comm	_R_TM,8,3                       ; @R_TM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) tm = %d\n"

.subsections_via_symbols
