	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	xorl	%eax, %eax
	callq	_localeconv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	12(%rax), %esi
	movq	_symbol_decimal_point@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	callq	_conv_mbtowc
	movl	8(%rbx), %esi
	movq	_symbol_thousands_sep@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	callq	_conv_mbtowc
	movl	4(%rbx), %esi
	movq	_symbol_positive_sign@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	callq	_conv_mbtowc
	movl	(%rbx), %esi
	movq	_symbol_negative_sign@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	callq	_conv_mbtowc
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_gnusort_numeric_compatibility@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	movq	_LC_COLLATE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rdi
	callq	_sort_strdup
	movq	%rax, %rbx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movq	_byte_sort@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_10:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_setlocale
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sort_free                      ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_symbol_decimal_point,4,2       ## @symbol_decimal_point
	.comm	_symbol_thousands_sep,4,2       ## @symbol_thousands_sep
	.comm	_symbol_positive_sign,4,2       ## @symbol_positive_sign
	.comm	_symbol_negative_sign,4,2       ## @symbol_negative_sign
L_.str.1:                               ## @.str.1
	.asciz	"GNUSORT_NUMERIC_COMPATIBILITY"

	.comm	_gnusort_numeric_compatibility,4,2 ## @gnusort_numeric_compatibility
	.comm	_LC_COLLATE,4,2                 ## @LC_COLLATE
L_.str.2:                               ## @.str.2
	.asciz	"C"

	.comm	_byte_sort,4,2                  ## @byte_sort
L_.str.3:                               ## @.str.3
	.asciz	"POSIX"

	.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
	bl	_localeconv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w1, [x0, #12]
Lloh5:
	adrp	x0, _symbol_decimal_point@GOTPAGE
Lloh6:
	ldr	x0, [x0, _symbol_decimal_point@GOTPAGEOFF]
	ldr	w2, [x0]
	bl	_conv_mbtowc
	ldr	w1, [x19, #8]
Lloh7:
	adrp	x0, _symbol_thousands_sep@GOTPAGE
Lloh8:
	ldr	x0, [x0, _symbol_thousands_sep@GOTPAGEOFF]
	ldr	w2, [x0]
	bl	_conv_mbtowc
	ldr	w1, [x19, #4]
Lloh9:
	adrp	x0, _symbol_positive_sign@GOTPAGE
Lloh10:
	ldr	x0, [x0, _symbol_positive_sign@GOTPAGEOFF]
	ldr	w2, [x0]
	bl	_conv_mbtowc
	ldr	w1, [x19]
Lloh11:
	adrp	x0, _symbol_negative_sign@GOTPAGE
Lloh12:
	ldr	x0, [x0, _symbol_negative_sign@GOTPAGEOFF]
	ldr	w2, [x0]
	bl	_conv_mbtowc
LBB0_2:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _gnusort_numeric_compatibility@GOTPAGE
Lloh16:
	ldr	x8, [x8, _gnusort_numeric_compatibility@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
LBB0_4:
Lloh18:
	adrp	x20, _LC_COLLATE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _LC_COLLATE@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, #0
	bl	_setlocale
	cbz	x0, LBB0_11
; %bb.5:
	bl	_sort_strdup
	mov	x19, x0
	ldr	w0, [x20]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_setlocale
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_9
LBB0_7:
	ldr	w0, [x20]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_setlocale
	cbz	x0, LBB0_10
; %bb.8:
	mov	x1, x19
	bl	_strcmp
	cbnz	w0, LBB0_10
LBB0_9:
Lloh24:
	adrp	x8, _byte_sort@GOTPAGE
Lloh25:
	ldr	x8, [x8, _byte_sort@GOTPAGEOFF]
	mov	w9, #1
Lloh26:
	str	w9, [x8]
LBB0_10:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_setlocale
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sort_free
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_symbol_decimal_point,4,2       ; @symbol_decimal_point
	.comm	_symbol_thousands_sep,4,2       ; @symbol_thousands_sep
	.comm	_symbol_positive_sign,4,2       ; @symbol_positive_sign
	.comm	_symbol_negative_sign,4,2       ; @symbol_negative_sign
l_.str.1:                               ; @.str.1
	.asciz	"GNUSORT_NUMERIC_COMPATIBILITY"

	.comm	_gnusort_numeric_compatibility,4,2 ; @gnusort_numeric_compatibility
	.comm	_LC_COLLATE,4,2                 ; @LC_COLLATE
l_.str.2:                               ; @.str.2
	.asciz	"C"

	.comm	_byte_sort,4,2                  ; @byte_sort
l_.str.3:                               ; @.str.3
	.asciz	"POSIX"

	.no_dead_strip	_set_locale
.subsections_via_symbols
