	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_ClipSolidWallSegment         ## -- Begin function R_ClipSolidWallSegment
	.p2align	4, 0x90
_R_ClipSolidWallSegment:                ## @R_ClipSolidWallSegment
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_solidsegs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leal	-1(%r14), %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movl	(%rbx), %edi
	addq	$8, %rbx
	cmpl	%eax, %edi
	jl	LBB0_1
## %bb.2:
	movl	4(%r12), %esi
	cmpl	%r14d, %esi
	jle	LBB0_8
## %bb.3:
	decl	%esi
	movl	%r14d, %edi
	cmpl	%r15d, %esi
	jle	LBB0_7
## %bb.4:
	movl	%r15d, %esi
	callq	_R_StoreWallRange
	movq	_newend@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	leaq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	cmpq	%rax, %r12
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax), %rcx
	movq	%rcx, (%rax)
	leaq	-8(%rax), %rcx
	movq	%rcx, %rax
	cmpq	%rcx, %r12
	jne	LBB0_5
LBB0_6:
	movl	%r14d, 4(%r12)
	movl	%r15d, (%r12)
	jmp	LBB0_28
LBB0_7:
	callq	_R_StoreWallRange
	movl	%r14d, 4(%r12)
	movl	(%r12), %edi
LBB0_8:
	cmpl	%r15d, %edi
	jge	LBB0_28
## %bb.9:
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r14), %esi
	decl	%esi
	incl	%edi
	cmpl	%r15d, %esi
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_R_StoreWallRange
	movl	8(%r14), %edi
	addq	$8, %r14
	cmpl	%r15d, %edi
	jl	LBB0_10
	jmp	LBB0_13
LBB0_12:
	movl	%r15d, %esi
	callq	_R_StoreWallRange
	movl	%r15d, %edi
LBB0_13:
	movl	%edi, (%r12)
	movq	%r12, %rax
	subq	%r14, %rax
	je	LBB0_28
## %bb.14:
	movq	_newend@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	cmpq	%rcx, %r14
	je	LBB0_27
## %bb.15:
	movq	%rcx, %rdx
	subq	%r14, %rdx
	addq	$-8, %rdx
	cmpq	$24, %rdx
	jb	LBB0_26
## %bb.16:
	cmpq	$32, %rax
	jb	LBB0_26
## %bb.17:
	shrq	$3, %rdx
	incq	%rdx
	movq	%rdx, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %eax
	andl	$3, %eax
	cmpq	$12, %rsi
	jae	LBB0_19
## %bb.18:
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_19:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	8(%r14,%rsi,8), %xmm0
	movups	24(%r14,%rsi,8), %xmm1
	movups	%xmm0, (%rbx,%rsi,8)
	movups	%xmm1, 16(%rbx,%rsi,8)
	movups	40(%r14,%rsi,8), %xmm0
	movups	56(%r14,%rsi,8), %xmm1
	movups	%xmm0, 32(%rbx,%rsi,8)
	movups	%xmm1, 48(%rbx,%rsi,8)
	movups	72(%r14,%rsi,8), %xmm0
	movups	88(%r14,%rsi,8), %xmm1
	movups	%xmm0, 64(%rbx,%rsi,8)
	movups	%xmm1, 80(%rbx,%rsi,8)
	movups	104(%r14,%rsi,8), %xmm0
	movups	120(%r14,%rsi,8), %xmm1
	movups	%xmm0, 96(%rbx,%rsi,8)
	movups	%xmm1, 112(%rbx,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_20
LBB0_21:
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	leaq	(%rbx,%rsi,8), %rdi
	leaq	(%r14,%rsi,8), %rsi
	addq	$24, %rsi
	shlq	$5, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rbx), %xmm0
	movups	(%rsi,%rbx), %xmm1
	movups	%xmm0, (%rdi,%rbx)
	movups	%xmm1, 16(%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_23
LBB0_24:
	leaq	(%r12,%r9,8), %r12
	cmpq	%r9, %rdx
	je	LBB0_27
## %bb.25:
	leaq	(%r14,%r9,8), %r14
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	addq	$8, %r14
	movq	%rax, 8(%r12)
	addq	$8, %r12
	cmpq	%rcx, %r14
	jne	LBB0_26
LBB0_27:
	addq	$8, %r12
	movq	%r12, (%r8)
LBB0_28:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_solidsegs,8,3                  ## @solidsegs
	.comm	_newend,8,3                     ## @newend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_ClipSolidWallSegment         ; -- Begin function R_ClipSolidWallSegment
	.p2align	2
_R_ClipSolidWallSegment:                ; @R_ClipSolidWallSegment
	.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, x1
	mov	x20, x0
	mov	x22, #0
Lloh0:
	adrp	x8, _solidsegs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _solidsegs@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	sub	w9, w0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x22]
	add	x22, x22, #8
	cmp	w8, w9
	b.lt	LBB0_1
; %bb.2:
	add	x24, x23, x22
	ldur	w9, [x24, #-4]
	sub	x21, x24, #8
	cmp	w9, w20
	b.le	LBB0_9
; %bb.3:
	sub	w1, w9, #1
	mov	x0, x20
	cmp	w1, w19
	b.le	LBB0_8
; %bb.4:
	mov	x1, x19
	bl	_R_StoreWallRange
Lloh3:
	adrp	x9, _newend@GOTPAGE
Lloh4:
	ldr	x9, [x9, _newend@GOTPAGEOFF]
	ldr	x8, [x9]
	add	x10, x8, #8
	str	x10, [x9]
	cmp	x21, x8
	b.eq	LBB0_7
; %bb.5:
	mov	x9, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, #-8]!
	str	x10, [x8]
	mov	x8, x9
	cmp	x21, x9
	b.ne	LBB0_6
LBB0_7:
	stp	w19, w20, [x24, #-8]
	b	LBB0_25
LBB0_8:
	bl	_R_StoreWallRange
	stur	w20, [x24, #-4]
	ldur	w8, [x24, #-8]
LBB0_9:
	cmp	w8, w19
	b.ge	LBB0_25
; %bb.10:
	mov	x20, x21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #12]
	sub	w1, w9, #1
	add	w0, w8, #1
	cmp	w1, w19
	b.gt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_R_StoreWallRange
	ldr	w8, [x20, #8]!
	cmp	w8, w19
	b.lt	LBB0_11
	b	LBB0_14
LBB0_13:
	mov	x1, x19
	bl	_R_StoreWallRange
	mov	x8, x19
LBB0_14:
	stur	w8, [x24, #-8]
	cmp	x21, x20
	b.eq	LBB0_25
; %bb.15:
Lloh5:
	adrp	x8, _newend@GOTPAGE
Lloh6:
	ldr	x8, [x8, _newend@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x20, x9
	b.eq	LBB0_24
; %bb.16:
	sub	x10, x9, x20
	sub	x10, x10, #8
	cmp	x10, #56
	b.lo	LBB0_21
; %bb.17:
	sub	x11, x23, x20
	add	x11, x11, x22
	sub	x11, x11, #8
	cmp	x11, #64
	b.lo	LBB0_22
; %bb.18:
	mov	x11, #0
	lsr	x10, x10, #3
	add	x12, x10, #1
	and	x13, x12, #0x3ffffffffffffff8
	lsl	x10, x12, #3
	and	x10, x10, #0xffffffffffffffc0
	add	x10, x23, x10
	add	x10, x10, x22
	sub	x21, x10, #8
	add	x10, x20, x13, lsl #3
	add	x14, x20, #56
	add	x15, x23, x22
	mov	x16, x13
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x17, x14, x11
	ldp	q0, q1, [x17, #-48]
	ldp	q2, q3, [x17, #-16]
	str	q0, [x15, x11]
	add	x17, x23, x11
	add	x17, x17, x22
	stp	q1, q2, [x17, #16]
	add	x17, x15, x11
	str	q3, [x17, #48]
	add	x11, x11, #64
	subs	x16, x16, #8
	b.ne	LBB0_19
; %bb.20:
	cmp	x12, x13
	b.ne	LBB0_23
	b	LBB0_24
LBB0_21:
	mov	x10, x20
	b	LBB0_23
LBB0_22:
	mov	x10, x20
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, #8]!
	str	x11, [x21, #8]!
	cmp	x10, x9
	b.ne	LBB0_23
LBB0_24:
	add	x9, x21, #8
	str	x9, [x8]
LBB0_25:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_solidsegs,8,3                  ; @solidsegs
	.comm	_newend,8,3                     ; @newend
.subsections_via_symbols
