	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_veu_scale_h
_sh_veu_scale_h:                        ## @sh_veu_scale_h
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-52(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_sh_veu_calc_scale
	movq	_VEU_RFCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sh_veu_reg_read
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	-52(%rbp), %edx
	shll	$12, %edx
	orl	%eax, %edx
	orl	-48(%rbp), %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sh_veu_reg_write
	movq	_VEU_RFSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sh_veu_reg_read
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	-44(%rbp), %edx
	shll	$12, %edx
	orl	%r12d, %edx
	orl	%eax, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sh_veu_reg_write
	imull	%r15d, %r12d
	movl	%r12d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %edi
	movl	$4, %esi
	callq	_ALIGN
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VEU_RFCR,4,2                   ## @VEU_RFCR
	.comm	_VEU_RFSR,4,2                   ## @VEU_RFSR
	.no_dead_strip	_sh_veu_scale_h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_veu_scale_h
_sh_veu_scale_h:                        ; @sh_veu_scale_h
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x4, sp, #12
	add	x5, sp, #8
	add	x6, sp, #4
	bl	_sh_veu_calc_scale
Lloh0:
	adrp	x23, _VEU_RFCR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VEU_RFCR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_sh_veu_reg_read
	and	w8, w0, #0xffff0000
	ldr	w9, [sp, #12]
	orr	w8, w8, w9, lsl #12
	ldr	w9, [sp, #8]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x22
	bl	_sh_veu_reg_write
Lloh2:
	adrp	x23, _VEU_RFSR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VEU_RFSR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_sh_veu_reg_read
	and	w8, w0, #0xffff0000
	ldr	w9, [sp, #4]
	orr	w8, w8, w19
	orr	w2, w8, w9, lsl #12
	ldr	w1, [x23]
	mov	x0, x22
	bl	_sh_veu_reg_write
	mul	w8, w19, w21
	sdiv	w0, w8, w20
	mov	w1, #4
	bl	_ALIGN
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VEU_RFCR,4,2                   ; @VEU_RFCR
	.comm	_VEU_RFSR,4,2                   ; @VEU_RFSR
	.no_dead_strip	_sh_veu_scale_h
.subsections_via_symbols
