	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hts221_get_sensor_scale
_hts221_get_sensor_scale:               ## @hts221_get_sensor_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	cmpl	$129, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.3:
	movl	$64000, %esi                    ## imm = 0xFA00
	movq	_HTS221_SENSOR_T@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	$16000, %esi                    ## imm = 0x3E80
	movq	_HTS221_SENSOR_H@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rdi), %rcx
	movq	(%rax), %rax
	imulq	$1000000000, (%rcx,%rax,8), %rdi ## imm = 0x3B9ACA00
	callq	_div_s64
	leaq	-24(%rbp), %rdx
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
	movl	%eax, %edi
	callq	_div_s64_rem
	movl	%eax, (%rbx)
	movl	-24(%rbp), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTS221_SENSOR_H,8,3            ## @HTS221_SENSOR_H
	.comm	_HTS221_SENSOR_T,8,3            ## @HTS221_SENSOR_T
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_hts221_get_sensor_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hts221_get_sensor_scale
_hts221_get_sensor_scale:               ; @hts221_get_sensor_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x2
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _HTS221_SENSOR_T@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTS221_SENSOR_T@GOTPAGEOFF]
	mov	w1, #64000
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _HTS221_SENSOR_H@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HTS221_SENSOR_H@GOTPAGEOFF]
	mov	w1, #16000
LBB0_4:
	ldr	x9, [x0]
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	mul	x0, x8, x9
	bl	_div_s64
	add	x2, sp, #8
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	bl	_div_s64_rem
	str	w0, [x20]
	ldr	x8, [sp, #8]
	str	w8, [x19]
Lloh4:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HTS221_SENSOR_H,8,3            ; @HTS221_SENSOR_H
	.comm	_HTS221_SENSOR_T,8,3            ; @HTS221_SENSOR_T
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_hts221_get_sensor_scale
.subsections_via_symbols
