	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __setVerticalRegs
___setVerticalRegs:                     ## @__setVerticalRegs
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movl	%edx, %r14d
	movl	%esi, %eax
                                        ## kill: def $edi killed $edi def $rdi
	movq	32(%rbp), %r10
	movl	24(%rbp), %r15d
	movl	16(%rbp), %r11d
	xorl	%edx, %edx
	cmpl	$10, %r14d
	setge	%dl
	movl	$2, %esi
	subl	%edx, %esi
	incl	%edx
	imull	%esi, %ecx
	subl	%eax, %ecx
	subl	%edi, %ecx
	imull	%edx, %ecx
	imull	%edi, %edx
	testb	$1, %dil
	jne	LBB0_1
## %bb.2:
	movl	%r11d, %r12d
	movl	%r8d, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%r15d, %r12d
	movl	%r9d, %ebx
	movl	%r11d, %r15d
	movl	%r8d, %r9d
LBB0_3:
	addl	%ecx, %r15d
	addl	%edx, %r9d
	addl	%ecx, %r12d
	addl	%edx, %ebx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	testq	%r10, %r10
	je	LBB0_4
## %bb.5:
	leal	(%rbx,%rax,2), %ebx
	addl	$-2, %ebx
	leal	(%r9,%rax,2), %r9d
	addl	$-2, %r9d
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	addl	$2, %r12d
	addl	$2, %r15d
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
LBB0_6:
	shll	$4, %eax
	orl	%r14d, %eax
	movq	_regs@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_VI_REGCHANGE
	movq	_changed@GOTPCREL(%rip), %r13
	orl	%eax, (%r13)
	movq	(%r14), %rax
	movl	%r12d, 24(%rax)
	movl	%ebx, 28(%rax)
	movl	$6, %edi
	callq	_VI_REGCHANGE
	orl	%eax, (%r13)
	movl	$7, %edi
	callq	_VI_REGCHANGE
	orl	%eax, (%r13)
	movq	(%r14), %rax
	movl	%r15d, 32(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 36(%rax)
	movl	$8, %edi
	callq	_VI_REGCHANGE
	orl	%eax, (%r13)
	movl	$9, %edi
	callq	_VI_REGCHANGE
	orl	%eax, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regs,8,3                       ## @regs
	.comm	_changed,4,2                    ## @changed
	.no_dead_strip	___setVerticalRegs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __setVerticalRegs
___setVerticalRegs:                     ; @__setVerticalRegs
	.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
	ldr	x8, [x29, #16]
	cmp	w2, #9
	mov	w9, #1
	cinc	w10, w9, gt
	cinc	w9, w9, le
	mul	w11, w10, w0
	add	w12, w1, w0
	neg	w12, w12
	madd	w12, w9, w3, w12
	mul	w10, w12, w10
	tst	w0, #0x1
	csel	w12, w7, w6, ne
	csel	w13, w5, w4, ne
	csel	w14, w6, w7, ne
	csel	w15, w4, w5, ne
	add	w14, w14, w10
	add	w10, w12, w10
	sdiv	w9, w1, w9
	lsl	w12, w9, #1
	sub	w12, w12, #2
	add	w13, w13, w11
	add	w16, w12, w13
	add	w11, w15, w11
	add	w12, w12, w11
	add	w15, w10, #2
	add	w17, w14, #2
	cmp	x8, #0
	csel	w8, w9, wzr, eq
	csel	w19, w10, w15, eq
	csel	w20, w13, w16, eq
	csel	w21, w14, w17, eq
	csel	w22, w11, w12, eq
	orr	w8, w2, w8, lsl #4
Lloh0:
	adrp	x23, _regs@GOTPAGE
Lloh1:
	ldr	x23, [x23, _regs@GOTPAGEOFF]
	ldr	x9, [x23]
	str	w8, [x9]
	mov	w0, #0
	bl	_VI_REGCHANGE
Lloh2:
	adrp	x24, _changed@GOTPAGE
Lloh3:
	ldr	x24, [x24, _changed@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	ldr	x8, [x23]
	stp	w19, w20, [x8, #24]
	mov	w0, #6
	bl	_VI_REGCHANGE
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	mov	w0, #7
	bl	_VI_REGCHANGE
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	ldr	x8, [x23]
	stp	w21, w22, [x8, #32]
	mov	w0, #8
	bl	_VI_REGCHANGE
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	mov	w0, #9
	bl	_VI_REGCHANGE
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_regs,8,3                       ; @regs
	.comm	_changed,4,2                    ; @changed
	.no_dead_strip	___setVerticalRegs
.subsections_via_symbols
