	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WriteBrushList                 ## -- Begin function WriteBrushList
	.p2align	4, 0x90
_WriteBrushList:                        ## @WriteBrushList
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_qprintf
	movq	%r15, %rdi
	callq	_SafeOpenWrite
	movq	%rax, %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %r12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%r12, %r12
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rsi
	callq	_OutputWinding
	movl	(%r12), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rcx
	movl	(%rcx,%rbx,8), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 4(%rcx,%rbx,8)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WriteBrushList                 ; -- Begin function WriteBrushList
	.p2align	2
_WriteBrushList:                        ; @WriteBrushList
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_qprintf
	mov	x0, x21
	bl	_SafeOpenWrite
	mov	x21, x0
	cbnz	x20, LBB0_3
LBB0_1:
	mov	x0, 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	_fclose
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	x23, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x1, x21
	bl	_OutputWinding
	ldr	w8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, #8]
	ldr	w0, [x9, x22]
	cbz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	x19, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x9, x9, x22
	ldr	w9, [x9, #4]
	cbnz	w9, LBB0_5
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing %s\n"

.subsections_via_symbols
