	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hts221_parse_temp_caldata
_hts221_parse_temp_caldata:             ## @hts221_parse_temp_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_0T_CAL_Y_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	8(%rbx), %edi
	movq	_HTS221_REG_T1_T0_CAL_Y_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	-44(%rbp), %r15d
	andl	$3, %r15d
	shll	$8, %r15d
	orl	-40(%rbp), %r15d
	movl	8(%rbx), %edi
	movq	_HTS221_REG_1T_CAL_Y_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	-44(%rbp), %r12d
	andl	$12, %r12d
	shll	$6, %r12d
	orl	-40(%rbp), %r12d
	movl	8(%rbx), %edi
	movq	_HTS221_REG_0T_CAL_X_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	movq	_HTS221_REG_1T_CAL_X_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	movq	(%rbx), %rsi
	movq	_HTS221_SENSOR_T@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_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTS221_REG_0T_CAL_Y_H,4,2      ## @HTS221_REG_0T_CAL_Y_H
	.comm	_HTS221_REG_T1_T0_CAL_Y_H,4,2   ## @HTS221_REG_T1_T0_CAL_Y_H
	.comm	_HTS221_REG_1T_CAL_Y_H,4,2      ## @HTS221_REG_1T_CAL_Y_H
	.comm	_HTS221_REG_0T_CAL_X_L,4,2      ## @HTS221_REG_0T_CAL_X_L
	.comm	_HTS221_REG_1T_CAL_X_L,4,2      ## @HTS221_REG_1T_CAL_X_L
	.comm	_HTS221_SENSOR_T,8,3            ## @HTS221_SENSOR_T
	.no_dead_strip	_hts221_parse_temp_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_temp_caldata
_hts221_parse_temp_caldata:             ; @hts221_parse_temp_caldata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _HTS221_REG_0T_CAL_Y_H@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTS221_REG_0T_CAL_Y_H@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _HTS221_REG_T1_T0_CAL_Y_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTS221_REG_T1_T0_CAL_Y_H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldp	w21, w22, [sp, #8]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _HTS221_REG_1T_CAL_Y_H@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HTS221_REG_1T_CAL_Y_H@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldp	w24, w23, [sp, #8]
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _HTS221_REG_0T_CAL_X_L@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HTS221_REG_0T_CAL_X_L@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x8, _HTS221_REG_1T_CAL_X_L@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HTS221_REG_1T_CAL_X_L@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ubfiz	w8, w21, #8, #2
	orr	w21, w8, w22
	lsl	w8, w24, #6
	and	w8, w8, #0x300
	orr	w22, w8, w23
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
Lloh15:
	adrp	x10, _HTS221_SENSOR_T@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HTS221_SENSOR_T@GOTPAGEOFF]
Lloh17:
	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_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HTS221_REG_0T_CAL_Y_H,4,2      ; @HTS221_REG_0T_CAL_Y_H
	.comm	_HTS221_REG_T1_T0_CAL_Y_H,4,2   ; @HTS221_REG_T1_T0_CAL_Y_H
	.comm	_HTS221_REG_1T_CAL_Y_H,4,2      ; @HTS221_REG_1T_CAL_Y_H
	.comm	_HTS221_REG_0T_CAL_X_L,4,2      ; @HTS221_REG_0T_CAL_X_L
	.comm	_HTS221_REG_1T_CAL_X_L,4,2      ; @HTS221_REG_1T_CAL_X_L
	.comm	_HTS221_SENSOR_T,8,3            ; @HTS221_SENSOR_T
	.no_dead_strip	_hts221_parse_temp_caldata
.subsections_via_symbols
