	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_color
_parse_color:                           ## @parse_color
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpb	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -40(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_strtoul
	cmpq	$65536, %rax                    ## imm = 0x10000
	jae	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-40(%rbp), %rdx
	cmpq	%r12, %rdx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$1, (%rdx)
	sbbq	$-1, %rdx
	leaq	1(%rbx), %rcx
	movl	%eax, 4(%r14,%rbx,4)
	movzbl	(%rdx), %eax
	testb	%al, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %r12
	cmpq	$3, %rbx
	movq	%rcx, %rbx
	jb	LBB0_4
LBB0_12:
	testb	%al, %al
	je	LBB0_2
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	movl	%ecx, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r12, %rdx
LBB0_7:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"makepng --color=...'%s': too big\n"

L_.str.1:                               ## @.str.1
	.asciz	"makepng --color=...'%s': not a valid color\n"

L_.str.2:                               ## @.str.2
	.asciz	"makepng --color=...'%s': too many values\n"

	.no_dead_strip	_parse_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_color
_parse_color:                           ; @parse_color
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	cmp	x0, #16, lsl #12                ; =65536
	b.hs	LBB0_19
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_20
; %bb.3:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #0
	csel	x19, x8, x9, eq
	str	w0, [x20, #4]
	ldrb	w8, [x19]
	cbz	w8, LBB0_14
; %bb.4:
	str	x19, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_strtoul
	lsr	x8, x0, #16
	cbnz	x8, LBB0_19
; %bb.5:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_20
; %bb.6:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #0
	csel	x19, x8, x9, eq
	str	w0, [x20, #8]
	ldrb	w8, [x19]
	cbz	w8, LBB0_15
; %bb.7:
	str	x19, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_strtoul
	lsr	x8, x0, #16
	cbnz	x8, LBB0_19
; %bb.8:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_20
; %bb.9:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #0
	csel	x19, x8, x9, eq
	str	w0, [x20, #12]
	ldrb	w8, [x19]
	cbz	w8, LBB0_17
; %bb.10:
	str	x19, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_strtoul
	lsr	x8, x0, #16
	cbnz	x8, LBB0_19
; %bb.11:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_20
; %bb.12:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #0
	csel	x19, x8, x9, eq
	str	w0, [x20, #16]
	ldrb	w8, [x19]
	mov	w9, #4
	cbz	w8, LBB0_16
	b	LBB0_18
LBB0_13:
	mov	w9, #0
	b	LBB0_16
LBB0_14:
	mov	w9, #1
	cbz	w8, LBB0_16
	b	LBB0_18
LBB0_15:
	mov	w9, #2
	cbnz	w8, LBB0_18
LBB0_16:
	str	w9, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_17:
	mov	w9, #3
	cbz	w8, LBB0_16
LBB0_18:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_21:
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"makepng --color=...'%s': too big\n"

l_.str.1:                               ; @.str.1
	.asciz	"makepng --color=...'%s': not a valid color\n"

l_.str.2:                               ; @.str.2
	.asciz	"makepng --color=...'%s': too many values\n"

	.no_dead_strip	_parse_color
.subsections_via_symbols
