	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_clipping
_setup_clipping:                        ## @setup_clipping
	.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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, -576(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1, %ecx
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, -564(%rbp)                ## 4-byte Spill
	leaq	-304(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	leaq	-560(%rbp), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	decl	%ebx
	cmpl	$7, %ebx
	movl	$7, %eax
	cmovbl	%ebx, %eax
	shlq	$4, %rax
	addq	$16, %rax
	movq	%rax, -584(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, -592(%rbp)                ## 8-byte Spill
	movl	(%r12,%r14), %edi
	callq	_clip_range
	movq	%rax, -296(%rbp,%r14,2)
	movl	$1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movl	%r13d, -304(%rbp,%r14,2)
	movl	4(%r12,%r14), %edi
	addl	(%r12,%r14), %edi
	callq	_clip_range
	movq	%rax, -280(%rbp,%r14,2)
	movl	%r13d, -284(%rbp,%r14,2)
	movl	8(%r12,%r14), %eax
	cltd
	movl	-564(%rbp), %r15d               ## 4-byte Reload
	idivl	%r15d
	movl	%eax, %edi
	callq	_clip_range
	movq	%rax, -552(%rbp,%r14,2)
	movl	%r13d, -560(%rbp,%r14,2)
	movl	12(%r12,%r14), %eax
	addl	8(%r12,%r14), %eax
	cltd
	idivl	%r15d
	movq	-592(%rbp), %r15                ## 8-byte Reload
	movl	%eax, %edi
	callq	_clip_range
	movq	%rax, -536(%rbp,%r14,2)
	movl	%r13d, -540(%rbp,%r14,2)
	incl	%ebx
	addq	$16, %r14
	addl	$2, %r15d
	cmpq	%r14, -584(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	movq	_cliplist_cmp@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-304(%rbp), %r12
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$16, %edx
	xorl	%r8d, %r8d
	callq	_sort
	movl	(%rbx), %ecx
	leaq	-560(%rbp), %r14
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$16, %edx
	xorl	%r8d, %r8d
	callq	_sort
	leaq	L_.str(%rip), %r8
	movq	-576(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$896, %esi                      ## imm = 0x380
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_set_cliplist
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	movl	$900, %esi                      ## imm = 0x384
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_set_cliplist
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cliplist_cmp,4,2               ## @cliplist_cmp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cols"

L_.str.1:                               ## @.str.1
	.asciz	"rows"

	.no_dead_strip	_setup_clipping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_clipping
_setup_clipping:                        ; @setup_clipping
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #544
	mov	x20, x2
	mov	x21, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	w3, #0
	mov	w22, #1
	cinc	w23, w22, ne
	add	x0, sp, #272
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	add	x25, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	subs	w8, w20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
	mov	w20, #0
	mov	w27, #0
	mov	w9, #7
	cmp	w8, #7
	csel	w8, w8, w9, lo
	add	x21, x21, #8
	lsl	x8, x8, #5
	add	x28, x8, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x21, #-8]
	bl	_clip_range
	add	x8, sp, #272
	add	x19, x8, x26
	str	x0, [x19, #8]
	lsl	w24, w22, w27
	str	w24, [x19]
	ldp	w8, w9, [x21, #-8]
	add	w0, w9, w8
	bl	_clip_range
	str	x0, [x19, #24]
	str	w24, [x19, #20]
	ldr	w8, [x21]
	sdiv	w0, w8, w23
	bl	_clip_range
	add	x19, x25, x26
	str	x0, [x19, #8]
	str	w24, [x19]
	ldp	w8, w9, [x21], #16
	add	w8, w9, w8
	sdiv	w0, w8, w23
	bl	_clip_range
	str	x0, [x19, #24]
	str	w24, [x19, #20]
	add	w27, w27, #1
	add	w20, w20, #2
	add	x26, x26, #32
	cmp	x28, x26
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh3:
	adrp	x19, _cliplist_cmp@GOTPAGE
Lloh4:
	ldr	x19, [x19, _cliplist_cmp@GOTPAGEOFF]
	ldr	w3, [x19]
	add	x0, sp, #272
	mov	x1, x20
	mov	w2, #16
	mov	x4, #0
	bl	_sort
	ldr	w3, [x19]
	add	x0, sp, #16
	mov	x1, x20
	mov	w2, #16
	mov	x4, #0
	bl	_sort
Lloh5:
	adrp	x4, l_.str@PAGE
Lloh6:
	add	x4, x4, l_.str@PAGEOFF
	add	x2, sp, #272
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	mov	w1, #896
	mov	x3, x20
	bl	_set_cliplist
Lloh7:
	adrp	x4, l_.str.1@PAGE
Lloh8:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #900
	mov	x3, x20
	bl	_set_cliplist
	ldur	x8, [x29, #-96]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	add	sp, sp, #544
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cliplist_cmp,4,2               ; @cliplist_cmp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cols"

l_.str.1:                               ; @.str.1
	.asciz	"rows"

	.no_dead_strip	_setup_clipping
.subsections_via_symbols
