	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lang_get_next                  ## -- Begin function lang_get_next
	.p2align	4, 0x90
_lang_get_next:                         ## @lang_get_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_languages@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	_lang_any@GOTPCREL(%rip), %rdi
	je	LBB0_3
## %bb.2:
	movq	_lang_count@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	$-8, %rcx
	leaq	4(%rdi), %rdx
	xorl	%esi, %esi
	cmpq	%rdi, %rcx
	cmovbeq	%rsi, %rdx
	cmpq	%rdi, %rax
	cmovaq	%rsi, %rdx
	movq	%rdx, %rax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lang_any,4,2                   ## @lang_any
	.comm	_languages,8,3                  ## @languages
	.comm	_lang_count,4,2                 ## @lang_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lang_get_next                  ; -- Begin function lang_get_next
	.p2align	2
_lang_get_next:                         ; @lang_get_next
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _languages@GOTPAGE
Lloh1:
	ldr	x9, [x9, _languages@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _lang_any@GOTPAGE
Lloh4:
	ldr	x9, [x9, _lang_any@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _lang_count@GOTPAGE
Lloh6:
	ldr	x9, [x9, _lang_count@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	add	x9, x0, x9, lsl #2
	sub	x9, x9, #8
	cmp	x9, x8
	ccmp	x0, x8, #2, hi
	add	x8, x8, #4
	csel	x0, x8, xzr, ls
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_lang_any,4,2                   ; @lang_any
	.comm	_languages,8,3                  ; @languages
	.comm	_lang_count,4,2                 ; @lang_count
.subsections_via_symbols
