	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __setScalingRegs
___setScalingRegs:                      ## @__setScalingRegs
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movl	%eax, %ebx
LBB0_2:
	cmpl	%r14d, %ebx
	jge	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	movl	$8, %esi
	movl	$16, %edx
	callq	__SHIFTL
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	decl	%eax
	cltd
	idivl	%r14d
	orl	$4096, %eax                     ## imm = 0x1000
	movq	_regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 148(%rcx)
	movl	%ebx, 224(%rcx)
	movl	$37, %edi
	callq	_VI_REGCHANGE
	movq	_changed@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movl	$56, %edi
	jmp	LBB0_5
LBB0_4:
	movq	_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$256, 148(%rax)                 ## imm = 0x100
	movl	$37, %edi
LBB0_5:
	callq	_VI_REGCHANGE
	movq	_changed@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regs,8,3                       ## @regs
	.comm	_changed,4,2                    ## @changed
	.no_dead_strip	___setScalingRegs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __setScalingRegs
___setScalingRegs:                      ; @__setScalingRegs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #16
	bl	__SHIFTL
	mov	x20, x0
LBB0_2:
Lloh0:
	adrp	x21, _changed@GOTPAGE
Lloh1:
	ldr	x21, [x21, _changed@GOTPAGEOFF]
	cmp	w20, w19
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #8
	mov	w2, #16
	bl	__SHIFTL
	add	w8, w19, w0
	sub	w8, w8, #1
	sdiv	w8, w8, w19
Lloh2:
	adrp	x9, _regs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _regs@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	orr	w8, w8, #0x1000
	str	w8, [x9, #148]
	str	w20, [x9, #224]
	mov	w0, #37
	bl	_VI_REGCHANGE
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	mov	w0, #56
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _regs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _regs@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	w9, #256
	str	w9, [x8, #148]
	mov	w0, #37
LBB0_5:
	bl	_VI_REGCHANGE
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_regs,8,3                       ; @regs
	.comm	_changed,4,2                    ; @changed
	.no_dead_strip	___setScalingRegs
.subsections_via_symbols
