	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_locale
_set_locale:                            ## @set_locale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	movq	_PACKAGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_LOCALEDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bindtextdomain
	movl	(%rbx), %edi
	callq	_textdomain
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_LC_CTYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	_LC_CTYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	%rax, %rsi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_setlocale                      ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_PACKAGE,4,2                    ## @PACKAGE
	.comm	_LOCALEDIR,4,2                  ## @LOCALEDIR
L_.str.1:                               ## @.str.1
	.asciz	"LC_CTYPE"

	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
L_.str.2:                               ## @.str.2
	.asciz	"LC_ALL"

	.no_dead_strip	_set_locale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_locale
_set_locale:                            ; @set_locale
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
Lloh5:
	adrp	x19, _PACKAGE@GOTPAGE
Lloh6:
	ldr	x19, [x19, _PACKAGE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _LOCALEDIR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOCALEDIR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_bindtextdomain
	ldr	w0, [x19]
	bl	_textdomain
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh12:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	mov	x1, x0
Lloh17:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	cbnz	x1, LBB0_4
; %bb.3:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setlocale
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_PACKAGE,4,2                    ; @PACKAGE
	.comm	_LOCALEDIR,4,2                  ; @LOCALEDIR
l_.str.1:                               ; @.str.1
	.asciz	"LC_CTYPE"

	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
l_.str.2:                               ; @.str.2
	.asciz	"LC_ALL"

	.no_dead_strip	_set_locale
.subsections_via_symbols
