	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lang_for_index                 ## -- Begin function lang_for_index
	.p2align	4, 0x90
_lang_for_index:                        ## @lang_for_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	testl	%edi, %edi
	js	LBB0_5
## %bb.3:
	movq	_lang_count@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_5
## %bb.4:
	movq	_languages@GOTPCREL(%rip), %rcx
	movl	%edi, %eax
	shlq	$2, %rax
	addq	(%rcx), %rax
LBB0_5:
	popq	%rbp
	retq
LBB0_1:
	movq	_lang_any@GOTPCREL(%rip), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lang_any,4,2                   ## @lang_any
	.comm	_lang_count,4,2                 ## @lang_count
	.comm	_languages,8,3                  ## @languages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lang_for_index                 ; -- Begin function lang_for_index
	.p2align	2
_lang_for_index:                        ; @lang_for_index
	.cfi_startproc
; %bb.0:
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	tbnz	w8, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _lang_count@GOTPAGE
Lloh1:
	ldr	x9, [x9, _lang_count@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _languages@GOTPAGE
Lloh4:
	ldr	x9, [x9, _languages@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, w8, uxtw #2
LBB0_4:
	ret
LBB0_5:
Lloh6:
	adrp	x0, _lang_any@GOTPAGE
Lloh7:
	ldr	x0, [x0, _lang_any@GOTPAGEOFF]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_lang_any,4,2                   ; @lang_any
	.comm	_lang_count,4,2                 ; @lang_count
	.comm	_languages,8,3                  ; @languages
.subsections_via_symbols
