	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fname2color
_fname2color:                           ## @fname2color
	.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	%rdi, %r14
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	incq	%r12
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_strlen
	cltq
	leaq	(%r14,%rax), %r12
	addq	$-3, %r12
	cmpq	%r14, %r12
	cmovbq	%r14, %r12
LBB0_3:
	movq	_rom_exts@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_7:
	leaq	_fname2color.other_exts(%rip), %r14
	movq	%r14, %rdi
	callq	_array_size
	movw	$-1, %r15w
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%r13d, %r13d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movq	%r14, %rdi
	callq	_array_size
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_11
	jmp	LBB0_13
LBB0_9:
	movw	$-16897, %r15w                  ## imm = 0xBDFF
	jmp	LBB0_13
LBB0_12:
	movw	$-20491, %r15w                  ## imm = 0xAFF5
LBB0_13:
	movzwl	%r15w, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @fname2color.other_exts
_fname2color.other_exts:
	.quad	L_.str
	.quad	L_.str.1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gmv"

L_.str.1:                               ## @.str.1
	.asciz	"pat"

	.comm	_rom_exts,8,3                   ## @rom_exts
	.no_dead_strip	_fname2color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fname2color
_fname2color:                           ; @fname2color
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x19, x0, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	sub	x8, x8, #3
	cmp	x8, x19
	csel	x19, x19, x8, lo
LBB0_3:
Lloh0:
	adrp	x8, _rom_exts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rom_exts@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x1, [x8]
	cbz	x1, LBB0_7
; %bb.4:
	add	x20, x8, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strcasecmp
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20], #8
	cbnz	x1, LBB0_5
LBB0_7:
Lloh3:
	adrp	x20, _fname2color.other_exts@PAGE
Lloh4:
	add	x20, x20, _fname2color.other_exts@PAGEOFF
	mov	x0, x20
	bl	_array_size
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20, x21, lsl #3]
	mov	x0, x19
	bl	_strcasecmp
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_array_size
	cmp	x21, w0, sxtw
	b.lt	LBB0_9
LBB0_11:
	mov	w0, #65535
	b	LBB0_14
LBB0_12:
	mov	w0, #48639
	b	LBB0_14
LBB0_13:
	mov	w0, #45045
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @fname2color.other_exts
_fname2color.other_exts:
	.quad	l_.str
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gmv"

l_.str.1:                               ; @.str.1
	.asciz	"pat"

	.comm	_rom_exts,8,3                   ; @rom_exts
	.no_dead_strip	_fname2color
.subsections_via_symbols
