	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function draw_mask_box
LCPI0_0:
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_draw_mask_box:                         ## @draw_mask_box
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rdi), %r11d
	movl	12(%rdi), %eax
	movq	_MODE_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	32(%rdi), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	24(%rdi), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	leaq	8(%rcx), %rdx
	movslq	(%rdi), %r9
	movslq	4(%rdi), %r12
	movq	(%rcx), %r8
	movslq	(%rdx), %r10
	testl	%r11d, %r11d
	jle	LBB0_23
## %bb.4:
	movl	%r10d, %r15d
	imull	%r12d, %r15d
	leal	(%rax,%r12), %r14d
	imull	%r10d, %r14d
	cmpl	$8, %r11d
	jae	LBB0_6
LBB0_5:
	xorl	%esi, %esi
LBB0_18:
	movq	%rsi, %rdx
	notq	%rdx
	testb	$1, %r11b
	je	LBB0_20
## %bb.19:
	leal	(%rsi,%r9), %ecx
	leal	(%rcx,%r15), %edi
	movslq	%edi, %rdi
	movl	$128, (%r8,%rdi,4)
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movl	$128, (%r8,%rcx,4)
	orq	$1, %rsi
LBB0_20:
	addq	%r11, %rdx
	je	LBB0_23
## %bb.21:
	addl	%r9d, %r14d
	addl	%r9d, %r15d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%rsi), %rcx
	movslq	%ecx, %rcx
	movl	$128, (%r8,%rcx,4)
	leaq	(%r14,%rsi), %rdx
	movslq	%edx, %rdx
	movl	$128, (%r8,%rdx,4)
	incl	%ecx
	movslq	%ecx, %rcx
	movl	$128, (%r8,%rcx,4)
	incl	%edx
	movslq	%edx, %rcx
	movl	$128, (%r8,%rcx,4)
	addq	$2, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_22
LBB0_23:
	testl	%eax, %eax
	jle	LBB0_40
## %bb.24:
	movslq	%r11d, %r11
	xorl	%r15d, %r15d
	cmpl	$8, %eax
	jb	LBB0_35
## %bb.25:
	cmpl	$1, %r10d
	jne	LBB0_35
## %bb.26:
	leaq	(%r12,%r9), %rcx
	leaq	(%rcx,%r11), %rdx
	leaq	(%r8,%rdx,4), %rdx
	leaq	(%r8,%rcx,4), %rcx
	subq	%rcx, %rdx
	cmpq	$32, %rdx
	jae	LBB0_28
## %bb.27:
	xorl	%r15d, %r15d
	jmp	LBB0_35
LBB0_6:
	leaq	-1(%r11), %rcx
	leal	(%r9,%r15), %ebx
	leal	(%rbx,%rcx), %edx
	xorl	%esi, %esi
	cmpl	%ebx, %edx
	jl	LBB0_18
## %bb.7:
	movq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_18
## %bb.8:
	leal	(%r9,%r14), %edi
	addl	%edi, %ecx
	cmpl	%edi, %ecx
	jl	LBB0_18
## %bb.9:
	testq	%rdx, %rdx
	jne	LBB0_18
## %bb.10:
	leal	(%r9,%r14), %ecx
	movslq	%ecx, %rcx
	leaq	(%r8,%rcx,4), %rcx
	leal	(%r9,%r15), %edx
	movslq	%edx, %rdx
	leaq	(%r8,%rdx,4), %rdx
	subq	%rdx, %rcx
	xorl	%r13d, %r13d
	cmpq	$32, %rcx
	jb	LBB0_5
## %bb.12:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%r11d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r12
	shrq	$3, %r12
	incq	%r12
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.13:
	movq	%r12, %rdx
	andq	$-2, %rdx
	xorl	%r13d, %r13d
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,128,128,128]
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movups	%xmm0, (%r8,%rbx,4)
	movups	%xmm0, 16(%r8,%rbx,4)
	movslq	%edi, %rdi
	movups	%xmm0, (%r8,%rdi,4)
	movups	%xmm0, 16(%r8,%rdi,4)
	leal	8(%rbx), %ecx
	movslq	%ecx, %rcx
	movups	%xmm0, (%r8,%rcx,4)
	movups	%xmm0, 16(%r8,%rcx,4)
	leal	8(%rdi), %ecx
	movslq	%ecx, %rcx
	movups	%xmm0, (%r8,%rcx,4)
	movups	%xmm0, 16(%r8,%rcx,4)
	addl	$16, %edi
	addl	$16, %ebx
	addl	$16, %r13d
	addq	$-2, %rdx
	jne	LBB0_14
LBB0_15:
	testb	$1, %r12b
	je	LBB0_17
## %bb.16:
	addl	%r9d, %r13d
	leal	(%r15,%r13), %ecx
	movslq	%ecx, %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,128,128,128]
	movups	%xmm0, (%r8,%rcx,4)
	movups	%xmm0, 16(%r8,%rcx,4)
	addl	%r14d, %r13d
	movslq	%r13d, %rcx
	movups	%xmm0, (%r8,%rcx,4)
	movups	%xmm0, 16(%r8,%rcx,4)
LBB0_17:
	cmpq	%r11, %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_23
	jmp	LBB0_18
LBB0_28:
	movl	%eax, %r15d
	andl	$-8, %r15d
	leaq	-8(%r15), %rcx
	movq	%rcx, %r14
	shrq	$3, %r14
	incq	%r14
	testq	%rcx, %rcx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_31
## %bb.29:
	movq	%r14, %rdi
	andq	$-2, %rdi
	leaq	8(%r12), %rcx
	imulq	%r10, %rcx
	leaq	(%rcx,%r9), %r13
	addq	%r11, %r13
	movq	%r12, %rbx
	movq	%r10, %r12
	shlq	$6, %r12
	leaq	(,%r9,4), %rdx
	leaq	(%rdx,%rcx,4), %rsi
	movq	%rbx, %rdx
	imulq	%r10, %rdx
	addq	%r9, %rdx
	leaq	(%rdx,%r11), %r9
	xorl	%ebx, %ebx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,128,128,128]
	movq	%r8, %rcx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%rcx,%rdx,4)
	movups	%xmm0, 16(%rcx,%rdx,4)
	movups	%xmm0, (%rcx,%r9,4)
	movups	%xmm0, 16(%rcx,%r9,4)
	movups	%xmm0, (%rcx,%rsi)
	movups	%xmm0, 16(%rcx,%rsi)
	movups	%xmm0, (%rcx,%r13,4)
	movups	%xmm0, 16(%rcx,%r13,4)
	addq	$16, %rbx
	addq	%r12, %rcx
	addq	$-2, %rdi
	jne	LBB0_30
	jmp	LBB0_32
LBB0_31:
	xorl	%ebx, %ebx
LBB0_32:
	testb	$1, %r14b
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_34
## %bb.33:
	addq	%r12, %rbx
	imulq	%r10, %rbx
	addq	%r9, %rbx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,128,128,128]
	movups	%xmm0, (%r8,%rbx,4)
	movups	%xmm0, 16(%r8,%rbx,4)
	addq	%r11, %rbx
	movups	%xmm0, (%r8,%rbx,4)
	movups	%xmm0, 16(%r8,%rbx,4)
LBB0_34:
	cmpq	%rax, %r15
	je	LBB0_40
LBB0_35:
	movq	%r15, %rcx
	notq	%rcx
	testb	$1, %al
	je	LBB0_37
## %bb.36:
	leaq	(%r15,%r12), %rdx
	imulq	%r10, %rdx
	addq	%r9, %rdx
	movl	$128, (%r8,%rdx,4)
	addq	%r11, %rdx
	movl	$128, (%r8,%rdx,4)
	orq	$1, %r15
LBB0_37:
	addq	%rax, %rcx
	je	LBB0_40
## %bb.38:
	subq	%r15, %rax
	leaq	(%r15,%r12), %rdx
	imulq	%r10, %rdx
	addq	%r9, %rdx
	leaq	(%rdx,%r11), %rsi
	leaq	(%r15,%r12), %rdi
	incq	%rdi
	imulq	%r10, %rdi
	shlq	$3, %r10
	leaq	(%rdi,%r9), %rcx
	addq	%r11, %rcx
	shlq	$2, %r9
	leaq	(%r9,%rdi,4), %rdi
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	$128, (%r8,%rdx,4)
	movl	$128, (%r8,%rsi,4)
	movl	$128, (%r8,%rdi)
	movl	$128, (%r8,%rcx,4)
	addq	%r10, %r8
	addq	$-2, %rax
	jne	LBB0_39
LBB0_40:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_FILTER,4,2                ## @MODE_FILTER
	.no_dead_strip	_draw_mask_box
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_mask_box
_draw_mask_box:                         ; @draw_mask_box
	.cfi_startproc
; %bb.0:
	ldp	w14, w8, [x0, #8]
	sxtw	x9, w14
	ldr	w10, [x0, #16]
Lloh0:
	adrp	x11, _MODE_FILTER@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MODE_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x0, #32]
	b	LBB0_3
LBB0_2:
	ldr	x10, [x0, #24]
LBB0_3:
	ldr	x10, [x10]
	add	x12, x10, #8
	ldpsw	x11, x13, [x0]
	ldr	x10, [x10]
	ldrsw	x12, [x12]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.4:
	mul	w15, w12, w13
	add	w16, w8, w13
	mul	w16, w12, w16
	cmp	w14, #16
	b.lo	LBB0_7
; %bb.5:
	sub	x0, x14, #1
	add	w17, w11, w15
	add	w2, w17, w0
	add	w1, w11, w16
	add	w3, w1, w0
	cmp	w2, w17
	lsr	x0, x0, #32
	ccmp	x0, #0, #0, ge
	ccmp	w3, w1, #8, eq
	ccmp	x0, #0, #0, ge
	b.ne	LBB0_7
; %bb.6:
	add	w0, w11, w16
	add	x0, x10, w0, sxtw #2
	add	w2, w11, w15
	add	x2, x10, w2, sxtw #2
	sub	x0, x0, x2
	cmp	x0, #64
	b.hs	LBB0_21
LBB0_7:
	mov	x0, #0
LBB0_8:
	add	w16, w11, w16
	add	w16, w16, w0
	add	w15, w11, w15
	add	w15, w15, w0
	sub	x14, x14, x0
	mov	w17, #128
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w17, [x10, w15, sxtw #2]
	str	w17, [x10, w16, sxtw #2]
	add	w16, w16, #1
	add	w15, w15, #1
	subs	x14, x14, #1
	b.ne	LBB0_9
LBB0_10:
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.11:
	mov	x14, #0
	cmp	w8, #16
	b.lo	LBB0_18
; %bb.12:
	cmp	w12, #1
	b.ne	LBB0_18
; %bb.13:
	add	x14, x13, x11
	add	x15, x14, x9
	add	x15, x10, x15, lsl #2
	add	x14, x10, x14, lsl #2
	sub	x14, x15, x14
	cmp	x14, #64
	b.hs	LBB0_15
; %bb.14:
	mov	x14, #0
	b	LBB0_18
LBB0_15:
	and	x14, x8, #0xfffffff0
	mul	x15, x13, x12
	add	x15, x15, x11
	add	x17, x15, x9
	lsl	x15, x15, #2
	lsl	x16, x12, #6
	lsl	x17, x17, #2
	add	x17, x17, #32
	movi.4s	v0, #128
	mov	x0, x10
	mov	x1, x14
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x2, x0, x15
	stp	q0, q0, [x2]
	stp	q0, q0, [x2, #32]
	add	x2, x0, x17
	stp	q0, q0, [x2, #-32]
	add	x0, x0, x16
	stp	q0, q0, [x2]
	subs	x1, x1, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x14, x8
	b.eq	LBB0_20
LBB0_18:
	add	x13, x14, x13
	mul	x13, x13, x12
	add	x11, x13, x11
	add	x9, x11, x9
	lsl	x12, x12, #2
	sub	x8, x8, x14
	mov	w13, #128
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	str	w13, [x10, x11, lsl #2]
	str	w13, [x10, x9, lsl #2]
	add	x10, x10, x12
	subs	x8, x8, #1
	b.ne	LBB0_19
LBB0_20:
	ret
LBB0_21:
	and	x0, x14, #0xfffffff0
	movi.4s	v0, #128
	mov	x2, x0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	add	x3, x10, w17, sxtw #2
	stp	q0, q0, [x3]
	stp	q0, q0, [x3, #32]
	add	x3, x10, w1, sxtw #2
	stp	q0, q0, [x3]
	add	w1, w1, #16
	add	w17, w17, #16
	stp	q0, q0, [x3, #32]
	subs	x2, x2, #16
	b.ne	LBB0_22
; %bb.23:
	cmp	x0, x14
	b.eq	LBB0_10
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_FILTER,4,2                ; @MODE_FILTER
	.no_dead_strip	_draw_mask_box
.subsections_via_symbols
