	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bme680_calc_heater_res
_bme680_calc_heater_res:                ## @bme680_calc_heater_res
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$400, %esi                      ## imm = 0x190
	movl	$400, %ecx                      ## imm = 0x190
	cmovll	%esi, %ecx
	movq	_BME680_AMB_TEMP@GOTPCREL(%rip), %rax
	movl	(%rdi), %edx
	imull	(%rax), %edx
	movl	12(%rdi), %r8d
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$38, %rdx
	movl	$784, %eax                      ## imm = 0x310
	addl	4(%rdi), %eax
	addl	%esi, %edx
	movl	$154009, %esi                   ## imm = 0x25999
	addl	8(%rdi), %esi
	shll	$8, %edx
	imull	%ecx, %esi
	movslq	%esi, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rsi
	sarq	$35, %rsi
	shrq	$63, %rcx
	addl	%esi, %ecx
	addl	$3276800, %ecx                  ## imm = 0x320000
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rcx
	addl	%esi, %ecx
	imull	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	%edx, %eax
	addl	$4, %r8d
	cltd
	idivl	%r8d
	imull	$131, 16(%rdi), %ecx
	addl	$65536, %ecx                    ## imm = 0x10000
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shll	$5, %ecx
	leal	(%rcx,%rax,2), %eax
	addl	$-8450, %eax                    ## imm = 0xDEFE
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BME680_AMB_TEMP,8,3            ## @BME680_AMB_TEMP
	.no_dead_strip	_bme680_calc_heater_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bme680_calc_heater_res
_bme680_calc_heater_res:                ; @bme680_calc_heater_res
	.cfi_startproc
; %bb.0:
	mov	w8, #400
	cmp	w1, #400
	csel	w8, w1, w8, lt
Lloh0:
	adrp	x9, _BME680_AMB_TEMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BME680_AMB_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w10, w11, [x0]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	lsr	x9, x9, #38
	add	w9, w9, w10
	ldp	w10, w12, [x0, #8]
	add	w10, w10, #37, lsl #12          ; =151552
	add	w10, w10, #2457
	mul	w8, w10, w8
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x8, w8, w10
	lsr	x13, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w13
	add	w11, w11, #784
	add	w8, w8, #800, lsl #12           ; =3276800
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w10
	mul	w8, w8, w11
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w8, w8, w9, lsl #8
	add	w9, w12, #4
	sdiv	w8, w8, w9
	ldr	w9, [x0, #16]
	mov	w10, #131
	orr	w11, wzr, #0x10000
	madd	w9, w9, w10, w11
	sdiv	w8, w8, w9
	mov	w9, #34
	mov	w10, #-8450
	madd	w8, w8, w9, w10
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BME680_AMB_TEMP,8,3            ; @BME680_AMB_TEMP
	.no_dead_strip	_bme680_calc_heater_res
.subsections_via_symbols
