	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9052_adc_read_temp           ## -- Begin function da9052_adc_read_temp
	.p2align	4, 0x90
_da9052_adc_read_temp:                  ## @da9052_adc_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
	movq	_DA9052_TBAT_RES_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9052_reg_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movq	_tbat_lookup@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decl	%eax
	movl	(%rcx,%rax,4), %eax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_TBAT_RES_REG,4,2        ## @DA9052_TBAT_RES_REG
	.comm	_tbat_lookup,8,3                ## @tbat_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_da9052_adc_read_temp           ; -- Begin function da9052_adc_read_temp
	.p2align	2
_da9052_adc_read_temp:                  ; @da9052_adc_read_temp
	.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
Lloh0:
	adrp	x8, _DA9052_TBAT_RES_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9052_TBAT_RES_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_da9052_reg_read
	subs	w8, w0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _tbat_lookup@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tbat_lookup@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x9, w8, uxtw #2]
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_TBAT_RES_REG,4,2        ; @DA9052_TBAT_RES_REG
	.comm	_tbat_lookup,8,3                ; @tbat_lookup
.subsections_via_symbols
