	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record                 ## -- Begin function process_record
	.p2align	4, 0x90
_process_record:                        ## @process_record
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_prepare_read
	movq	_rptr@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_rend@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$-1, %r15d
	cmpq	%rsi, %rbx
	je	LBB0_8
## %bb.1:
	subl	%esi, %ebx
	movl	$-2, %r15d
	cmpl	$4, %ebx
	jl	LBB0_8
## %bb.2:
	movl	(%rsi), %r14d
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_get_logrec_size
	cmpl	%ebx, %eax
	movl	$-2, %r15d
	cmovlel	%eax, %r15d
	testl	%r15d, %r15d
	js	LBB0_3
## %bb.4:
	movl	%r14d, _process_record.type_ok(%rip)
	addl	$3, %r15d
	andl	$-4, %r15d
	movl	%r14d, %edi
	callq	_want_write
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%r15d, %edi
	callq	_write_alloc
	movq	(%r12), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r15d, %eax
	movq	_wr_bytes@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	movq	_wr_rec@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	jmp	LBB0_7
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_rd_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_wr_bytes@GOTPCREL(%rip), %rax
	movq	_targ_orig_size@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	addq	(%rax), %r8
	movl	_process_record.type_ok(%rip), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %r9d
	callq	_fprintf
	jmp	LBB0_8
LBB0_5:
	movl	%r15d, %eax
LBB0_7:
	movq	_rd_bytes@GOTPCREL(%rip), %rcx
	addl	%r15d, (%rcx)
	movq	_rd_rec@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	addq	%rax, (%r12)
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @process_record.type_ok
_process_record.type_ok:
	.long	4294967295                      ## 0xffffffff

	.comm	_rptr,8,3                       ## @rptr
	.comm	_rend,8,3                       ## @rend
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d reading binlog at position %lld, write position %lld, type %08x (prev type %08x)\n"

	.comm	_rd_bytes,4,2                   ## @rd_bytes
	.comm	_wr_bytes,8,3                   ## @wr_bytes
	.comm	_targ_orig_size,8,3             ## @targ_orig_size
	.comm	_wr_rec,4,2                     ## @wr_rec
	.comm	_rd_rec,4,2                     ## @rd_rec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record                 ; -- Begin function process_record
	.p2align	2
_process_record:                        ; @process_record
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_prepare_read
Lloh0:
	adrp	x22, _rptr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rptr@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh2:
	adrp	x8, _rend@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rend@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_8
LBB0_2:
	sub	w20, w8, w1
	mov	w19, #-2
	cmp	w20, #4
	b.lt	LBB0_8
; %bb.3:
	ldr	w21, [x1]
	mov	x0, x21
	mov	x2, x20
	bl	_get_logrec_size
	cmp	w0, w20
	csel	w19, w19, w0, gt
	tbnz	w19, #31, LBB0_7
; %bb.4:
	adrp	x8, _process_record.type_ok@PAGE
	str	w21, [x8, _process_record.type_ok@PAGEOFF]
	add	w8, w19, #3
	and	w20, w8, #0xfffffffc
	mov	x0, x21
	bl	_want_write
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_write_alloc
	ldr	x1, [x22]
	mov	x2, x20
	bl	_memcpy
Lloh5:
	adrp	x8, _wr_bytes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wr_bytes@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, x20
	str	x9, [x8]
Lloh7:
	adrp	x8, _wr_rec@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wr_rec@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	mov	w19, #0
Lloh9:
	adrp	x8, _rd_bytes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rd_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w20
	str	w9, [x8]
Lloh11:
	adrp	x8, _rd_rec@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rd_rec@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x22]
	add	x8, x8, x20
	str	x8, [x22]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _rd_bytes@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rd_bytes@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _wr_bytes@GOTPAGE
Lloh20:
	ldr	x8, [x8, _wr_bytes@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _targ_orig_size@GOTPAGE
Lloh23:
	ldr	x9, [x9, _targ_orig_size@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x4, x9, x8
Lloh25:
	adrp	x8, _process_record.type_ok@PAGE
Lloh26:
	ldr	w6, [x8, _process_record.type_ok@PAGEOFF]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x5, x21
	bl	_fprintf
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @process_record.type_ok
_process_record.type_ok:
	.long	4294967295                      ; 0xffffffff

	.comm	_rptr,8,3                       ; @rptr
	.comm	_rend,8,3                       ; @rend
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d reading binlog at position %lld, write position %lld, type %08x (prev type %08x)\n"

	.comm	_rd_bytes,4,2                   ; @rd_bytes
	.comm	_wr_bytes,8,3                   ; @wr_bytes
	.comm	_targ_orig_size,8,3             ; @targ_orig_size
	.comm	_wr_rec,4,2                     ; @wr_rec
	.comm	_rd_rec,4,2                     ; @rd_rec
.subsections_via_symbols
