	.file	"extr_formatting.c_parse_format.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-./,':; "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"invalid datetime format separator: \"%s\""
	.text
	.p2align 4
	.type	parse_format, @function
parse_format:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	BYTE PTR [rsi], 0
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], r8
	je	.L2
	mov	ebp, r9d
	mov	r14, rsi
	mov	r13, rcx
	mov	r12d, ebp
	and	r12d, DWORD PTR DCH_FLAG[rip]
	jne	.L53
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	BYTE PTR [r14], 0
	jne	.L54
.L2:
	mov	rax, QWORD PTR NODE_TYPE_END[rip]
	mov	DWORD PTR [rbx], 0
	mov	QWORD PTR 16[rbx], rax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r14
	call	index_seq_search@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L5
	mov	rdx, QWORD PTR NODE_TYPE_ACTION[rip]
	add	r14, QWORD PTR [rax]
	mov	DWORD PTR [rbx], r12d
	mov	r12, r14
	mov	QWORD PTR 16[rbx], rdx
	test	DWORD PTR NUM_FLAG[rip], ebp
	jne	.L55
.L6:
	movzx	eax, BYTE PTR [r12]
	test	DWORD PTR DCH_FLAG[rip], ebp
	je	.L7
	test	al, al
	jne	.L8
	add	rbx, 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movsx	esi, BYTE PTR [r14]
	test	sil, sil
	je	.L2
	test	DWORD PTR STD_FLAG[rip], ebp
	jne	.L56
	cmp	sil, 34
	je	.L57
	cmp	sil, 92
	jne	.L20
	xor	eax, eax
	cmp	BYTE PTR 1[r14], 34
	sete	al
	add	r14, rax
.L20:
	mov	rdi, r14
	call	pg_mblen@PLT
	movsx	r12, eax
	test	DWORD PTR DCH_FLAG[rip], ebp
	je	.L21
	mov	rdi, r14
	call	is_separator_char@PLT
	test	rax, rax
	jne	.L58
.L21:
	movzx	edi, BYTE PTR [r14]
	call	isspace@PLT
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR NODE_TYPE_SPACE[rip]
	mov	QWORD PTR 16[rbx], rax
.L22:
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, r14
	mov	edx, r12d
	add	r14, r12
	add	rbx, 32
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbx]
	mov	BYTE PTR [rax+r12], 0
	mov	QWORD PTR -8[rbx], 0
	mov	DWORD PTR -32[rbx], 0
	movzx	eax, BYTE PTR [r14]
.L11:
	test	al, al
	je	.L2
	mov	r12d, ebp
	and	r12d, DWORD PTR DCH_FLAG[rip]
	je	.L3
.L53:
	mov	edx, DWORD PTR SUFFTYPE_PREFIX[rip]
	mov	rsi, r13
	mov	rdi, r14
	xor	r12d, r12d
	call	suff_search@PLT
	test	rax, rax
	je	.L3
	mov	r12d, DWORD PTR [rax]
	add	r14, QWORD PTR 8[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR SUFFTYPE_POSTFIX[rip]
	mov	rsi, r13
	mov	rdi, r12
	call	suff_search@PLT
	test	rax, rax
	je	.L59
	mov	r10, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	or	DWORD PTR [rbx], edx
	add	r10, r12
	movzx	eax, BYTE PTR [r10]
	mov	r14, r10
	.p2align 4,,10
	.p2align 3
.L7:
	add	rbx, 32
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L56:
	lea	rdi, .LC0[rip]
	call	strchr@PLT
	test	rax, rax
	je	.L60
.L13:
	cmp	BYTE PTR [r14], 32
	mov	rax, QWORD PTR NODE_TYPE_SEPARATOR[rip]
	jne	.L15
	mov	rax, QWORD PTR NODE_TYPE_SPACE[rip]
.L15:
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 8[rbx]
	add	r14, 1
	add	rbx, 32
	movzx	edx, BYTE PTR -1[r14]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbx]
	mov	BYTE PTR 1[rax], 0
	mov	QWORD PTR -8[rbx], 0
	mov	DWORD PTR -32[rbx], 0
	movzx	eax, BYTE PTR [r14]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR NODE_TYPE_CHAR[rip]
	mov	QWORD PTR 16[rbx], rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L55:
	mov	rdi, QWORD PTR 80[rsp]
	mov	rsi, rbx
	call	NUMDesc_prepare@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rax, QWORD PTR NODE_TYPE_SEPARATOR[rip]
	mov	QWORD PTR 16[rbx], rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L57:
	movzx	eax, BYTE PTR 1[r14]
	lea	r15, 1[r14]
	test	al, al
	jne	.L19
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	al, 92
	jne	.L18
	cmp	BYTE PTR 1[r15], 1
	sbb	r15, -1
.L18:
	mov	rdi, r15
	add	rbx, 32
	call	pg_mblen@PLT
	mov	rdi, QWORD PTR -24[rbx]
	mov	rsi, r15
	movsx	r12, eax
	mov	rax, QWORD PTR NODE_TYPE_CHAR[rip]
	mov	edx, r12d
	add	r15, r12
	mov	QWORD PTR -16[rbx], rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbx]
	mov	BYTE PTR [rax+r12], 0
	mov	QWORD PTR -8[rbx], 0
	mov	DWORD PTR -32[rbx], 0
	movzx	eax, BYTE PTR [r15]
	test	al, al
	je	.L2
.L19:
	cmp	al, 34
	jne	.L17
	movzx	eax, BYTE PTR 1[r15]
	lea	r14, 1[r15]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L60:
	mov	edi, DWORD PTR ERRCODE_INVALID_DATETIME_FORMAT[rip]
	call	errcode@PLT
	mov	rdi, r14
	call	pg_mblen@PLT
	mov	rdi, r14
	mov	esi, eax
	call	pnstrdup@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L59:
	movzx	eax, BYTE PTR [r12]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	parse_format, .-parse_format
	.comm	SUFFTYPE_PREFIX,4,4
	.comm	SUFFTYPE_POSTFIX,4,4
	.comm	STD_FLAG,4,4
	.comm	NUM_FLAG,4,4
	.comm	NODE_TYPE_SPACE,8,8
	.comm	NODE_TYPE_SEPARATOR,8,8
	.comm	NODE_TYPE_END,8,8
	.comm	NODE_TYPE_CHAR,8,8
	.comm	NODE_TYPE_ACTION,8,8
	.comm	ERROR,4,4
	.comm	ERRCODE_INVALID_DATETIME_FORMAT,4,4
	.comm	DEBUG_elog_output,4,4
	.comm	DCH_FLAG,4,4
	.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_formatting.c_parse_format.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-./,':; \000"
	.align	2
.LC1:
	.ascii	"invalid datetime format separator: \"%s\"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_format, %function
parse_format:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldrb	r1, [r1]	@ zero_extendqisi2
	sub	sp, sp, #12
	cmp	r1, #0
	mov	r9, r0
	ldr	r6, [sp, #52]
	str	r2, [sp, #4]
	str	r3, [sp]
	beq	.L2
	ldr	r7, .L71
	ldr	fp, .L71+4
	ldr	r4, [r7]
	ldr	r10, .L71+8
	ands	r4, r6, r4
	bne	.L64
.L3:
	ldrb	r2, [r5]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L65
.L2:
	mov	r1, #0
	ldr	r2, .L71+12
	ldr	r2, [r2]
	str	r1, [r9]
	str	r2, [r9, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L65:
	mov	r0, r5
	ldr	r2, [sp, #48]
	ldr	r1, [sp, #4]
	bl	index_seq_search
	cmp	r0, #0
	str	r0, [r9, #12]
	beq	.L5
	ldr	r1, .L71+16
	ldr	r2, .L71+20
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, [r0]
	tst	r6, ip
	add	r5, r5, r1
	str	r2, [r9, #8]
	str	r4, [r9]
	bne	.L66
.L6:
	ldr	r1, [r7]
	ldrb	r2, [r5]	@ zero_extendqisi2
	tst	r6, r1
	beq	.L7
	cmp	r2, #0
	bne	.L8
	add	r9, r9, #16
	b	.L2
.L5:
	ldrb	r1, [r5]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L2
	ldr	r4, [fp]
	ands	r4, r6, r4
	bne	.L67
	cmp	r1, #34
	beq	.L68
	cmp	r1, #92
	bne	.L20
	ldrb	r2, [r5, #1]	@ zero_extendqisi2
	cmp	r2, #34
	addeq	r5, r5, #1
.L20:
	mov	r0, r5
	bl	pg_mblen
	ldr	r1, [r7]
	mov	r4, r0
	tst	r6, r1
	beq	.L21
	mov	r0, r5
	bl	is_separator_char
	cmp	r0, #0
	bne	.L69
.L21:
	ldrb	r0, [r5]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	ldrne	r3, .L71+24
	ldreq	r2, [r10]
	ldrne	r2, [r3]
	str	r2, [r9, #8]
.L22:
	mov	r1, r5
	mov	r2, r4
	ldr	r0, [r9, #4]
	bl	memcpy
	mov	r2, #0
	ldr	r1, [r9, #4]
	strb	r2, [r1, r4]
	str	r2, [r9, #12]
	str	r2, [r9], #16
	ldrb	r2, [r5, r4]!	@ zero_extendqisi2
.L11:
	cmp	r2, #0
	beq	.L2
	ldr	r4, [r7]
	ands	r4, r6, r4
	beq	.L3
.L64:
	ldr	r3, .L71+28
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [sp]
	bl	suff_search
	subs	r4, r0, #0
	ldrne	r2, [r4, #4]
	ldrne	r4, [r4]
	addne	r5, r5, r2
	b	.L3
.L8:
	ldr	r2, .L71+32
	ldr	r1, [sp]
	ldr	r2, [r2]
	mov	r0, r5
	bl	suff_search
	cmp	r0, #0
	ldrne	r2, [r9]
	ldrne	r1, [r0]
	ldrne	r0, [r0, #4]
	orrne	r2, r2, r1
	strne	r2, [r9]
	ldrbeq	r2, [r5]	@ zero_extendqisi2
	ldrbne	r2, [r5, r0]!	@ zero_extendqisi2
.L7:
	add	r9, r9, #16
	b	.L11
.L67:
	ldr	r0, .L71+36
	bl	strchr
	cmp	r0, #0
	beq	.L70
.L13:
	mov	r1, r5
	ldrb	r2, [r5]	@ zero_extendqisi2
	cmp	r2, #32
	mov	r2, #0
	ldreq	r3, .L71+24
	ldrne	r3, .L71+40
	ldr	r0, [r3]
	str	r0, [r9, #8]
	ldrb	ip, [r1], #1	@ zero_extendqisi2
	ldr	r0, [r9, #4]
	strb	ip, [r0]
	ldr	r0, [r9, #4]
	strb	r2, [r0, #1]
	str	r2, [r9, #12]
	str	r2, [r9], #16
	ldrb	r2, [r5, #1]	@ zero_extendqisi2
	mov	r5, r1
	b	.L11
.L66:
	mov	r1, r9
	ldr	r0, [sp, #56]
	bl	NUMDesc_prepare
	b	.L6
.L69:
	ldr	r3, .L71+40
	ldr	r2, [r3]
	str	r2, [r9, #8]
	b	.L22
.L68:
	ldrb	r2, [r5, #1]	@ zero_extendqisi2
	add	r8, r5, #1
	cmp	r2, #0
	bne	.L19
	b	.L2
.L17:
	cmp	r2, #92
	bne	.L18
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	cmp	r3, #0
	addne	r8, r8, #1
.L18:
	mov	r0, r8
	bl	pg_mblen
	mov	r5, r0
	ldr	r3, [r10]
	mov	r2, r0
	str	r3, [r9, #8]
	mov	r1, r8
	ldr	r0, [r9, #4]
	bl	memcpy
	ldr	r3, [r9, #4]
	strb	r4, [r3, r5]
	str	r4, [r9, #12]
	str	r4, [r9], #16
	ldrb	r2, [r8, r5]!	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L2
.L19:
	cmp	r2, #34
	bne	.L17
	ldrb	r2, [r8, #1]	@ zero_extendqisi2
	add	r5, r8, #1
	b	.L11
.L70:
	ldr	r1, .L71+44
	ldr	r2, .L71+48
	ldr	r0, [r1]
	ldr	r4, [r2]
	bl	errcode
	mov	r0, r5
	bl	pg_mblen
	mov	r1, r0
	mov	r0, r5
	bl	pnstrdup
	mov	r1, r0
	ldr	r0, .L71+52
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	b	.L13
.L72:
	.align	2
.L71:
	.word	DCH_FLAG
	.word	STD_FLAG
	.word	NODE_TYPE_CHAR
	.word	NODE_TYPE_END
	.word	NUM_FLAG
	.word	NODE_TYPE_ACTION
	.word	NODE_TYPE_SPACE
	.word	SUFFTYPE_PREFIX
	.word	SUFFTYPE_POSTFIX
	.word	.LC0
	.word	NODE_TYPE_SEPARATOR
	.word	ERRCODE_INVALID_DATETIME_FORMAT
	.word	ERROR
	.word	.LC1
	.size	parse_format, .-parse_format
	.comm	SUFFTYPE_PREFIX,4,4
	.comm	SUFFTYPE_POSTFIX,4,4
	.comm	STD_FLAG,4,4
	.comm	NUM_FLAG,4,4
	.comm	NODE_TYPE_SPACE,4,4
	.comm	NODE_TYPE_SEPARATOR,4,4
	.comm	NODE_TYPE_END,4,4
	.comm	NODE_TYPE_CHAR,4,4
	.comm	NODE_TYPE_ACTION,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_INVALID_DATETIME_FORMAT,4,4
	.comm	DEBUG_elog_output,4,4
	.comm	DCH_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
