	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_name_table_language
_match_name_table_language:             ## @match_name_table_language
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_GET_BE_WORD
	xorl	%r15d, %r15d
	cmpl	$130, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.3:
	movl	4(%rbx), %edi
	callq	_GET_BE_WORD
	addl	$-131, %eax
	cmpl	$1, %eax
	ja	LBB0_12
## %bb.4:
	movl	(%rbx), %edi
	callq	_GET_BE_WORD
	movslq	%eax, %rbx
	jmp	LBB0_9
LBB0_6:
	movl	4(%rbx), %edi
	callq	_GET_BE_WORD
	addl	$-133, %eax
	cmpl	$2, %eax
	jbe	LBB0_7
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_get_mac_code_page
	movl	%eax, %edi
	callq	_IsValidCodePage
	testl	%eax, %eax
	je	LBB0_12
LBB0_7:
	movl	(%rbx), %edi
	callq	_GET_BE_WORD
	movslq	%eax, %rbx
	movq	_mac_langid_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_12
## %bb.8:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rbx
LBB0_9:
	movl	$3, %r15d
	cmpq	%r14, %rbx
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_PRIMARYLANGID
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_PRIMARYLANGID
	movl	$2, %r15d
	cmpq	%rax, %r12
	je	LBB0_12
## %bb.11:
	movq	_LANG_ENGLISH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUBLANG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAKELANGID
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	sete	%r15b
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mac_langid_table,8,3           ## @mac_langid_table
	.comm	_LANG_ENGLISH,4,2               ## @LANG_ENGLISH
	.comm	_SUBLANG_DEFAULT,4,2            ## @SUBLANG_DEFAULT
	.no_dead_strip	_match_name_table_language
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_name_table_language
_match_name_table_language:             ; @match_name_table_language
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_GET_BE_WORD
	cmp	w0, #130
	b.eq	LBB0_8
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_12
; %bb.3:
	ldr	w0, [x20, #4]
	bl	_GET_BE_WORD
	sub	w8, w0, #131
	cmp	w8, #1
	b.hi	LBB0_12
; %bb.4:
	ldr	w0, [x20]
	bl	_GET_BE_WORD
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	cmp	x20, x19
	b.eq	LBB0_11
LBB0_5:
	mov	x0, x20
	bl	_PRIMARYLANGID
	mov	x21, x0
	mov	x0, x19
	bl	_PRIMARYLANGID
	cmp	x21, x0
	b.ne	LBB0_14
; %bb.6:
	mov	w0, #2
	b	LBB0_13
LBB0_7:
	mov	x0, x20
	bl	_get_mac_code_page
	bl	_IsValidCodePage
	cbnz	w0, LBB0_9
	b	LBB0_13
LBB0_8:
	ldr	w0, [x20, #4]
	bl	_GET_BE_WORD
	sub	w8, w0, #133
	cmp	w8, #2
	b.hi	LBB0_12
LBB0_9:
	ldr	w0, [x20]
	bl	_GET_BE_WORD
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
Lloh0:
	adrp	x21, _mac_langid_table@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mac_langid_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x0, x20
	b.ls	LBB0_12
; %bb.10:
	ldr	x8, [x21]
	ldr	x20, [x8, x20, lsl #3]
	cmp	x20, x19
	b.ne	LBB0_5
LBB0_11:
	mov	w0, #3
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
LBB0_14:
Lloh2:
	adrp	x8, _LANG_ENGLISH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LANG_ENGLISH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _SUBLANG_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUBLANG_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_MAKELANGID
	cmp	x20, x0
	cset	w0, eq
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mac_langid_table,8,3           ; @mac_langid_table
	.comm	_LANG_ENGLISH,4,2               ; @LANG_ENGLISH
	.comm	_SUBLANG_DEFAULT,4,2            ; @SUBLANG_DEFAULT
	.no_dead_strip	_match_name_table_language
.subsections_via_symbols
