	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bme680_compensate_humid
_bme680_compensate_humid:               ## @bme680_compensate_humid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movl	16(%rdi), %r8d
	leal	(%rcx,%rcx,4), %r9d
	addl	$128, %r9d
	sarl	$8, %r9d
	movl	40(%rdi), %edx
	shll	$4, %edx
	subl	%edx, %esi
	movl	32(%rdi), %edx
	imull	%r9d, %edx
	movslq	%edx, %rdx
	imulq	$1374389535, %rdx, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$32, %rdx
	sarl	$5, %edx
	addl	%eax, %edx
	sarl	%edx
	subl	%edx, %esi
	movl	8(%rdi), %eax
	imull	%r9d, %eax
	cltq
	imulq	$1374389535, %rax, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$32, %rdx
	sarl	$5, %edx
	addl	%eax, %edx
	movl	12(%rdi), %eax
	imull	%r9d, %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$5, %eax
	addl	%ecx, %eax
	imull	%r9d, %eax
	sarl	$6, %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$5, %eax
	addl	%ecx, %eax
	addl	%eax, %edx
	addl	$16384, %edx                    ## imm = 0x4000
	imull	24(%rdi), %edx
	sarl	$10, %edx
	imull	%esi, %edx
	imull	20(%rdi), %r9d
	shll	$7, %r8d
	movslq	%r9d, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$5, %eax
	addl	%ecx, %eax
	addl	%r8d, %eax
	sarl	$4, %eax
	movl	%edx, %ecx
	sarl	$14, %ecx
	imull	%ecx, %ecx
	shrl	$10, %ecx
	imull	%eax, %ecx
	sarl	%ecx
	addl	%edx, %ecx
	sarl	$10, %ecx
	imull	$1000, %ecx, %edi               ## imm = 0x3E8
	sarl	$12, %edi
	xorl	%esi, %esi
	movl	$100000, %edx                   ## imm = 0x186A0
	popq	%rbp
	jmp	_clamp                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bme680_compensate_humid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bme680_compensate_humid
_bme680_compensate_humid:               ; @bme680_compensate_humid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	add	w8, w8, w8, lsl #2
	add	w8, w8, #128
	asr	w8, w8, #8
	ldr	w9, [x0, #40]
	sub	w9, w1, w9, lsl #4
	ldr	w10, [x0, #32]
	mul	w10, w8, w10
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x10, w10, w11
	lsr	x12, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w12, asr #5
	sub	w9, w9, w10, asr #1
	ldr	w10, [x0, #24]
	ldp	w12, w13, [x0, #8]
	mul	w12, w12, w8
	smull	x12, w12, w11
	lsr	x14, x12, #32
	lsr	x12, x12, #63
	add	w12, w12, w14, asr #5
	mul	w13, w13, w8
	smull	x13, w13, w11
	lsr	x14, x13, #32
	lsr	x13, x13, #63
	add	w13, w13, w14, asr #5
	mul	w13, w13, w8
	asr	w13, w13, #6
	smull	x13, w13, w11
	lsr	x14, x13, #32
	lsr	x13, x13, #63
	add	w13, w13, w14, asr #5
	add	w12, w12, w13
	add	w12, w12, #4, lsl #12           ; =16384
	mul	w10, w12, w10
	asr	w10, w10, #10
	mul	w9, w10, w9
	ldp	w10, w12, [x0, #16]
	mul	w8, w12, w8
	smull	x8, w8, w11
	lsr	x11, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w11, asr #5
	add	w8, w8, w10, lsl #7
	asr	w8, w8, #4
	asr	w10, w9, #14
	mul	w10, w10, w10
	lsr	w10, w10, #10
	mul	w8, w10, w8
	add	w8, w9, w8, asr #1
	asr	w8, w8, #10
	mov	w9, #1000
	mul	w8, w8, w9
	asr	w0, w8, #12
	mov	w1, #0
	mov	w2, #34464
	movk	w2, #1, lsl #16
	b	_clamp
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bme680_compensate_humid
.subsections_via_symbols
