	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adjust_vp_and_init_for_seamless_clip
_adjust_vp_and_init_for_seamless_clip:  ## @adjust_vp_and_init_for_seamless_clip
	.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	%r9, %r14
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	24(%rbp), %rdx
	movq	16(%rbp), %r13
	movl	(%r13), %eax
	testl	%edi, %edi
	je	LBB0_1
## %bb.8:
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	(%r14), %edi
	movl	%esi, %r13d
	movl	%r12d, %esi
	callq	_dc_fixpt_sub
	movl	%eax, %edi
	callq	_dc_fixpt_floor
	movl	%r13d, %esi
	movq	24(%rbp), %rdx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	movq	16(%rbp), %rdi
	movl	(%rdi), %eax
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
	addl	%eax, (%rdx)
	movl	(%rdi), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	subl	%ecx, %eax
	movl	%eax, (%rdi)
	jmp	LBB0_11
LBB0_1:
	movl	(%rdx), %ecx
	addl	%eax, %ecx
	cmpl	%ebx, %ecx
	jge	LBB0_3
## %bb.2:
	subl	%ecx, %ebx
	movl	(%r14), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %esi
	callq	_dc_fixpt_sub
	movl	%eax, %edi
	callq	_dc_fixpt_floor
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	24(%rbp), %rdx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	cmpl	%ebx, %ecx
	cmovgel	%ebx, %ecx
	addl	%ecx, (%rdx)
	movl	(%r13), %eax
LBB0_3:
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movq	%rdx, %rbx
	movl	%r12d, %edi
	callq	_dc_fixpt_mul_int
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dc_fixpt_add
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_dc_fixpt_floor
	movl	%eax, %esi
	movl	(%r13), %eax
	subl	%eax, %esi
	movl	%esi, %ecx
	subl	%r15d, %ecx
	jge	LBB0_6
## %bb.5:
	subl	%esi, %r15d
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	subl	%r15d, %eax
	movl	%eax, (%r13)
	addl	%r15d, (%rbx)
	addl	%r15d, %esi
	jmp	LBB0_17
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	addl	(%rdx), %eax
	cmpl	%ebx, %eax
	jge	LBB0_18
## %bb.12:
	movq	%rdx, %r13
	subl	%eax, %ebx
	movl	%r12d, %edi
	callq	_dc_fixpt_mul_int
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dc_fixpt_add
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_dc_fixpt_floor
	movl	%eax, %esi
	subl	%ebx, %esi
	movl	%esi, %eax
	subl	%r15d, %eax
	jge	LBB0_14
## %bb.13:
	subl	%esi, %r15d
	cmpl	%r15d, %ebx
	cmovll	%ebx, %r15d
	addl	%r15d, (%r13)
	addl	%r15d, %esi
	jmp	LBB0_17
LBB0_14:
	jle	LBB0_17
## %bb.15:
	addl	%eax, (%r13)
	jmp	LBB0_16
LBB0_6:
	jle	LBB0_17
## %bb.7:
	addl	%ecx, %eax
	movl	%eax, (%r13)
	subl	%ecx, (%rbx)
LBB0_16:
	movl	%r15d, %esi
LBB0_17:
	movl	(%r14), %edi
	callq	_dc_fixpt_add_int
	movl	%eax, (%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adjust_vp_and_init_for_seamless_clip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adjust_vp_and_init_for_seamless_clip
_adjust_vp_and_init_for_seamless_clip:  ; @adjust_vp_and_init_for_seamless_clip
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x7
	mov	x22, x6
	mov	x19, x5
	mov	x24, x4
	mov	x21, x3
	mov	x25, x2
	mov	x23, x1
	ldr	w8, [x6]
	cbz	w0, LBB0_6
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	and	x1, x24, #0xffffffff
	bl	_dc_fixpt_sub
	mov	w0, w0
	bl	_dc_fixpt_floor
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	ldr	w9, [x22]
	cmp	w8, w9
	csel	w9, w8, w9, lt
	ldr	w10, [x20]
	add	w9, w10, w9
	str	w9, [x20]
	ldr	w9, [x22]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sub	w8, w9, w8
	str	w8, [x22]
LBB0_3:
	ldr	w9, [x20]
	add	w8, w9, w8
	cmp	w8, w25
	b.ge	LBB0_17
; %bb.4:
	sub	w22, w25, w8
	and	x0, x24, #0xffffffff
	mov	x1, x23
	bl	_dc_fixpt_mul_int
	mov	x1, x0
	ldr	w0, [x19]
	bl	_dc_fixpt_add
	str	w0, [x19]
	mov	w0, w0
	bl	_dc_fixpt_floor
	sub	w1, w0, w22
	subs	w8, w1, w21
	b.ge	LBB0_11
; %bb.5:
	sub	w8, w21, w1
	cmp	w22, w8
	csel	w8, w22, w8, lt
	ldr	w9, [x20]
	add	w9, w9, w8
	str	w9, [x20]
	add	w1, w8, w1
	b	LBB0_16
LBB0_6:
	ldr	w9, [x20]
	add	w9, w9, w8
	cmp	w9, w25
	b.ge	LBB0_8
; %bb.7:
	sub	w25, w25, w9
	ldr	w0, [x19]
	and	x1, x24, #0xffffffff
	bl	_dc_fixpt_sub
	mov	w0, w0
	bl	_dc_fixpt_floor
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	cmp	w8, w25
	csel	w8, w8, w25, lt
	ldr	w9, [x20]
	add	w8, w8, w9
	str	w8, [x20]
	ldr	w8, [x22]
LBB0_8:
	cbz	w8, LBB0_17
; %bb.9:
	and	x0, x24, #0xffffffff
	mov	x1, x23
	bl	_dc_fixpt_mul_int
	mov	x1, x0
	ldr	w0, [x19]
	bl	_dc_fixpt_add
	str	w0, [x19]
	mov	w0, w0
	bl	_dc_fixpt_floor
	ldr	w8, [x22]
	sub	w1, w0, w8
	subs	w9, w1, w21
	b.ge	LBB0_13
; %bb.10:
	sub	w9, w21, w1
	cmp	w8, w9
	csel	w9, w8, w9, lt
	sub	w8, w8, w9
	str	w8, [x22]
	ldr	w8, [x20]
	add	w8, w8, w9
	str	w8, [x20]
	add	w1, w9, w1
	b	LBB0_16
LBB0_11:
	b.le	LBB0_16
; %bb.12:
	ldr	w9, [x20]
	add	w8, w8, w9
	b	LBB0_15
LBB0_13:
	b.le	LBB0_16
; %bb.14:
	add	w8, w9, w8
	str	w8, [x22]
	ldr	w8, [x20]
	sub	w8, w8, w9
LBB0_15:
	str	w8, [x20]
	mov	x1, x21
LBB0_16:
	ldr	w0, [x19]
	bl	_dc_fixpt_add_int
	str	w0, [x19]
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adjust_vp_and_init_for_seamless_clip
.subsections_via_symbols
