	.file	"extr_text-log-split.c_text_replay_logevent.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error %d reading binlog at position %lld, write position %lld, type %08x (prev type %08x)\n"
	.align 8
.LC1:
	.string	"error: first record must be a LEV_START\n"
	.text
	.p2align 4
	.globl	text_replay_logevent
	.type	text_replay_logevent, @function
text_replay_logevent:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	esi, 3
	jle	.L4
	mov	r13d, DWORD PTR [rdi]
	mov	edx, esi
	mov	rbp, rdi
	mov	ebx, esi
	mov	rsi, rdi
	mov	edi, r13d
	call	get_logrec_size@PLT
	mov	r12d, eax
	cmp	ebx, eax
	jl	.L4
	cmp	eax, -2
	je	.L4
	test	eax, eax
	js	.L18
	mov	eax, DWORD PTR targ_existed[rip]
	test	eax, eax
	jne	.L6
	cmp	DWORD PTR LEV_START[rip], r13d
	je	.L6
	cmp	QWORD PTR jump_log_pos[rip], 0
	je	.L19
.L6:
	lea	eax, 3[r12]
	mov	rsi, rbp
	mov	edi, r13d
	add	DWORD PTR rd_rec[rip], 1
	and	eax, -4
	mov	DWORD PTR type_ok.1966[rip], r13d
	add	DWORD PTR rd_bytes[rip], eax
	mov	ebx, eax
	call	want_write@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR LogTs[rip+24], 0
	jne	.L20
.L7:
	mov	rdx, QWORD PTR text_len[rip]
	test	rdx, rdx
	js	.L8
	cmp	QWORD PTR Map[rip], 0
	jne	.L21
.L8:
	mov	edi, r12d
	call	write_alloc@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, rax
	mov	r14, rax
	call	memcpy@PLT
	cmp	DWORD PTR LEV_START[rip], r13d
	jne	.L9
	mov	eax, DWORD PTR copy_mod[rip]
	mov	DWORD PTR 16[r14], eax
	mov	rax, QWORD PTR copy_rem[rip]
	mov	QWORD PTR 8[r14], rax
	add	rax, 1
	mov	QWORD PTR [r14], rax
.L9:
	movsx	rax, ebx
	add	DWORD PTR wr_rec[rip], 1
	add	QWORD PTR wr_bytes[rip], rax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	ebp, DWORD PTR type_ok.1966[rip]
	xor	eax, eax
	mov	rbx, QWORD PTR targ_orig_size[rip]
	add	rbx, QWORD PTR wr_bytes[rip]
	call	log_cur_pos@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edx, r12d
	mov	r9d, r13d
	push	rbp
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, eax
	mov	r8, rbx
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rcx
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_remember_state
	.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
.L20:
	.cfi_restore_state
	mov	edi, 8
	call	write_alloc@PLT
	mov	edx, 8
	lea	rsi, LogTs[rip]
	mov	rdi, rax
	call	memcpy@PLT
	add	QWORD PTR wr_bytes[rip], 8
	add	DWORD PTR wr_rec[rip], 1
	mov	QWORD PTR LogTs[rip+24], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, r12d
	mov	rdi, rbp
	call	write_convert_record@PLT
	test	eax, eax
	je	.L8
	add	eax, 3
	add	DWORD PTR wr_rec[rip], 1
	and	eax, -4
	add	DWORD PTR conv_rec[rip], 1
	cdqe
	add	QWORD PTR wr_bytes[rip], rax
	jmp	.L1
.L19:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	r12d, -1
	call	fprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, -2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	text_replay_logevent, .-text_replay_logevent
	.data
	.align 4
	.type	type_ok.1966, @object
	.size	type_ok.1966, 4
type_ok.1966:
	.long	-1
	.comm	wr_rec,4,4
	.comm	wr_bytes,8,8
	.comm	text_len,8,8
	.comm	targ_orig_size,8,8
	.comm	targ_existed,4,4
	.comm	stderr,4,4
	.comm	rd_rec,4,4
	.comm	rd_bytes,4,4
	.comm	jump_log_pos,8,8
	.comm	copy_rem,8,8
	.comm	copy_mod,4,4
	.comm	conv_rec,4,4
	.comm	Map,8,8
	.comm	LogTs,32,32
	.comm	LEV_START,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_text-log-split.c_text_replay_logevent.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error %d reading binlog at position %lld, write pos"
	.ascii	"ition %lld, type %08x (prev type %08x)\012\000"
	.align	2
.LC1:
	.ascii	"error: first record must be a LEV_START\012\000"
	.text
	.align	2
	.global	text_replay_logevent
	.syntax unified
	.arm
	.fpu softvfp
	.type	text_replay_logevent, %function
text_replay_logevent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r1, #3
	sub	sp, sp, #20
	ble	.L4
	mov	r5, r0
	ldr	r7, [r0]
	mov	r6, r1
	mov	r2, r1
	mov	r0, r7
	mov	r1, r5
	bl	get_logrec_size
	cmn	r0, #2
	movne	r1, #0
	moveq	r1, #1
	cmp	r6, r0
	orrlt	r1, r1, #1
	cmp	r1, #0
	mov	r4, r0
	bne	.L4
	cmp	r0, #0
	blt	.L24
	ldr	r8, .L27
	ldr	r3, [r8]
	cmp	r3, r7
	beq	.L6
	ldr	r2, .L27+4
	ldr	r3, .L27+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	orrs	r3, r2, r3
	beq	.L25
.L6:
	ldr	r0, .L27+12
	ldr	r1, .L27+16
	ldr	r2, [r0]
	add	r6, r4, #3
	ldr	r3, [r1]
	bic	r6, r6, #3
	add	r2, r2, r6
	str	r2, [r0]
	add	r3, r3, #1
	ldr	r2, .L27+20
	str	r3, [r1]
	mov	r0, r7
	mov	r1, r5
	str	r7, [r2]
	bl	want_write
	cmp	r0, #0
	beq	.L1
	ldr	fp, .L27+24
	ldr	r3, [fp, #12]
	cmp	r3, #0
	bne	.L21
	ldr	r10, .L27+28
	ldr	r9, .L27+32
.L7:
	ldr	r3, .L27+36
	ldr	r2, [r3]
	cmp	r2, #0
	blt	.L8
	ldr	r3, .L27+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
.L8:
	mov	r0, r4
	bl	write_alloc
	mov	r1, r5
	mov	r2, r4
	mov	r5, r0
	bl	memcpy
	ldr	r3, [r8]
	cmp	r3, r7
	bne	.L9
	ldr	r3, .L27+44
	ldr	r2, .L27+48
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r1, r3, #1
	stm	r5, {r1, r3}
	str	r2, [r5, #8]
.L9:
	ldr	r2, [r10]
	ldr	r3, [r9]
	add	r6, r2, r6
	add	r3, r3, #1
	str	r6, [r10]
	str	r3, [r9]
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, .L27+52
	ldr	r5, [r3]
	bl	log_cur_pos
	ldr	r1, .L27+56
	ldr	r2, .L27+28
	mov	r3, r0
	ldr	r0, [r1]
	ldr	r1, .L27+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r2, r2, r0
	stm	sp, {r2, r7}
	str	r1, [sp, #8]
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L27+60
	bl	fprintf
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, #8
	bl	write_alloc
	mov	r2, #8
	mov	r1, fp
	bl	memcpy
	mov	r1, #0
	ldr	r10, .L27+28
	ldr	r9, .L27+32
	ldr	r2, [r10]
	ldr	r3, [r9]
	add	r2, r2, #8
	add	r3, r3, #1
	str	r2, [r10]
	str	r3, [r9]
	str	r1, [fp, #12]
	b	.L7
.L26:
	mov	r1, r4
	mov	r0, r5
	bl	write_convert_record
	cmp	r0, #0
	beq	.L8
	ldr	r2, [r10]
	ldr	ip, .L27+64
	add	r0, r0, #3
	bic	r3, r0, #3
	ldr	r1, [ip]
	add	r3, r3, r2
	ldr	r2, [r9]
	add	r1, r1, #1
	add	r2, r2, #1
	str	r3, [r10]
	str	r1, [ip]
	str	r2, [r9]
	b	.L1
.L25:
	ldr	r3, .L27+52
	ldr	r1, .L27+68
	ldr	r0, [r3]
	bl	fprintf
	mvn	r4, #0
	b	.L1
.L4:
	mvn	r4, #1
	b	.L1
.L28:
	.align	2
.L27:
	.word	LEV_START
	.word	targ_existed
	.word	jump_log_pos
	.word	rd_bytes
	.word	rd_rec
	.word	.LANCHOR0
	.word	LogTs
	.word	wr_bytes
	.word	wr_rec
	.word	text_len
	.word	Map
	.word	copy_rem
	.word	copy_mod
	.word	stderr
	.word	targ_orig_size
	.word	.LC0
	.word	conv_rec
	.word	.LC1
	.size	text_replay_logevent, .-text_replay_logevent
	.comm	wr_rec,4,4
	.comm	wr_bytes,4,4
	.comm	text_len,4,4
	.comm	targ_orig_size,4,4
	.comm	targ_existed,4,4
	.comm	stderr,4,4
	.comm	rd_rec,4,4
	.comm	rd_bytes,4,4
	.comm	jump_log_pos,4,4
	.comm	copy_rem,4,4
	.comm	copy_mod,4,4
	.comm	conv_rec,4,4
	.comm	Map,4,4
	.comm	LogTs,16,4
	.comm	LEV_START,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	type_ok.4250, %object
	.size	type_ok.4250, 4
type_ok.4250:
	.word	-1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
