	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function os_setlocale
_os_setlocale:                          ## @os_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_luaL_optstring
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdx
	leaq	_os_setlocale.catnames(%rip), %rcx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_checkoption
	cltq
	leaq	_os_setlocale.cat(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	%r14, %rsi
	callq	_setlocale
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_pushstring
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @os_setlocale.cat
_os_setlocale.cat:
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.section	__DATA,__const
	.p2align	4                               ## @os_setlocale.catnames
_os_setlocale.catnames:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"all"

L_.str.1:                               ## @.str.1
	.asciz	"collate"

L_.str.2:                               ## @.str.2
	.asciz	"ctype"

L_.str.3:                               ## @.str.3
	.asciz	"monetary"

L_.str.4:                               ## @.str.4
	.asciz	"numeric"

L_.str.5:                               ## @.str.5
	.asciz	"time"

	.no_dead_strip	_os_setlocale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function os_setlocale
_os_setlocale:                          ; @os_setlocale
	.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
	mov	x19, x0
	mov	w1, #1
	mov	x2, #0
	bl	_luaL_optstring
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
Lloh2:
	adrp	x3, _os_setlocale.catnames@PAGE
Lloh3:
	add	x3, x3, _os_setlocale.catnames@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checkoption
Lloh4:
	adrp	x8, _os_setlocale.cat@PAGE
Lloh5:
	add	x8, x8, _os_setlocale.cat@PAGEOFF
	ldr	w0, [x8, w0, sxtw #2]
	mov	x1, x20
	bl	_setlocale
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushstring
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @os_setlocale.cat
_os_setlocale.cat:
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.section	__DATA,__const
	.p2align	3                               ; @os_setlocale.catnames
_os_setlocale.catnames:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all"

l_.str.1:                               ; @.str.1
	.asciz	"collate"

l_.str.2:                               ; @.str.2
	.asciz	"ctype"

l_.str.3:                               ; @.str.3
	.asciz	"monetary"

l_.str.4:                               ; @.str.4
	.asciz	"numeric"

l_.str.5:                               ; @.str.5
	.asciz	"time"

	.no_dead_strip	_os_setlocale
.subsections_via_symbols
