	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mask_erode_thread
_mask_erode_thread:                     ## @mask_erode_thread
	.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
	movq	24(%rdi), %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ebx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%ebx, %edx
	callq	_hb_deep_log
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_taskset_thread_wait4start
	movq	%r13, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_taskset_thread_complete
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_taskset_thread_wait4start
	movq	%r13, %rdi
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movl	%ebx, %esi
	callq	_taskset_thread_stop
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rdx
	movl	4(%rdx), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rax
	movq	16(%rsi), %rsi
	movl	(%rax), %eax
	movl	(%rsi), %esi
	addl	%eax, %esi
	testl	%eax, %eax
	movl	%eax, %r11d
	movl	$1, %edi
	cmovel	%edi, %r11d
	leal	-1(%rcx), %r8d
	cmpl	%ecx, %esi
	cmovnel	%esi, %r8d
	cmpl	%r8d, %r11d
	jge	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	8(%rdx), %r10
	movl	%r11d, %ecx
	imull	%r10d, %ecx
	movslq	%ecx, %r9
	leaq	4(,%r9,4), %rsi
	addq	16(%rdx), %rsi
	leal	1(%rax), %edi
	subl	$1, %eax
	movq	16(%r13), %rbx
	movq	(%rbx), %rbx
	movl	$2, %ecx
	cmovbl	%ecx, %edi
	movq	(%rbx), %rcx
	movl	$0, %ebx
	cmovbl	%ebx, %eax
	imull	%r10d, %edi
	movslq	%edi, %rdi
	leaq	(%rcx,%rdi,4), %rdi
	addq	$4, %rdi
	leaq	(%rcx,%r9,4), %rbx
	addq	$4, %rbx
	imull	%r10d, %eax
	cltq
	leaq	(%rcx,%rax,4), %rcx
	addq	$4, %rcx
	movl	(%rdx), %r9d
	leal	-1(%r9), %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%rcx,%r10,4), %rcx
	leaq	(%rbx,%r10,4), %rbx
	leaq	(%rdi,%r10,4), %rdi
	leaq	(%rsi,%r10,4), %rsi
	incl	%r11d
	cmpl	%r8d, %r11d
	je	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	cmpl	$3, %r9d
	jl	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=3
	movl	(%rcx,%rax,4), %r14d
	addl	-4(%rcx,%rax,4), %r14d
	addl	4(%rcx,%rax,4), %r14d
	addl	-4(%rbx,%rax,4), %r14d
	addl	4(%rbx,%rax,4), %r14d
	addl	-4(%rdi,%rax,4), %r14d
	addl	(%rdi,%rax,4), %r14d
	addl	4(%rdi,%rax,4), %r14d
	leaq	1(%rax), %r12
	xorl	%r15d, %r15d
	cmpl	$2, %r14d
	setge	%r15b
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=3
	movl	%r15d, (%rsi,%rax,4)
	movq	%r12, %rax
	cmpq	%rdx, %r12
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$0, (%rbx,%rax,4)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	leaq	1(%rax), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_12:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_taskset_thread_complete        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mask erode thread started for segment %d"

	.no_dead_strip	_mask_erode_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mask_erode_thread
_mask_erode_thread:                     ; @mask_erode_thread
	.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	x20, x0
	ldr	x19, [x0, #24]
	ldr	w21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x21
	bl	_hb_deep_log
	mov	x0, x19
	mov	x1, x21
	bl	_taskset_thread_wait4start
	mov	x0, x19
	mov	x1, x21
	bl	_taskset_thread_stop
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	mov	x1, x21
	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
	b	_taskset_thread_complete
LBB0_2:
	orr	w22, wzr, #0x1
	mov	w23, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_taskset_thread_complete
	mov	x0, x19
	mov	x1, x21
	bl	_taskset_thread_wait4start
	mov	x0, x19
	mov	x1, x21
	bl	_taskset_thread_stop
	cbnz	x0, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x8, [x19, #8]
	ldr	x15, [x8]
	ldr	w9, [x15, #4]
	ldp	x8, x10, [x20, #8]
	ldr	w12, [x8]
	ldr	w10, [x10]
	cmp	w12, #0
	csinc	w8, w12, wzr, ne
	sub	w11, w9, #1
	add	w10, w10, w12
	cmp	w10, w9
	csel	w9, w11, w10, eq
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x15, #16]
	ldrsw	x10, [x15, #8]
	madd	w13, w8, w10, w22
	sbfiz	x13, x13, #2, #32
	add	x11, x11, x13
	ldr	x14, [x19, #16]
	ldr	x14, [x14]
	ldr	x14, [x14]
	sub	w16, w12, #1
	cmp	w12, #0
	csel	w16, wzr, w16, eq
	csinc	w12, w23, w12, eq
	madd	w12, w12, w10, w22
	add	x12, x14, w12, sxtw #2
	add	x13, x14, x13
	madd	w16, w16, w10, w22
	add	x14, x14, w16, sxtw #2
	ldr	w15, [x15]
	sub	w16, w15, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	lsl	x17, x10, #2
	add	x14, x14, x17
	add	x13, x13, x17
	add	x12, x12, x17
	add	x11, x11, x17
	add	w8, w8, #1
	cmp	w8, w9
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	w15, #3
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w17, #1
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=3
	lsl	x1, x17, #2
	sub	x2, x1, #4
	ldr	w3, [x14, x2]
	ldr	w4, [x14, x1]
	add	x0, x17, #1
	lsl	x5, x0, #2
	ldr	w6, [x14, x5]
	add	w3, w4, w3
	add	w3, w3, w6
	ldr	w4, [x13, x2]
	ldr	w6, [x13, x5]
	add	w3, w3, w4
	add	w3, w3, w6
	ldr	w2, [x12, x2]
	ldr	w1, [x12, x1]
	add	w2, w3, w2
	add	w1, w2, w1
	ldr	w2, [x12, x5]
	add	w1, w1, w2
	cmp	w1, #1
	cset	w1, gt
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	str	w1, [x11, x17, lsl #2]
	mov	x17, x0
	cmp	x0, x16
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x13, x17, lsl #2]
	cbnz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	w1, #0
	add	x0, x17, #1
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mask erode thread started for segment %d"

	.no_dead_strip	_mask_erode_thread
.subsections_via_symbols
