	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bltinsetlocale                 ## -- Begin function bltinsetlocale
	.p2align	4, 0x90
_bltinsetlocale:                        ## @bltinsetlocale
	.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	_cmdenviron@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_localevar
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_bltinlookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_LC_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_setlocale
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_updatecharset                  ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_bltinlookup
	movq	%rax, %r15
	movq	_locale_names@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	movq	_locale_categories@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rax
	movq	8(%rax,%rbx,2), %rdi
	addq	$4, %rbx
	testq	%rdi, %rdi
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	callq	_bltinlookup
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rsi
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_setlocale
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdenviron,8,3                 ## @cmdenviron
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LC_ALL"

	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.comm	_INTON,4,2                      ## @INTON
L_.str.1:                               ## @.str.1
	.asciz	"LANG"

	.comm	_locale_names,8,3               ## @locale_names
	.comm	_locale_categories,8,3          ## @locale_categories
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bltinsetlocale                 ; -- Begin function bltinsetlocale
	.p2align	2
_bltinsetlocale:                        ; @bltinsetlocale
	.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
Lloh0:
	adrp	x19, _cmdenviron@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cmdenviron@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_localevar
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	cmp	x20, x9
	b.lt	LBB0_3
LBB0_5:
	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
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_bltinlookup
	mov	x1, x0
	cbz	x0, LBB0_9
; %bb.7:
Lloh4:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_setlocale
LBB0_8:
	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
	b	_updatecharset
LBB0_9:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_bltinlookup
	mov	x19, x0
Lloh9:
	adrp	x20, _locale_names@GOTPAGE
Lloh10:
	ldr	x20, [x20, _locale_names@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.10:
	mov	x21, #0
	mov	w22, #8
Lloh11:
	adrp	x23, _locale_categories@GOTPAGE
Lloh12:
	ldr	x23, [x23, _locale_categories@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x22]
	add	x21, x21, #4
	add	x22, x22, #8
	cbz	x0, LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w1, #0
	bl	_bltinlookup
	cmp	x0, #0
	csel	x1, x19, x0, eq
	cbz	x1, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x21]
	bl	_setlocale
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdenviron,8,3                 ; @cmdenviron
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LC_ALL"

	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.comm	_INTON,4,2                      ; @INTON
l_.str.1:                               ; @.str.1
	.asciz	"LANG"

	.comm	_locale_names,8,3               ; @locale_names
	.comm	_locale_categories,8,3          ; @locale_categories
.subsections_via_symbols
