	.file	"extr_targ-log-merge.c_process_record.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"
	.text
	.p2align 4
	.globl	process_record
	.type	process_record, @function
process_record:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	prepare_read@PLT
	mov	rsi, QWORD PTR rptr[rip]
	mov	rbx, QWORD PTR rend[rip]
	cmp	rsi, rbx
	je	.L6
	sub	ebx, esi
	cmp	ebx, 3
	jle	.L7
	mov	ebp, DWORD PTR [rsi]
	mov	edx, ebx
	mov	edi, ebp
	call	get_logrec_size@PLT
	mov	r12d, eax
	cmp	ebx, eax
	jl	.L8
	test	eax, eax
	js	.L3
	add	r12d, 3
	mov	edi, ebp
	mov	DWORD PTR type_ok.1950[rip], ebp
	call	want_write@PLT
	and	r12d, -4
	movsx	rbx, r12d
	test	rax, rax
	jne	.L14
.L5:
	add	DWORD PTR rd_bytes[rip], r12d
	xor	r12d, r12d
	mov	eax, r12d
	add	QWORD PTR rptr[rip], rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	add	DWORD PTR rd_rec[rip], 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, -2
.L3:
	mov	eax, DWORD PTR type_ok.1950[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	r9d, ebp
	mov	ecx, DWORD PTR rd_bytes[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 48
	mov	r8, QWORD PTR targ_orig_size[rip]
	add	r8, QWORD PTR wr_bytes[rip]
	call	fprintf@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rbp, QWORD PTR rptr[rip]
	mov	edi, r12d
	call	write_alloc@PLT
	mov	edx, r12d
	mov	edi, eax
	mov	rsi, rbp
	call	memcpy@PLT
	add	QWORD PTR wr_bytes[rip], rbx
	add	DWORD PTR wr_rec[rip], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, -2
	jmp	.L1
.L6:
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	process_record, .-process_record
	.data
	.align 4
	.type	type_ok.1950, @object
	.size	type_ok.1950, 4
type_ok.1950:
	.long	-1
	.comm	wr_rec,4,4
	.comm	wr_bytes,8,8
	.comm	targ_orig_size,8,8
	.comm	stderr,4,4
	.comm	rptr,8,8
	.comm	rend,8,8
	.comm	rd_rec,4,4
	.comm	rd_bytes,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_targ-log-merge.c_process_record.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"
	.text
	.align	2
	.global	process_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_record, %function
process_record:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	bl	prepare_read
	ldr	r7, .L15
	ldr	r3, .L15+4
	ldr	r1, [r7]
	ldr	r5, [r3]
	cmp	r1, r5
	beq	.L6
	sub	r5, r5, r1
	cmp	r5, #3
	ble	.L7
	ldr	r6, [r1]
	mov	r2, r5
	mov	r0, r6
	bl	get_logrec_size
	cmp	r5, r0
	mov	r4, r0
	blt	.L8
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L15+8
	add	r4, r0, #3
	mov	r0, r6
	str	r6, [r3]
	bl	want_write
	cmp	r0, #0
	bic	r4, r4, #3
	bne	.L14
.L5:
	ldr	ip, .L15+12
	ldr	r2, [r7]
	ldr	r1, [ip]
	ldr	r0, .L15+16
	add	r1, r1, r4
	add	r4, r2, r4
	str	r4, [r7]
	mov	r4, #0
	ldr	r3, [r0]
	str	r1, [ip]
	add	r3, r3, #1
	str	r3, [r0]
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	mvn	r4, #1
.L3:
	ldr	r3, .L15+20
	ldr	r2, .L15+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L15+8
	add	r3, r3, r2
	ldr	r0, [r1]
	stm	sp, {r3, r6}
	ldr	r1, .L15+12
	ldr	r2, .L15+28
	str	r0, [sp, #8]
	ldr	r3, [r1]
	ldr	r0, [r2]
	ldr	r1, .L15+32
	mov	r2, r4
	bl	fprintf
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r0, r4
	bl	write_alloc
	mov	r2, r4
	ldr	r1, [r7]
	bl	memcpy
	ldr	r0, .L15+20
	ldr	r1, .L15+36
	ldr	r2, [r0]
	ldr	r3, [r1]
	add	r2, r2, r4
	add	r3, r3, #1
	str	r2, [r0]
	str	r3, [r1]
	b	.L5
.L7:
	mvn	r4, #1
	b	.L1
.L6:
	mvn	r4, #0
	b	.L1
.L16:
	.align	2
.L15:
	.word	rptr
	.word	rend
	.word	.LANCHOR0
	.word	rd_bytes
	.word	rd_rec
	.word	wr_bytes
	.word	targ_orig_size
	.word	stderr
	.word	.LC0
	.word	wr_rec
	.size	process_record, .-process_record
	.comm	wr_rec,4,4
	.comm	wr_bytes,4,4
	.comm	targ_orig_size,4,4
	.comm	stderr,4,4
	.comm	rptr,4,4
	.comm	rend,4,4
	.comm	rd_rec,4,4
	.comm	rd_bytes,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	type_ok.4234, %object
	.size	type_ok.4234, 4
type_ok.4234:
	.word	-1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
