	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clip_draw_rectangle
_clip_draw_rectangle:                   ## @clip_draw_rectangle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	xorl	%r9d, %r9d
	testl	%esi, %esi
	movl	$0, %ecx
	cmovgl	%esi, %ecx
	testl	%edx, %edx
	cmovgl	%edx, %r9d
	cmpl	$639, %r9d                      ## imm = 0x27F
	ja	LBB0_15
## %bb.1:
	cmpl	$1023, %ecx                     ## imm = 0x3FF
	ja	LBB0_15
## %bb.2:
	movl	%esi, %ebx
	sarl	$31, %ebx
	andl	%esi, %ebx
	addl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.3:
	movl	%edx, %eax
	sarl	$31, %eax
	andl	%edx, %eax
	addl	%r8d, %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.4:
	leal	(%rbx,%rcx), %edx
	movl	$1024, %r15d                    ## imm = 0x400
	subl	%ecx, %r15d
	cmpl	$1025, %edx                     ## imm = 0x401
	cmovbl	%ebx, %r15d
	movl	%ecx, %edx
	shrl	$5, %edx
	addl	%ecx, %r15d
	shrl	$5, %r15d
	movl	$-1, %r12d
                                        ## kill: def $cl killed $cl killed $rcx
	shrl	%cl, %r12d
	subl	%edx, %r15d
	je	LBB0_15
## %bb.5:
	leal	(%rax,%r9), %ecx
	movl	$640, %esi                      ## imm = 0x280
	subl	%r9d, %esi
	cmpl	$641, %ecx                      ## imm = 0x281
	cmovbl	%eax, %esi
	shll	$5, %r9d
	addl	%edx, %r9d
	leaq	(%rdi,%r9,4), %rbx
	leal	-2(%r15), %ecx
	leaq	4(,%rcx,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	cmpl	$2, %esi
	cmovgel	%esi, %r13d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	jge	LBB0_6
LBB0_12:
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
## %bb.13:
	orl	%r12d, (%rbx)
	cmpl	$2, %r15d
	jl	LBB0_15
## %bb.14:
	addq	$4, %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_memset
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$32, %eax
	subl	%r15d, %eax
	movslq	%eax, %r14
	incq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	andl	$2147483646, %r13d              ## imm = 0x7FFFFFFE
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rbx,%r14,4), %rbx
	addq	$4, %rbx
	addl	$-2, %r13d
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	orl	%r12d, (%rbx)
	cmpl	$2, %r15d
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	4(%rbx), %rdi
	movl	$255, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	orl	%r12d, 4(%rbx,%r14,4)
	leaq	(%rbx,%r14,4), %rbx
	addq	$4, %rbx
	cmpl	$2, %r15d
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	4(%rbx), %rdi
	movl	$255, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_clip_draw_rectangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clip_draw_rectangle
_clip_draw_rectangle:                   ; @clip_draw_rectangle
	.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
	cmp	w1, #0
	csel	w11, w1, wzr, lt
	csel	w8, w1, wzr, gt
	cmp	w2, #0
	csel	w10, w2, wzr, lt
	csel	w9, w2, wzr, gt
	cmp	w9, #639
	b.hi	LBB0_5
; %bb.1:
	cmp	w8, #1023
	b.hi	LBB0_5
; %bb.2:
	add	w11, w11, w3
	cmp	w11, #1
	b.lt	LBB0_5
; %bb.3:
	add	w10, w10, w4
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.4:
	add	w12, w11, w8
	mov	w13, #1024
	sub	w13, w13, w8
	cmp	w12, #1024
	csel	w11, w13, w11, hi
	add	w12, w10, w9
	mov	w13, #640
	sub	w13, w13, w9
	cmp	w12, #640
	csel	w20, w13, w10, hi
	lsr	w10, w8, #5
	add	w11, w11, w8
	lsr	w11, w11, #5
	subs	w21, w11, w10
	b.ne	LBB0_6
LBB0_5:
	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
LBB0_6:
	mov	w22, #0
	mov	w11, #-1
	lsr	w23, w11, w8
	add	w8, w10, w9, lsl #5
	mov	w9, #32
	sub	w9, w9, w21
	sxtw	x24, w9
	sub	w9, w21, #2
	lsl	x10, x9, #2
	add	x19, x10, #4
	add	x25, x9, #1
	add	x26, x0, w8, uxtw #2
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x26, x24, lsl #2
	add	x26, x8, #4
	add	w22, w22, #1
	cmp	w22, w20
	b.ge	LBB0_5
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	orr	w8, w8, w23
	str	w8, [x26]
	cmp	w21, #2
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x26, #4
	mov	w1, #255
	mov	x2, x19
	bl	_memset
	add	x26, x26, x25, lsl #2
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_clip_draw_rectangle
.subsections_via_symbols
