	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90632_calc_temp_ambient
_mlx90632_calc_temp_ambient:            ## @mlx90632_calc_temp_ambient
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	16(%rbp), %edx
	callq	_mlx90632_preprocess_temp_amb
	movabsq	$10000000000, %r13              ## imm = 0x2540BE400
	imulq	%r13, %rbx
	sarq	$44, %rbx
	imulq	$1000, %r12, %rcx               ## imm = 0x3E8
	sarq	$8, %rcx
	subq	%rcx, %rax
	imulq	%rax, %rbx
	imulq	%rax, %rbx
	imulq	$10000000, %rax, %rdi           ## imm = 0x989680
	movq	%r15, %rsi
	callq	_div64_s64
	shlq	$20, %rax
	imulq	%r13, %r14
	sarq	$8, %r14
	addq	%rax, %r14
	movl	$1000000, %esi                  ## imm = 0xF4240
	movq	%rbx, %rdi
	callq	_div64_s64
	addq	%rax, %r14
	movl	$10000000, %esi                 ## imm = 0x989680
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_div64_s64                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx90632_calc_temp_ambient
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90632_calc_temp_ambient
_mlx90632_calc_temp_ambient:            ; @mlx90632_calc_temp_ambient
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x2, x6
	bl	_mlx90632_preprocess_temp_amb
	mov	x23, #58368
	movk	x23, #21515, lsl #16
	movk	x23, #2, lsl #32
	mul	x8, x22, x23
	asr	x8, x8, #44
	mov	w9, #1000
	mul	x9, x21, x9
	sub	x9, x0, x9, asr #8
	mul	x8, x9, x8
	mul	x21, x8, x9
	mov	w8, #38528
	movk	w8, #152, lsl #16
	mul	x0, x9, x8
	mov	x1, x20
	bl	_div64_s64
	lsl	x20, x0, #20
	mul	x19, x19, x23
	mov	x0, x21
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_div64_s64
	add	x8, x20, x19, asr #8
	add	x0, x8, x0
	mov	w1, #38528
	movk	w1, #152, lsl #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_div64_s64
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx90632_calc_temp_ambient
.subsections_via_symbols
