	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_vtf_format
_convert_to_vtf_format:                 ## @convert_to_vtf_format
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_hid_sensor_convert_exponent
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$10, %edi
	movl	%ebx, %esi
	callq	_int_pow
	movl	%eax, %ecx
	movl	%r13d, %eax
	negl	%eax
	cmovsl	%r13d, %eax
	cltd
	idivl	%ecx
	jmp	LBB0_3
LBB0_1:
	leal	6(%rbx), %esi
	movl	$10, %edi
	callq	_int_pow
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r15d
	negl	%r15d
	cmovsl	%r13d, %r15d
	negl	%ebx
	movl	$10, %edi
	movl	%ebx, %esi
	callq	_int_pow
	movl	%eax, %ecx
	imull	%r15d, %ecx
	movl	%r14d, %eax
	negl	%eax
	cmovsl	%r14d, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	addl	%ecx, %eax
LBB0_3:
	shll	$3, %r12d
	movl	$1, %edx
	movl	%r12d, %ecx
	shlq	%cl, %rdx
	subl	%eax, %edx
	orl	%r13d, %r14d
	cmovnsl	%eax, %edx
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_to_vtf_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_to_vtf_format
_convert_to_vtf_format:                 ; @convert_to_vtf_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_hid_sensor_convert_exponent
	mov	x22, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #10
	mov	x1, x22
	bl	_int_pow
	cmp	w20, #0
	cneg	w8, w20, mi
	sdiv	w8, w8, w0
	b	LBB0_3
LBB0_2:
	add	w1, w22, #6
	mov	w0, #10
	bl	_int_pow
	mov	x23, x0
	cmp	w20, #0
	cneg	w24, w20, mi
	neg	w1, w22
	mov	w0, #10
	bl	_int_pow
	cmp	w19, #0
	cneg	w8, w19, mi
	sdiv	w8, w8, w23
	madd	w8, w0, w24, w8
LBB0_3:
	orr	w9, w19, w20
	lsl	w10, w21, #3
	mov	w11, #1
	lsl	x10, x11, x10
	sub	w10, w10, w8
	cmp	w9, #0
	csel	w0, w10, w8, lt
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_to_vtf_format
.subsections_via_symbols
