	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$1176, %rsp                     ## imm = 0x498
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jl	LBB0_22
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	8(%rsi), %r14
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	cmovneq	%rbx, %r14
	subl	%ecx, %r15d
	cmpl	$3, %r15d
	jb	LBB0_22
## %bb.2:
	movl	%ecx, -1080(%rbp)               ## 4-byte Spill
	leaq	-1144(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_PNG_IMAGE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1088(%rbp)
	movq	$0, -1096(%rbp)
	movq	8(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_read_wh
	movq	%rax, -1144(%rbp)
	movq	16(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_read_wh
	movq	%rax, -1136(%rbp)
	movq	_PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1104(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -1120(%rbp)
	cmpl	$10, %r15d
	jb	LBB0_7
## %bb.3:
	movq	%r14, -1152(%rbp)               ## 8-byte Spill
	leaq	24(%r14), %r13
	movl	%r15d, -1076(%rbp)              ## 4-byte Spill
	movl	%r15d, %r14d
	leaq	-1072(%rbp), %rbx
	movl	$17, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r12
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_parse_arg
	cmpq	%r14, %r15
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$56, %r13
	addq	$4, %rbx
	addq	$7, %r15
	cmpq	$256, %r12                      ## imm = 0x100
	jb	LBB0_4
LBB0_6:
	movq	-1152(%rbp), %r14               ## 8-byte Reload
	movl	-1076(%rbp), %r15d              ## 4-byte Reload
LBB0_7:
	leal	(,%r12,8), %eax
	subl	%r12d, %eax
	addl	$3, %eax
	cmpl	%r15d, %eax
	jne	LBB0_8
## %bb.10:
	movups	-1144(%rbp), %xmm0
	movups	-1128(%rbp), %xmm1
	movups	-1112(%rbp), %xmm2
	movups	-1096(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PNG_IMAGE_SIZE
	movq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.11:
	movq	%rax, %r15
	movq	-1136(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.12:
	movq	-1144(%rbp), %rdi
	xorl	%ebx, %ebx
	leaq	-1072(%rbp), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_18
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	testq	%rdi, %rdi
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%rbx, %rdi
	addq	%r14, %rdi
	shlq	$4, %rdi
	addq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_pixel
	incq	%r14
	movq	-1144(%rbp), %rdi
	cmpq	%rdi, %r14
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-1136(%rbp), %rax
	jmp	LBB0_17
LBB0_22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movl	$1, %ebx
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%ebx, %eax
	addq	$1176, %rsp                     ## imm = 0x498
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %eax
	movq	(%r14,%rax,8), %rdx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_18:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-1144(%rbp), %rdi
	movl	-1080(%rbp), %edx               ## 4-byte Reload
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_png_image_write_to_stdio
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_24
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movups	-1144(%rbp), %xmm0
	movups	-1128(%rbp), %xmm1
	movups	-1112(%rbp), %xmm2
	movups	-1096(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PNG_IMAGE_SIZE
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
LBB0_9:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_23
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-1128(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_23
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--8bit"

	.comm	_PNG_IMAGE_VERSION,4,2          ## @PNG_IMAGE_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"width"

L_.str.2:                               ## @.str.2
	.asciz	"height"

	.comm	_PNG_FORMAT_LINEAR_RGB_ALPHA,4,2 ## @PNG_FORMAT_LINEAR_RGB_ALPHA
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"genpng: %s: too many arguments\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.4:                               ## @.str.4
	.asciz	"genpng: write stdout: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"genpng: out of memory: %lu bytes\n"

L_.str.6:                               ## @.str.6
	.asciz	"genpng: usage: genpng [--8bit] width height {shape}\n Generate a transparent PNG in RGBA (truecolor+alpha) format\n containing the given shape or shapes.  Shapes are defined:\n\n  shape ::= color width shape x1 y1 x2 y2\n  color ::= black|white|red|green|yellow|blue\n  color ::= brown|purple|pink|orange|gray|cyan\n  width ::= filled|<number>\n  shape ::= circle|square|line\n  x1,x2 ::= <number>\n  y1,y2 ::= <number>\n\n Numbers are floating point numbers describing points relative to\n the top left of the output PNG as pixel coordinates.  The 'width'\n parameter is either the width of the line (in output pixels) used\n to draw the shape or 'filled' to indicate that the shape should\n be filled with the color.\n\n Colors are interpreted loosely to give access to the eight full\n intensity RGB values:\n\n  black, red, green, blue, yellow, cyan, purple, white,\n\n Cyan is full intensity blue+green; RGB(0,1,1), plus the following\n lower intensity values:\n\n  brown:  red+orange:  RGB(0.5, 0.125, 0) (dark red+orange)\n  pink:   red+white:   RGB(1.0, 0.5,   0.5)\n  orange: red+yellow:  RGB(1.0, 0.5,   0)\n  gray:   black+white: RGB(0.5, 0.5,   0.5)\n\n The RGB values are selected to make detection of aliasing errors\n easy. The names are selected to make the description of errors\n easy.\n\n The PNG is written to stdout, if --8bit is given a 32bpp RGBA sRGB\n file is produced, otherwise a 64bpp RGBA linear encoded file is\n written.\n"

	.comm	_max_shapes,4,2                 ## @max_shapes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	sub	sp, sp, #1184
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cmp	w0, #2
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, x1
	ldr	x0, [x21, #8]!
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	csel	x23, x21, x19, eq
	cset	w19, eq
	sub	w24, w20, w19
	cmp	w24, #3
	b.lo	LBB0_15
; %bb.2:
	add	x0, sp, #88
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh5:
	adrp	x8, _PNG_IMAGE_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PNG_IMAGE_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #144]
	str	xzr, [sp, #136]
	ldr	x1, [x23, #8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_read_wh
	str	x0, [sp, #88]
	ldr	x1, [x23, #16]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_read_wh
	mov	w20, #0
Lloh12:
	adrp	x8, _PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PNG_FORMAT_LINEAR_RGB_ALPHA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #128]
	stp	xzr, xzr, [sp, #112]
	str	x0, [sp, #96]
	cmp	w24, #10
	b.lo	LBB0_6
; %bb.3:
	mov	x20, #0
	add	x21, x23, #24
	add	x22, sp, #152
	mov	w25, #17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	mov	x0, x22
	mov	x1, x21
	bl	_parse_arg
	cmp	x25, x24
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #56
	add	x22, x22, #4
	add	x25, x25, #7
	cmp	x20, #256
	b.lo	LBB0_4
LBB0_6:
	lsl	w8, w20, #3
	sub	w8, w8, w20
	add	w8, w8, #3
	cmp	w8, w24
	b.ne	LBB0_20
; %bb.7:
	ldur	q0, [sp, #88]
	ldur	q1, [sp, #104]
	stp	q0, q1, [sp, #16]
	ldur	q0, [sp, #120]
	ldur	q1, [sp, #136]
	stp	q0, q1, [sp, #48]
	add	x0, sp, #16
	bl	_PNG_IMAGE_SIZE
	bl	_malloc
	cbz	x0, LBB0_23
; %bb.8:
	mov	x21, x0
	ldr	x9, [sp, #96]
	cmp	x9, #1
	b.lt	LBB0_21
; %bb.9:
	mov	x22, #0
	ldr	x8, [sp, #88]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	cmp	x22, x9
	b.ge	LBB0_21
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, #0
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x8, x22, x8, x23
	add	x0, x21, x8, lsl #4
	add	x1, sp, #152
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	bl	_pixel
	add	x23, x23, #1
	ldr	x8, [sp, #88]
	cmp	x23, x8
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [sp, #96]
	b	LBB0_10
LBB0_15:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	bl	_fprintf
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.19:
	add	sp, sp, #1184
	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_20:
Lloh23:
	adrp	x9, _stderr@GOTPAGE
Lloh24:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	ldr	x8, [x23, w8, uxtw #3]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_21:
Lloh28:
	adrp	x8, _stdout@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x0, sp, #88
	mov	x2, x19
	mov	x3, x21
	mov	w4, #0
	mov	x5, #0
	bl	_png_image_write_to_stdio
	cbz	x0, LBB0_24
; %bb.22:
	mov	x0, x21
	bl	_free
	mov	w0, #0
	b	LBB0_18
LBB0_23:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
	ldur	q0, [sp, #88]
	ldur	q1, [sp, #104]
	stp	q0, q1, [sp, #16]
	ldur	q0, [sp, #120]
	ldur	q1, [sp, #136]
	stp	q0, q1, [sp, #48]
	add	x0, sp, #16
	bl	_PNG_IMAGE_SIZE
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	b	LBB0_16
LBB0_24:
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [sp, #104]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	bl	_free
	b	LBB0_17
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--8bit"

	.comm	_PNG_IMAGE_VERSION,4,2          ; @PNG_IMAGE_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"width"

l_.str.2:                               ; @.str.2
	.asciz	"height"

	.comm	_PNG_FORMAT_LINEAR_RGB_ALPHA,4,2 ; @PNG_FORMAT_LINEAR_RGB_ALPHA
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"genpng: %s: too many arguments\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.4:                               ; @.str.4
	.asciz	"genpng: write stdout: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"genpng: out of memory: %lu bytes\n"

l_.str.6:                               ; @.str.6
	.asciz	"genpng: usage: genpng [--8bit] width height {shape}\n Generate a transparent PNG in RGBA (truecolor+alpha) format\n containing the given shape or shapes.  Shapes are defined:\n\n  shape ::= color width shape x1 y1 x2 y2\n  color ::= black|white|red|green|yellow|blue\n  color ::= brown|purple|pink|orange|gray|cyan\n  width ::= filled|<number>\n  shape ::= circle|square|line\n  x1,x2 ::= <number>\n  y1,y2 ::= <number>\n\n Numbers are floating point numbers describing points relative to\n the top left of the output PNG as pixel coordinates.  The 'width'\n parameter is either the width of the line (in output pixels) used\n to draw the shape or 'filled' to indicate that the shape should\n be filled with the color.\n\n Colors are interpreted loosely to give access to the eight full\n intensity RGB values:\n\n  black, red, green, blue, yellow, cyan, purple, white,\n\n Cyan is full intensity blue+green; RGB(0,1,1), plus the following\n lower intensity values:\n\n  brown:  red+orange:  RGB(0.5, 0.125, 0) (dark red+orange)\n  pink:   red+white:   RGB(1.0, 0.5,   0.5)\n  orange: red+yellow:  RGB(1.0, 0.5,   0)\n  gray:   black+white: RGB(0.5, 0.5,   0.5)\n\n The RGB values are selected to make detection of aliasing errors\n easy. The names are selected to make the description of errors\n easy.\n\n The PNG is written to stdout, if --8bit is given a 32bpp RGBA sRGB\n file is produced, otherwise a 64bpp RGBA linear encoded file is\n written.\n"

	.comm	_max_shapes,4,2                 ; @max_shapes
.subsections_via_symbols
