	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	(%rsi), %rax
	movq	_programname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_opterr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str(%rip), %rbx
	leaq	LJTI0_0(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_1
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_17
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-104(%rax), %ecx
	cmpl	$12, %ecx
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	_logoname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	_outputname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rbx
	movq	(%r13), %r13
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_logo_type@GOTPCREL(%rip), %rax
	movl	$129, (%rax)
	jmp	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_logo_type@GOTPCREL(%rip), %rax
	movl	$128, (%rax)
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_logo_type@GOTPCREL(%rip), %rax
	movl	$131, (%rax)
	jmp	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_logo_type@GOTPCREL(%rip), %rax
	movl	$130, (%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_1
LBB0_17:
	movq	_optind@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	decl	%r15d
	cmpl	%r15d, %eax
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_usage
	movl	(%rbx), %eax
LBB0_19:
	cltq
	movq	(%r14,%rax,8), %rax
	movq	_filename@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_read_image
	movq	_logo_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_25
## %bb.20:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_22:
	xorl	%eax, %eax
	callq	_write_logo_vga16
	xorl	%edi, %edi
	callq	_exit
LBB0_21:
	xorl	%eax, %eax
	callq	_write_logo_mono
	xorl	%edi, %edi
	callq	_exit
LBB0_24:
	xorl	%eax, %eax
	callq	_write_logo_gray256
LBB0_25:
	xorl	%edi, %edi
	callq	_exit
LBB0_23:
	xorl	%eax, %eax
	callq	_write_logo_clut224
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
.set L0_1_set_23, LBB0_23-LJTI0_1
LJTI0_1:
	.long	L0_1_set_22
	.long	L0_1_set_21
	.long	L0_1_set_24
	.long	L0_1_set_23
	.end_data_region
                                        ## -- End function
	.comm	_programname,8,3                ## @programname
	.comm	_opterr,8,3                     ## @opterr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hn:o:t:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_logoname,8,3                   ## @logoname
	.comm	_outputname,8,3                 ## @outputname
L_.str.1:                               ## @.str.1
	.asciz	"mono"

	.comm	_logo_type,4,2                  ## @logo_type
L_.str.2:                               ## @.str.2
	.asciz	"vga16"

L_.str.3:                               ## @.str.3
	.asciz	"clut224"

L_.str.4:                               ## @.str.4
	.asciz	"gray256"

	.comm	_optind,4,2                     ## @optind
	.comm	_filename,8,3                   ## @filename
.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _programname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _programname@GOTPAGEOFF]
Lloh2:
	adrp	x9, _opterr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _opterr@GOTPAGEOFF]
	ldr	x10, [x1]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x28, lJTI0_0@PAGE
Lloh7:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x25, _optarg@GOTPAGE
Lloh9:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh10:
	adrp	x24, _logoname@GOTPAGE
Lloh11:
	ldr	x24, [x24, _logoname@GOTPAGEOFF]
Lloh12:
	adrp	x23, _outputname@GOTPAGE
Lloh13:
	ldr	x23, [x23, _outputname@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh16:
	adrp	x27, _logo_type@GOTPAGE
Lloh17:
	ldr	x27, [x27, _logo_type@GOTPAGEOFF]
Lloh18:
	str	x10, [x8]
Lloh19:
	str	xzr, [x9]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	str	x8, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	sub	w8, w0, #104
	cmp	w8, #12
	b.hi	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	str	x8, [x24]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [x25]
	mov	x0, x26
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #130
	str	w8, [x27]
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #129
	str	w8, [x27]
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #128
	str	w8, [x27]
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #131
	str	w8, [x27]
	b	LBB0_2
LBB0_16:
Lloh26:
	adrp	x21, _optind@GOTPAGE
Lloh27:
	ldr	x21, [x21, _optind@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w9, w20, #1
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.17:
	bl	_usage
	ldr	w8, [x21]
LBB0_18:
	ldr	x8, [x19, w8, sxtw #3]
Lloh28:
	adrp	x9, _filename@GOTPAGE
Lloh29:
	ldr	x9, [x9, _filename@GOTPAGEOFF]
Lloh30:
	str	x8, [x9]
	bl	_read_image
	ldr	w8, [x27]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_23
; %bb.19:
Lloh31:
	adrp	x9, lJTI0_1@PAGE
Lloh32:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_20
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_20:
	bl	_write_logo_vga16
	mov	w0, #0
	bl	_exit
LBB0_21:
	bl	_write_logo_mono
	mov	w0, #0
	bl	_exit
LBB0_22:
	bl	_write_logo_gray256
LBB0_23:
	mov	w0, #0
	bl	_exit
LBB0_24:
	bl	_write_logo_clut224
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh19
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh18
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
lJTI0_1:
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_21-LBB0_20)>>2
	.byte	(LBB0_22-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
                                        ; -- End function
	.comm	_programname,8,3                ; @programname
	.comm	_opterr,8,3                     ; @opterr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hn:o:t:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_logoname,8,3                   ; @logoname
	.comm	_outputname,8,3                 ; @outputname
l_.str.1:                               ; @.str.1
	.asciz	"mono"

	.comm	_logo_type,4,2                  ; @logo_type
l_.str.2:                               ; @.str.2
	.asciz	"vga16"

l_.str.3:                               ; @.str.3
	.asciz	"clut224"

l_.str.4:                               ; @.str.4
	.asciz	"gray256"

	.comm	_optind,4,2                     ; @optind
	.comm	_filename,8,3                   ; @filename
.subsections_via_symbols
