	.file	"extr_c_locale_win32.c__Locale_monetary_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_Locale_monetary_create
	.type	_Locale_monetary_create, @function
_Locale_monetary_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, 88
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	xor	esi, esi
	mov	edx, 88
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR 56[r12]
	mov	rcx, r13
	mov	rdi, rbp
	lea	rsi, 64[r12]
	call	__GetLCIDFromName@PLT
	cmp	eax, -1
	je	.L10
	mov	rdi, QWORD PTR 64[r12]
	cmp	rdi, QWORD PTR INVARIANT_LCID[rip]
	jne	.L11
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r13, rsp
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rcx, QWORD PTR [r12]
	mov	esi, DWORD PTR 56[r12]
	push	6
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR LOCALE_SDECIMAL[rip]
	mov	r9, r13
	mov	r8d, 4
	call	__GetLocaleInfoUsingACP@PLT
	mov	rcx, QWORD PTR 8[r12]
	mov	esi, DWORD PTR 56[r12]
	mov	r9, r13
	mov	rdi, QWORD PTR 64[r12]
	mov	edx, DWORD PTR LOCALE_STHOUSAND[rip]
	mov	r8d, 4
	mov	DWORD PTR [rsp], 6
	call	__GetLocaleInfoUsingACP@PLT
	mov	esi, DWORD PTR LOCALE_SGROUPING[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, QWORD PTR 64[r12]
	call	GetLocaleInfoA@PLT
	mov	edi, eax
	mov	r14d, eax
	call	malloc@PLT
	pop	rsi
	.cfi_def_cfa_offset 104
	pop	rdi
	.cfi_def_cfa_offset 96
	mov	rbp, rax
	test	rax, rax
	jne	.L5
	mov	QWORD PTR 16[r12], 0
.L8:
	mov	eax, DWORD PTR _STLP_LOC_NO_MEMORY[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR LOCALE_SGROUPING[rip]
	mov	rdi, QWORD PTR 64[r12]
	mov	ecx, r14d
	mov	rdx, rax
	call	GetLocaleInfoA@PLT
	mov	rdi, rbp
	call	__FixGrouping@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	QWORD PTR 16[r12], rbp
	mov	rcx, QWORD PTR 24[r12]
	mov	esi, DWORD PTR 56[r12]
	mov	rdi, QWORD PTR 64[r12]
	push	6
	.cfi_def_cfa_offset 112
	mov	r9, r13
	mov	edx, DWORD PTR LOCALE_SCURRENCY[rip]
	mov	r8d, 6
	call	__GetLocaleInfoUsingACP@PLT
	mov	rcx, QWORD PTR 32[r12]
	mov	esi, DWORD PTR 56[r12]
	mov	r9, r13
	mov	rdi, QWORD PTR 64[r12]
	mov	edx, DWORD PTR LOCALE_SNEGATIVESIGN[rip]
	mov	r8d, 5
	mov	DWORD PTR [rsp], 6
	lea	rbp, 53[rsp]
	call	__GetLocaleInfoUsingACP@PLT
	mov	rcx, QWORD PTR 40[r12]
	mov	esi, DWORD PTR 56[r12]
	mov	r9, r13
	mov	rdi, QWORD PTR 64[r12]
	mov	edx, DWORD PTR LOCALE_SPOSITIVESIGN[rip]
	mov	r8d, 5
	mov	DWORD PTR [rsp], 6
	call	__GetLocaleInfoUsingACP@PLT
	mov	esi, DWORD PTR LOCALE_ICURRDIGITS[rip]
	mov	rdi, QWORD PTR 64[r12]
	mov	rdx, rbp
	mov	ecx, 3
	call	GetLocaleInfoA@PLT
	mov	rdi, rbp
	call	atoi@PLT
	mov	esi, DWORD PTR LOCALE_IINTLCURRDIGITS[rip]
	mov	rdi, QWORD PTR 64[r12]
	mov	rdx, rbp
	mov	QWORD PTR 80[r12], rax
	mov	ecx, 3
	call	GetLocaleInfoA@PLT
	mov	rdi, rbp
	call	atoi@PLT
	mov	rcx, QWORD PTR 48[r12]
	mov	esi, DWORD PTR 56[r12]
	mov	r9, r13
	mov	QWORD PTR 72[r12], rax
	mov	rdi, QWORD PTR 64[r12]
	mov	r8d, 5
	mov	edx, DWORD PTR LOCALE_SINTLSYMBOL[rip]
	mov	DWORD PTR [rsp], 6
	call	__GetLocaleInfoUsingACP@PLT
	mov	rax, QWORD PTR 48[r12]
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	cmp	BYTE PTR 3[rax], 0
	jne	.L1
	mov	BYTE PTR 3[rax], 32
	mov	rax, QWORD PTR 48[r12]
	mov	BYTE PTR 4[rax], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	mov	eax, DWORD PTR _STLP_LOC_UNKNOWN_NAME[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_Locale_monetary_create, .-_Locale_monetary_create
	.comm	_STLP_LOC_UNKNOWN_NAME,4,4
	.comm	_STLP_LOC_NO_MEMORY,4,4
	.comm	LOCALE_STHOUSAND,4,4
	.comm	LOCALE_SPOSITIVESIGN,4,4
	.comm	LOCALE_SNEGATIVESIGN,4,4
	.comm	LOCALE_SINTLSYMBOL,4,4
	.comm	LOCALE_SGROUPING,4,4
	.comm	LOCALE_SDECIMAL,4,4
	.comm	LOCALE_SCURRENCY,4,4
	.comm	LOCALE_IINTLCURRDIGITS,4,4
	.comm	LOCALE_ICURRDIGITS,4,4
	.comm	INVARIANT_LCID,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_c_locale_win32.c__Locale_monetary_create.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_Locale_monetary_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	_Locale_monetary_create, %function
_Locale_monetary_create:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L13
	sub	sp, sp, #48
	mov	r5, r0
	mov	r0, #44
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r8, r2
	mov	r6, r1
	bl	malloc
	subs	r4, r0, #0
	ldreq	r3, .L13+4
	ldreq	r3, [r3]
	streq	r3, [r8]
	beq	.L1
	mov	r2, #44
	mov	r1, #0
	bl	memset
	mov	r3, r6
	mov	r0, r5
	mov	r2, #0
	add	r1, r4, #32
	bl	__GetLCIDFromName
	cmn	r0, #1
	beq	.L9
	ldr	r3, .L13+8
	ldr	r0, [r4, #32]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L10
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r6, #4
	mov	r5, #6
	ldr	r2, .L13+12
	ldr	r3, [r4]
	ldr	r1, [r4, #28]
	add	r7, sp, #16
	str	r6, [sp]
	str	r5, [sp, #8]
	ldr	r2, [r2]
	str	r7, [sp, #4]
	bl	__GetLocaleInfoUsingACP
	ldr	r2, .L13+16
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #28]
	ldr	r0, [r4, #32]
	str	r6, [sp]
	str	r5, [sp, #8]
	str	r7, [sp, #4]
	ldr	r2, [r2]
	bl	__GetLocaleInfoUsingACP
	mov	r3, #0
	ldr	r10, .L13+20
	mov	r2, r3
	ldr	r1, [r10]
	ldr	r0, [r4, #32]
	bl	GetLocaleInfoA
	mov	r9, r0
	bl	malloc
	subs	r6, r0, #0
	beq	.L12
	mov	r8, #5
	mov	r3, r9
	mov	r2, r6
	ldr	r1, [r10]
	ldr	r0, [r4, #32]
	bl	GetLocaleInfoA
	mov	r0, r6
	bl	__FixGrouping
	ldr	r2, .L13+24
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #28]
	ldr	r2, [r2]
	ldr	r0, [r4, #32]
	str	r6, [r4, #8]
	stm	sp, {r5, r7}
	str	r5, [sp, #8]
	bl	__GetLocaleInfoUsingACP
	ldr	r2, .L13+28
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #28]
	ldr	r0, [r4, #32]
	str	r8, [sp]
	str	r5, [sp, #8]
	str	r7, [sp, #4]
	ldr	r2, [r2]
	bl	__GetLocaleInfoUsingACP
	ldr	r2, .L13+32
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #28]
	ldr	r0, [r4, #32]
	str	r8, [sp]
	str	r5, [sp, #8]
	str	r7, [sp, #4]
	ldr	r2, [r2]
	bl	__GetLocaleInfoUsingACP
	ldr	r3, .L13+36
	add	r2, sp, #40
	ldr	r1, [r3]
	ldr	r0, [r4, #32]
	mov	r3, #3
	bl	GetLocaleInfoA
	add	r0, sp, #40
	bl	atoi
	ldr	r3, .L13+40
	add	r2, sp, #40
	ldr	r1, [r3]
	str	r0, [r4, #40]
	mov	r3, #3
	ldr	r0, [r4, #32]
	bl	GetLocaleInfoA
	add	r0, sp, #40
	bl	atoi
	mov	ip, r0
	ldr	r2, .L13+44
	ldr	r1, [r4, #28]
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #32]
	str	ip, [r4, #36]
	str	r8, [sp]
	str	r5, [sp, #8]
	str	r7, [sp, #4]
	ldr	r2, [r2]
	bl	__GetLocaleInfoUsingACP
	ldr	r2, [r4, #24]
	ldrb	r3, [r2, #3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r1, #32
	strbeq	r1, [r2, #3]
	ldreq	r2, [r4, #24]
	strbeq	r3, [r2, #4]
	b	.L1
.L9:
	mov	r0, r4
	bl	free
	ldr	r3, .L13+48
	mov	r4, #0
	ldr	r3, [r3]
	str	r3, [r8]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L12:
	ldr	r3, .L13+4
	str	r6, [r4, #8]
	ldr	r3, [r3]
	str	r3, [r8]
	b	.L1
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	_STLP_LOC_NO_MEMORY
	.word	INVARIANT_LCID
	.word	LOCALE_SDECIMAL
	.word	LOCALE_STHOUSAND
	.word	LOCALE_SGROUPING
	.word	LOCALE_SCURRENCY
	.word	LOCALE_SNEGATIVESIGN
	.word	LOCALE_SPOSITIVESIGN
	.word	LOCALE_ICURRDIGITS
	.word	LOCALE_IINTLCURRDIGITS
	.word	LOCALE_SINTLSYMBOL
	.word	_STLP_LOC_UNKNOWN_NAME
	.size	_Locale_monetary_create, .-_Locale_monetary_create
	.comm	_STLP_LOC_UNKNOWN_NAME,4,4
	.comm	_STLP_LOC_NO_MEMORY,4,4
	.comm	LOCALE_STHOUSAND,4,4
	.comm	LOCALE_SPOSITIVESIGN,4,4
	.comm	LOCALE_SNEGATIVESIGN,4,4
	.comm	LOCALE_SINTLSYMBOL,4,4
	.comm	LOCALE_SGROUPING,4,4
	.comm	LOCALE_SDECIMAL,4,4
	.comm	LOCALE_SCURRENCY,4,4
	.comm	LOCALE_IINTLCURRDIGITS,4,4
	.comm	LOCALE_ICURRDIGITS,4,4
	.comm	INVARIANT_LCID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
