	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setlocale                      ## -- Begin function setlocale
	.p2align	4, 0x90
_setlocale:                             ## @setlocale
	.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
	movq	_LC_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpl	%edi, %eax
	jg	LBB0_2
## %bb.1:
	movl	%edi, %r14d
	movq	__LC_LAST@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	cmpl	%edi, %r13d
	jle	LBB0_2
## %bb.5:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.6:
	cmpl	$2, %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jl	LBB0_10
## %bb.7:
	movl	$1, %ebx
	movq	_new_categories@GOTPCREL(%rip), %r14
	movq	_current_categories@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_strcpy
	incq	%rbx
	movq	__LC_LAST@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	cmpq	%r13, %rbx
	jl	LBB0_8
## %bb.9:
	movq	__LC_LAST@GOTPCREL(%rip), %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_LC_ALL@GOTPCREL(%rip), %rcx
LBB0_10:
	cmpb	$0, (%r15)
	movl	(%rcx), %eax
	je	LBB0_11
## %bb.20:
	movq	%r15, %rdi
	cmpl	%r14d, %eax
	jne	LBB0_21
## %bb.23:
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_36
## %bb.24:
	movq	%rax, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movzbl	2(%rbx), %eax
	incq	%rbx
	cmpb	$47, %al
	je	LBB0_25
## %bb.26:
	testb	%al, %al
	je	LBB0_2
## %bb.27:
	movl	$1, %r14d
	cmpl	$1, %r13d
	je	LBB0_42
## %bb.28:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
	movl	%ebx, %edx
	subl	%r15d, %edx
	movq	_ENCODING_LEN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_2
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_new_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	incl	%edx
	movq	%r15, %rsi
	callq	_strlcpy
	decq	%rbx
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%r15), %eax
	incq	%r15
	cmpb	$47, %al
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	incq	%r14
	movl	%eax, %ecx
	movq	%r15, %rbx
	testb	%cl, %cl
	je	LBB0_40
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$47, %cl
	je	LBB0_40
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movzbl	1(%rbx), %ecx
	incq	%rbx
	testb	%cl, %cl
	jne	LBB0_34
LBB0_40:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	(%r12), %r13d
	testb	%al, %al
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	%r13, %r14
	jne	LBB0_29
LBB0_42:
	cmpl	%r14d, %r13d
	jle	LBB0_45
## %bb.43:
	movslq	%r14d, %rbx
	movq	_new_categories@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	-8(%rax,%rbx,8), %rsi
	movq	(%rax,%rbx,8), %rdi
	callq	_strcpy
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_44
	jmp	LBB0_45
LBB0_16:
	cmpl	%r14d, %eax
	je	LBB0_56
## %bb.17:
	movq	_current_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_4
LBB0_11:
	cmpl	%r14d, %eax
	jne	LBB0_18
## %bb.12:
	cmpl	$2, %r13d
	jl	LBB0_45
## %bb.13:
	movl	$1, %ebx
	movq	_ENCODING_LEN@GOTPCREL(%rip), %r13
	movq	_new_categories@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	___get_locale_env
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	cmpl	(%r13), %eax
	jg	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_45
LBB0_21:
	callq	_strlen
	movq	_ENCODING_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_2
## %bb.22:
	movq	_new_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	jmp	LBB0_45
LBB0_18:
	movl	%r14d, %edi
	callq	___get_locale_env
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	_ENCODING_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_2
## %bb.19:
	movq	_new_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	jmp	LBB0_45
LBB0_36:
	movq	%r15, %rdi
	callq	_strlen
	movq	_ENCODING_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_37
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	cmpl	$2, (%r12)
	jl	LBB0_45
## %bb.38:
	movl	$1, %ebx
	movq	_new_categories@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_39
LBB0_45:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_57
## %bb.46:
	cmpl	$2, (%r12)
	jl	LBB0_56
## %bb.47:
	movl	$1, %ebx
	movq	_saved_categories@GOTPCREL(%rip), %r13
	movq	_current_categories@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_strcpy
	movl	%ebx, %edi
	callq	_loadlocale
	testq	%rax, %rax
	je	LBB0_49
## %bb.55:                              ##   in Loop: Header=BB0_48 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_48
LBB0_56:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_currentlocale                  ## TAILCALL
LBB0_57:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_loadlocale                     ## TAILCALL
LBB0_49:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	$-2, %ebx
	je	LBB0_54
## %bb.50:
	decq	%rbx
	movl	$1, %r14d
	movq	_new_categories@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_51 Depth=1
	incq	%r14
	decq	%rbx
	je	LBB0_54
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rsi
	callq	_strcpy
	movl	%r14d, %edi
	callq	_loadlocale
	testq	%rax, %rax
	jne	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movl	%r14d, %edi
	callq	_loadlocale
	jmp	LBB0_53
LBB0_54:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.comm	__LC_LAST,4,2                   ## @_LC_LAST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_current_categories,8,3         ## @current_categories
	.comm	_new_categories,8,3             ## @new_categories
	.comm	_ENCODING_LEN,4,2               ## @ENCODING_LEN
	.comm	_saved_categories,8,3           ## @saved_categories
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"C"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setlocale                      ; -- Begin function setlocale
	.p2align	2
_setlocale:                             ; @setlocale
	.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
Lloh0:
	adrp	x23, _LC_ALL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LC_ALL@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, __LC_LAST@GOTPAGE
Lloh3:
	ldr	x22, [x22, __LC_LAST@GOTPAGEOFF]
	ldr	w24, [x22]
	cmp	w8, w0
	ccmp	w24, w0, #4, le
	b.gt	LBB0_3
LBB0_1:
	mov	x0, #0
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
LBB0_2:
	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
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_27
; %bb.4:
	cmp	w24, #2
	b.lt	LBB0_8
; %bb.5:
	mov	w21, #1
Lloh10:
	adrp	x24, _new_categories@GOTPAGE
Lloh11:
	ldr	x24, [x24, _new_categories@GOTPAGEOFF]
Lloh12:
	adrp	x25, _current_categories@GOTPAGE
Lloh13:
	ldr	x25, [x25, _current_categories@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x9, x21, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x25]
	ldr	x1, [x8, x9]
	bl	_strcpy
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_6
; %bb.7:
	mov	x24, x8
LBB0_8:
	ldrb	w9, [x20]
	ldr	w8, [x23]
	cmp	w8, w19
	cbz	w9, LBB0_29
; %bb.9:
	mov	x0, x20
	b.ne	LBB0_35
; %bb.10:
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_44
; %bb.11:
	sub	x25, x0, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x25, #2]
	add	x25, x25, #1
	cmp	w8, #47
	b.eq	LBB0_12
; %bb.13:
	cbz	w8, LBB0_1
; %bb.14:
	mov	w21, #1
	cmp	w24, #1
	b.eq	LBB0_24
; %bb.15:
Lloh14:
	adrp	x26, _ENCODING_LEN@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ENCODING_LEN@GOTPAGEOFF]
Lloh16:
	adrp	x27, _new_categories@GOTPAGE
Lloh17:
	ldr	x27, [x27, _new_categories@GOTPAGEOFF]
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	ldr	w9, [x26]
	sub	w8, w25, w20
	cmp	w9, w8
	b.lt	LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x27]
	ldr	x0, [x9, x21, lsl #3]
	add	w2, w8, #1
	mov	x1, x20
	bl	_strlcpy
	sub	x20, x25, #1
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20, #1]!
	cmp	w8, #47
	b.eq	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	mov	x9, x8
	mov	x25, x20
	cbz	w9, LBB0_22
LBB0_20:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #47
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	ldrb	w9, [x25, #1]!
	cbnz	w9, LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w24, [x22]
	cbz	w8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x21, x24
	b.ne	LBB0_16
LBB0_24:
	cmp	w24, w21
	b.le	LBB0_37
; %bb.25:
	sxtw	x20, w21
Lloh18:
	adrp	x21, _new_categories@GOTPAGE
Lloh19:
	ldr	x21, [x21, _new_categories@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x20, lsl #3
	ldp	x1, x0, [x8, #-8]
	bl	_strcpy
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_26
	b	LBB0_37
LBB0_27:
	cmp	w8, w19
	b.eq	LBB0_42
; %bb.28:
Lloh20:
	adrp	x8, _current_categories@GOTPAGE
Lloh21:
	ldr	x8, [x8, _current_categories@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x0, [x8, w19, sxtw #3]
	b	LBB0_2
LBB0_29:
	b.ne	LBB0_34
; %bb.30:
	cmp	w24, #2
	b.lt	LBB0_37
; %bb.31:
	mov	w20, #1
Lloh23:
	adrp	x24, _ENCODING_LEN@GOTPAGE
Lloh24:
	ldr	x24, [x24, _ENCODING_LEN@GOTPAGEOFF]
Lloh25:
	adrp	x25, _new_categories@GOTPAGE
Lloh26:
	ldr	x25, [x25, _new_categories@GOTPAGEOFF]
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___get_locale_env
	mov	x21, x0
	bl	_strlen
	ldr	w8, [x24]
	cmp	w0, w8
	b.gt	LBB0_1
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [x25]
	ldr	x0, [x8, x20, lsl #3]
	mov	x1, x21
	bl	_strcpy
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_32
	b	LBB0_37
LBB0_34:
	mov	x0, x19
	bl	___get_locale_env
	mov	x20, x0
LBB0_35:
	bl	_strlen
Lloh27:
	adrp	x8, _ENCODING_LEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENCODING_LEN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_1
; %bb.36:
Lloh30:
	adrp	x8, _new_categories@GOTPAGE
Lloh31:
	ldr	x8, [x8, _new_categories@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x0, [x8, w19, sxtw #3]
	mov	x1, x20
	bl	_strcpy
LBB0_37:
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_43
; %bb.38:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_42
; %bb.39:
	mov	w19, #1
Lloh33:
	adrp	x21, _saved_categories@GOTPAGE
Lloh34:
	ldr	x21, [x21, _saved_categories@GOTPAGEOFF]
Lloh35:
	adrp	x20, _current_categories@GOTPAGE
Lloh36:
	ldr	x20, [x20, _current_categories@GOTPAGEOFF]
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	x9, x19, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x1, [x8, x9]
	bl	_strcpy
	mov	x0, x19
	bl	_loadlocale
	cbz	x0, LBB0_48
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x22]
	cmp	x19, x8
	b.lt	LBB0_40
LBB0_42:
	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
	b	_currentlocale
LBB0_43:
	mov	x0, x19
	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
	b	_loadlocale
LBB0_44:
	mov	x0, x20
	bl	_strlen
Lloh37:
	adrp	x8, _ENCODING_LEN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENCODING_LEN@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_1
; %bb.45:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_37
; %bb.46:
	mov	w21, #1
Lloh40:
	adrp	x24, _new_categories@GOTPAGE
Lloh41:
	ldr	x24, [x24, _new_categories@GOTPAGEOFF]
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x0, [x8, x21, lsl #3]
	mov	x1, x20
	bl	_strcpy
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_47
	b	LBB0_37
LBB0_48:
Lloh42:
	adrp	x22, _errno@GOTPAGE
Lloh43:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
	and	x8, x19, #0xfffffffe
	cbz	x8, LBB0_53
; %bb.49:
	sub	x24, x19, #1
	mov	w19, #1
Lloh44:
	adrp	x25, _new_categories@GOTPAGE
Lloh45:
	ldr	x25, [x25, _new_categories@GOTPAGEOFF]
Lloh46:
	adrp	x20, l_.str@PAGE
Lloh47:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	add	x19, x19, #1
	subs	x24, x24, #1
	b.eq	LBB0_53
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	lsl	x9, x19, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x21]
	ldr	x1, [x8, x9]
	bl	_strcpy
	mov	x0, x19
	bl	_loadlocale
	cbnz	x0, LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	ldr	x8, [x25]
	ldr	x0, [x8, x19, lsl #3]
	mov	x1, x20
	bl	_strcpy
	mov	x0, x19
	bl	_loadlocale
	b	LBB0_50
LBB0_53:
	mov	x0, #0
	str	w23, [x22]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.comm	__LC_LAST,4,2                   ; @_LC_LAST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_current_categories,8,3         ; @current_categories
	.comm	_new_categories,8,3             ; @new_categories
	.comm	_ENCODING_LEN,4,2               ; @ENCODING_LEN
	.comm	_saved_categories,8,3           ; @saved_categories
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"C"

.subsections_via_symbols
