	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90632_calc_ambient_dsp105
_mlx90632_calc_ambient_dsp105:          ## @mlx90632_calc_ambient_dsp105
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_MLX90632_EE_P_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_mlx90632_read_ee_register
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movl	(%r15), %edi
	movq	_MLX90632_EE_P_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_mlx90632_read_ee_register
	testq	%rax, %rax
	js	LBB0_11
## %bb.2:
	movl	(%r15), %edi
	movq	_MLX90632_EE_P_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	callq	_mlx90632_read_ee_register
	testq	%rax, %rax
	js	LBB0_11
## %bb.3:
	movl	(%r15), %edi
	movq	_MLX90632_EE_P_O@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_mlx90632_read_ee_register
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	movl	(%r15), %edi
	movq	_MLX90632_EE_Gb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	js	LBB0_11
## %bb.5:
	movl	-36(%rbp), %r12d
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_mlx90632_read_ambient_raw
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %r8
	movq	-64(%rbp), %r9
	movq	%r12, (%rsp)
	callq	_mlx90632_calc_temp_ambient
	movl	%eax, (%r14)
	jmp	LBB0_12
LBB0_11:
	movq	%rax, %rbx
LBB0_12:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX90632_EE_P_R,4,2            ## @MLX90632_EE_P_R
	.comm	_MLX90632_EE_P_G,4,2            ## @MLX90632_EE_P_G
	.comm	_MLX90632_EE_P_T,4,2            ## @MLX90632_EE_P_T
	.comm	_MLX90632_EE_P_O,4,2            ## @MLX90632_EE_P_O
	.comm	_MLX90632_EE_Gb,4,2             ## @MLX90632_EE_Gb
	.no_dead_strip	_mlx90632_calc_ambient_dsp105
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90632_calc_ambient_dsp105
_mlx90632_calc_ambient_dsp105:          ; @mlx90632_calc_ambient_dsp105
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _MLX90632_EE_P_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX90632_EE_P_R@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_mlx90632_read_ee_register
	tbnz	x0, #63, LBB0_7
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _MLX90632_EE_P_G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX90632_EE_P_G@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_mlx90632_read_ee_register
	tbnz	x0, #63, LBB0_7
; %bb.2:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _MLX90632_EE_P_T@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX90632_EE_P_T@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #48
	bl	_mlx90632_read_ee_register
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _MLX90632_EE_P_O@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX90632_EE_P_O@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_mlx90632_read_ee_register
	tbnz	x0, #63, LBB0_7
; %bb.4:
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _MLX90632_EE_Gb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX90632_EE_Gb@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	sub	x2, x29, #36
	bl	_regmap_read
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldur	w22, [x29, #-36]
	ldr	w0, [x20]
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_mlx90632_read_ambient_raw
	mov	x21, x0
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldp	x1, x0, [sp, #8]
	ldp	x3, x2, [sp, #40]
	ldp	x5, x4, [sp, #24]
	mov	x6, x22
	bl	_mlx90632_calc_temp_ambient
	str	w0, [x19]
	b	LBB0_8
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX90632_EE_P_R,4,2            ; @MLX90632_EE_P_R
	.comm	_MLX90632_EE_P_G,4,2            ; @MLX90632_EE_P_G
	.comm	_MLX90632_EE_P_T,4,2            ; @MLX90632_EE_P_T
	.comm	_MLX90632_EE_P_O,4,2            ; @MLX90632_EE_P_O
	.comm	_MLX90632_EE_Gb,4,2             ; @MLX90632_EE_Gb
	.no_dead_strip	_mlx90632_calc_ambient_dsp105
.subsections_via_symbols
