	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loadlocale
_loadlocale:                            ## @loadlocale
	.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
	movl	%edi, %r15d
	movq	_new_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_current_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %r14
	cmpb	$46, (%rbx)
	jne	LBB0_4
## %bb.1:
	movb	1(%rbx), %al
	testb	%al, %al
	je	LBB0_5
## %bb.2:
	cmpb	$46, %al
	jne	LBB0_4
## %bb.3:
	cmpb	$0, 2(%rbx)
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	xorl	%eax, %eax
	callq	___detect_path_locale
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_8:
	movl	%r13d, (%r12)
	leal	-128(%r15), %r13d
	cmpl	$6, %r13d
	jae	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movslq	%r13d, %rax
	leaq	l_switch.table.loadlocale(%rip), %rcx
	movq	%rbx, %rdi
	callq	*(%rcx,%rax,8)
	movq	__LDP_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	___xlocale_global_locale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decl	%r15d
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%r14d, %r14d
LBB0_14:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_new_categories,8,3             ## @new_categories
	.comm	_current_categories,8,3         ## @current_categories
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	__LDP_ERROR,4,2                 ## @_LDP_ERROR
	.comm	___xlocale_global_locale,8,3    ## @__xlocale_global_locale
	.no_dead_strip	_loadlocale
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.loadlocale
l_switch.table.loadlocale:
	.quad	___time_load_locale
	.quad	___numeric_load_locale
	.quad	___monetary_load_locale
	.quad	___messages_load_locale
	.quad	___wrap_setrunelocale
	.quad	___collate_load_tables

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loadlocale
_loadlocale:                            ; @loadlocale
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _new_categories@GOTPAGE
Lloh1:
	ldr	x8, [x8, _new_categories@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x9, x21, #3, #32
	ldr	x20, [x8, x9]
Lloh3:
	adrp	x8, _current_categories@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_categories@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x19, [x8, x9]
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_4
; %bb.1:
	ldrb	w8, [x20, #1]
	cbz	w8, LBB0_5
; %bb.2:
	cmp	w8, #46
	b.ne	LBB0_4
; %bb.3:
	ldrb	w8, [x20, #2]
	cbz	w8, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_6
LBB0_5:
	mov	x19, #0
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	b	LBB0_13
LBB0_6:
Lloh12:
	adrp	x22, _errno@GOTPAGE
Lloh13:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
	bl	___detect_path_locale
	str	w0, [x22]
	cbz	w0, LBB0_8
LBB0_7:
	mov	x19, #0
	b	LBB0_13
LBB0_8:
	str	w23, [x22]
	sub	w23, w21, #128
	cmp	w23, #6
	b.hs	LBB0_12
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.10:
Lloh14:
	adrp	x8, l_switch.table.loadlocale@PAGE
Lloh15:
	add	x8, x8, l_switch.table.loadlocale@PAGEOFF
	ldr	x8, [x8, w23, sxtw #3]
	mov	x0, x20
	blr	x8
Lloh16:
	adrp	x8, __LDP_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, __LDP_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_strcpy
Lloh19:
	adrp	x8, ___xlocale_global_locale@GOTPAGE
Lloh20:
	ldr	x8, [x8, ___xlocale_global_locale@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	sub	w9, w21, #1
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x0, [x8]
	mov	x1, x20
	bl	_strcpy
	b	LBB0_13
LBB0_12:
	mov	x19, #0
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_new_categories,8,3             ; @new_categories
	.comm	_current_categories,8,3         ; @current_categories
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	__LDP_ERROR,4,2                 ; @_LDP_ERROR
	.comm	___xlocale_global_locale,8,3    ; @__xlocale_global_locale
	.no_dead_strip	_loadlocale
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.loadlocale
l_switch.table.loadlocale:
	.quad	___time_load_locale
	.quad	___numeric_load_locale
	.quad	___monetary_load_locale
	.quad	___messages_load_locale
	.quad	___wrap_setrunelocale
	.quad	___collate_load_tables

.subsections_via_symbols
