	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hts221_parse_rh_caldata
_hts221_parse_rh_caldata:               ## @hts221_parse_rh_caldata
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_HTS221_REG_0RH_CAL_Y_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	-40(%rbp), %r15d
	movl	8(%rbx), %edi
	movq	_HTS221_REG_1RH_CAL_Y_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	-40(%rbp), %r12d
	movl	8(%rbx), %edi
	movq	_HTS221_REG_0RH_CAL_X_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	movq	_HTS221_REG_1RH_CAL_X_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	movq	(%rbx), %rsi
	movq	_HTS221_SENSOR_H@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r12d, %eax
	subl	%r15d, %eax
	imull	$8000, %eax, %eax               ## imm = 0x1F40
	movl	%ecx, %ebx
	subl	%r14d, %ebx
	cltd
	idivl	%ebx
	movl	%eax, (%rsi,%rdi,8)
	imull	%r15d, %ecx
	imull	%r12d, %r14d
	subl	%r14d, %ecx
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	cltd
	idivl	%ebx
	shll	$3, %eax
	movl	%eax, 4(%rsi,%rdi,8)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTS221_REG_0RH_CAL_Y_H,4,2     ## @HTS221_REG_0RH_CAL_Y_H
	.comm	_HTS221_REG_1RH_CAL_Y_H,4,2     ## @HTS221_REG_1RH_CAL_Y_H
	.comm	_HTS221_REG_0RH_CAL_X_H,4,2     ## @HTS221_REG_0RH_CAL_X_H
	.comm	_HTS221_REG_1RH_CAL_X_H,4,2     ## @HTS221_REG_1RH_CAL_X_H
	.comm	_HTS221_SENSOR_H,8,3            ## @HTS221_SENSOR_H
	.no_dead_strip	_hts221_parse_rh_caldata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hts221_parse_rh_caldata
_hts221_parse_rh_caldata:               ; @hts221_parse_rh_caldata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _HTS221_REG_0RH_CAL_Y_H@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTS221_REG_0RH_CAL_Y_H@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w21, [sp, #12]
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _HTS221_REG_1RH_CAL_Y_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTS221_REG_1RH_CAL_Y_H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w22, [sp, #12]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _HTS221_REG_0RH_CAL_X_H@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HTS221_REG_0RH_CAL_X_H@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _HTS221_REG_1RH_CAL_X_H@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HTS221_REG_1RH_CAL_X_H@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
Lloh12:
	adrp	x10, _HTS221_SENSOR_H@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HTS221_SENSOR_H@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #3
	sub	w10, w22, w21
	mov	w11, #8000
	mul	w10, w10, w11
	mul	w11, w8, w21
	sub	w8, w8, w20
	sdiv	w10, w10, w8
	msub	w11, w20, w22, w11
	mov	w12, #1000
	mul	w11, w11, w12
	sdiv	w8, w11, w8
	lsl	w8, w8, #3
	stp	w10, w8, [x9]
LBB0_5:
	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
	add	sp, sp, #64
	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	_HTS221_REG_0RH_CAL_Y_H,4,2     ; @HTS221_REG_0RH_CAL_Y_H
	.comm	_HTS221_REG_1RH_CAL_Y_H,4,2     ; @HTS221_REG_1RH_CAL_Y_H
	.comm	_HTS221_REG_0RH_CAL_X_H,4,2     ; @HTS221_REG_0RH_CAL_X_H
	.comm	_HTS221_REG_1RH_CAL_X_H,4,2     ; @HTS221_REG_1RH_CAL_X_H
	.comm	_HTS221_SENSOR_H,8,3            ; @HTS221_SENSOR_H
	.no_dead_strip	_hts221_parse_rh_caldata
.subsections_via_symbols
