	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Nam2mode                       ## -- Begin function Nam2mode
	.p2align	4, 0x90
_Nam2mode:                              ## @Nam2mode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movq	_modes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r12d
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.1:
	movslq	%eax, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rcx), %r14
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %r12d
	addq	$16, %r14
	incl	%r13d
	testl	%r12d, %r12d
	movl	%r15d, %eax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r14), %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %r15d
	movl	%eax, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%rbx,%rax)
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_2
	jmp	LBB0_10
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.9:
	cltq
	shlq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax), %r12d
	jmp	LBB0_11
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_modes,8,3                      ## @modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Nam2mode                       ; -- Begin function Nam2mode
	.p2align	2
_Nam2mode:                              ; @Nam2mode
	.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, x0
	bl	_strlen
Lloh0:
	adrp	x8, _modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _modes@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w21, [x23]
	cbz	w21, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w24, #0
	sxtw	x26, w20
	add	x27, x23, #16
	mov	w25, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x27], #16
	add	w24, w24, #1
	cbz	w21, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x22, [x27, #-8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_strncasecmp
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22, x26]
	cbz	w8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w25, #1
	mov	x25, x24
	b.eq	LBB0_2
	b	LBB0_8
LBB0_6:
	cmn	w25, #1
	b.eq	LBB0_8
; %bb.7:
	sbfiz	x8, x25, #4, #32
	ldr	w21, [x23, x8]
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_modes,8,3                      ; @modes
.subsections_via_symbols
