	.file	"extr_winefile.c_format_date.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	format_date, @function
format_date:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	BYTE PTR [rsi], 0
	mov	edx, DWORD PTR 4[rdi]
	test	edx, edx
	jne	.L2
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L1
.L2:
	lea	r12, 16[rsp]
	mov	rsi, r12
	call	FileTimeToLocalFileTime@PLT
	test	eax, eax
	je	.L6
	lea	r13, 12[rsp]
	mov	rdi, r12
	mov	rsi, r13
	call	FileTimeToSystemTime@PLT
	test	eax, eax
	je	.L6
	test	DWORD PTR COL_DATE[rip], ebx
	jne	.L7
	test	DWORD PTR COL_TIME[rip], ebx
	je	.L1
	mov	rdx, rbp
	mov	r8d, 1
	mov	eax, 1
.L8:
	mov	BYTE PTR [rdx], 32
	mov	r9, QWORD PTR BUFFER_LEN[rip]
	add	rbp, r8
	xor	ecx, ecx
	mov	edi, DWORD PTR LOCALE_USER_DEFAULT[rip]
	xor	esi, esi
	mov	r8, rbp
	mov	rdx, r13
	sub	r9, rax
	call	GetTimeFormatW@PLT
	test	eax, eax
	jne	.L1
	mov	BYTE PTR 0[rbp], 0
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR sQMarks[rip]
	mov	rdi, rbp
	call	lstrcpyW@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r9, QWORD PTR BUFFER_LEN[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	r8, rbp
	mov	edi, DWORD PTR LOCALE_USER_DEFAULT[rip]
	mov	rdx, r13
	call	GetDateFormatW@PLT
	test	eax, eax
	je	.L6
	test	DWORD PTR COL_TIME[rip], ebx
	je	.L1
	movsx	rdx, eax
	add	eax, 1
	cdqe
	mov	BYTE PTR -1[rbp+rdx], 32
	add	rdx, rbp
	mov	r8, rax
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	format_date, .-format_date
	.comm	sQMarks,4,4
	.comm	LOCALE_USER_DEFAULT,4,4
	.comm	COL_TIME,4,4
	.comm	COL_DATE,4,4
	.comm	BUFFER_LEN,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_winefile.c_format_date.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	format_date, %function
format_date:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r3, #0
	mov	r4, r1
	ldr	r1, .L26
	sub	sp, sp, #28
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	strb	r3, [r4]
	ldr	r3, [r0, #4]
	mov	r5, r2
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L1
.L2:
	add	r1, sp, #12
	bl	FileTimeToLocalFileTime
	cmp	r0, #0
	beq	.L6
	add	r0, sp, #12
	add	r1, sp, #8
	bl	FileTimeToSystemTime
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L26+4
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L7
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L1
	mov	r0, #1
	mov	r2, r4
	mov	r5, r0
	ldr	r6, .L26+12
	ldr	r7, .L26+16
.L8:
	mov	r1, #32
	mov	r3, #0
	strb	r1, [r2]
	ldr	r2, [r7]
	add	ip, r4, r5
	sub	r0, r2, r0
	str	r0, [sp, #4]
	mov	r1, r3
	ldr	r0, [r6]
	add	r2, sp, #8
	str	ip, [sp]
	bl	GetTimeFormatW
	cmp	r0, #0
	strbeq	r0, [r4, r5]
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r3, .L26+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	lstrcpyW
	b	.L1
.L7:
	mov	r3, #0
	ldr	r7, .L26+16
	ldr	r6, .L26+12
	ldr	r2, [r7]
	mov	r1, r3
	str	r2, [sp, #4]
	ldr	r0, [r6]
	str	r4, [sp]
	add	r2, sp, #8
	bl	GetDateFormatW
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L1
	mov	r3, #32
	add	r2, r4, r0
	add	r0, r0, #1
	mov	r5, r0
	strb	r3, [r2, #-1]
	b	.L8
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	COL_DATE
	.word	COL_TIME
	.word	LOCALE_USER_DEFAULT
	.word	BUFFER_LEN
	.word	sQMarks
	.size	format_date, .-format_date
	.comm	sQMarks,4,4
	.comm	LOCALE_USER_DEFAULT,4,4
	.comm	COL_TIME,4,4
	.comm	COL_DATE,4,4
	.comm	BUFFER_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
