	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_from_vtf_format
_convert_from_vtf_format:               ## @convert_from_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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %r13d
	leal	(,%rsi,8), %r14d
	leal	-1(,%rsi,8), %edi
	callq	_BIT
	andl	%r13d, %eax
	movl	$1, %ebx
	movl	%r14d, %ecx
	shlq	%cl, %rbx
	subl	%r13d, %ebx
	testl	%eax, %eax
	cmovel	%r13d, %ebx
	xorl	%r14d, %r14d
	negl	%eax
	sbbl	%r14d, %r14d
	orl	$1, %r14d
	movl	%r12d, %edi
	callq	_hid_sensor_convert_exponent
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	imull	%ebx, %r14d
	movl	$10, %edi
	movl	%eax, %esi
	callq	_int_pow
	imull	%r14d, %eax
	movl	%eax, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_5
LBB0_2:
	negl	%eax
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_split_micro_fraction
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	imull	%r14d, %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_4:
	imull	(%rbx), %r14d
	movl	%r14d, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_from_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_from_vtf_format
_convert_from_vtf_format:               ; @convert_from_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, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x0
	lsl	w23, w1, #3
	sub	w0, w23, #1
	bl	_BIT
	mov	w8, #1
	lsl	x9, x8, x23
	sub	w9, w9, w21
	tst	w0, w21
	csel	w21, w21, w9, eq
	cneg	w23, w8, ne
	mov	x0, x22
	bl	_hid_sensor_convert_exponent
	mov	x1, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mul	w21, w23, w21
	mov	w0, #10
	bl	_int_pow
	mul	w8, w21, w0
	str	w8, [x20]
	str	wzr, [x19]
	b	LBB0_5
LBB0_2:
	neg	w1, w1
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_split_micro_fraction
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	mul	w8, w8, w23
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19]
	mul	w8, w8, w23
	str	w8, [x19]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_from_vtf_format
.subsections_via_symbols
