	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_pos_info_packet        ## -- Begin function process_pos_info_packet
	.p2align	4, 0x90
_process_pos_info_packet:               ## @process_pos_info_packet
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_posinfo_packets_received@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	24(%rsi), %edi
	xorl	%esi, %esi
	callq	_get_client_by_handshake
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_show_remote_ip
	movslq	(%r14), %rcx
	movslq	24(%rbx), %r8
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	pushq	8(%rbx)
	pushq	16(%rbx)
	callq	_vkprintf
	addq	$16, %rsp
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_get_precise_time
	movq	%rax, %r12
	movq	8(%r15), %r15
	movq	8(%rbx), %rdx
	movabsq	$21474836480, %rax              ## imm = 0x500000000
	addq	%r12, %rax
	cmpq	%rax, %rdx
	jg	LBB0_7
## %bb.6:
	movabsq	$-128849018880, %rax            ## imm = 0xFFFFFFE200000000
	addq	%r12, %rax
	cmpq	%rax, %rdx
	jl	LBB0_7
## %bb.8:
	movq	16(%rbx), %rsi
	movabsq	$72057594037927937, %rax        ## imm = 0x100000000000001
	cmpq	%rax, %rsi
	jb	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_show_remote_ip
	movslq	(%r14), %rcx
	movslq	24(%rbx), %r8
	movl	(%rbx), %r9d
	movq	(%r15), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movl	24(%rbx), %esi
	movq	(%rbx), %rdx
	movq	_R_ERROR_EBADFD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_destroy_client
	movl	24(%rbx), %esi
	movq	(%rbx), %rdx
	movq	_R_ERROR_EBADFD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_error                     ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	callq	_show_remote_ip
	movslq	(%r14), %rcx
	movslq	24(%rbx), %r8
	movl	(%rbx), %r9d
	movq	(%r15), %rdx
	movl	(%rdx), %r10d
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	pushq	%r12
LBB0_10:
	pushq	%r10
	pushq	8(%rbx)
	pushq	16(%rbx)
	callq	_vkprintf
	addq	$32, %rsp
	jmp	LBB0_12
LBB0_11:
	movl	8(%r15), %edi
	callq	_update_binlog_postime_info
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movq	8(%rbx), %r8
	movq	16(%rbx), %rcx
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_posinfo_packets_received,4,2   ## @posinfo_packets_received
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received server time packet from %s:%d, session %d:%d, position %lld, time %016llx\n"

	.comm	_R_ERROR_EBADFD,4,2             ## @R_ERROR_EBADFD
L_.str.1:                               ## @.str.1
	.asciz	"unknown handshake id"

L_.str.2:                               ## @.str.2
	.asciz	"handshake/session id mismatch"

L_.str.3:                               ## @.str.3
	.asciz	"WARNING: server time packet from %s:%d, session %d:%d, position %lld, time %016llx for binlog %s is ignored because of bad time (current time %016llx)\n"

L_.str.4:                               ## @.str.4
	.asciz	"WARNING: server time packet from %s:%d, session %d:%d, position %lld, time %016llx for binlog %s is ignored because of bad position\n"

L_.str.5:                               ## @.str.5
	.asciz	"Result of updating binlog position info for replica %s to position %lld, time %016llx is %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_pos_info_packet        ; -- Begin function process_pos_info_packet
	.p2align	2
_process_pos_info_packet:               ; @process_pos_info_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _posinfo_packets_received@GOTPAGE
Lloh1:
	ldr	x8, [x8, _posinfo_packets_received@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x1, #24]
	mov	w1, #0
	bl	_get_client_by_handshake
	mov	x21, x0
	mov	x0, x20
	bl	_show_remote_ip
	mov	x2, x0
	ldrsw	x3, [x20]
	ldrsw	x4, [x19, #24]
	ldr	w5, [x19]
	ldp	x9, x8, [x19, #8]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	cbz	x21, LBB0_6
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_get_precise_time
	mov	x22, x0
	ldr	x21, [x21, #8]
	ldr	x2, [x19, #8]
	mov	x8, #21474836480
	add	x8, x0, x8
	cmp	x2, x8
	b.gt	LBB0_9
; %bb.3:
	mov	x8, #281346127691776
	movk	x8, #65535, lsl #48
	add	x8, x22, x8
	cmp	x2, x8
	b.lt	LBB0_9
; %bb.4:
	ldr	x1, [x19, #16]
	mov	x8, #1
	movk	x8, #256, lsl #48
	cmp	x1, x8
	b.lo	LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_show_remote_ip
	mov	x2, x0
	ldrsw	x3, [x20]
	ldrsw	x4, [x19, #24]
	ldr	w5, [x19]
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x21]
	ldr	w10, [x10]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	b	LBB0_11
LBB0_6:
	ldr	w1, [x19, #24]
	ldr	x2, [x19]
Lloh6:
	adrp	x8, _R_ERROR_EBADFD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_ERROR_EBADFD@GOTPAGEOFF]
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_destroy_client
	ldr	w1, [x19, #24]
	ldr	x2, [x19]
Lloh10:
	adrp	x8, _R_ERROR_EBADFD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R_ERROR_EBADFD@GOTPAGEOFF]
Lloh12:
	adrp	x4, l_.str.2@PAGE
Lloh13:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_8:
	ldr	w3, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_send_error
LBB0_9:
	mov	x0, x20
	bl	_show_remote_ip
	mov	x2, x0
	ldrsw	x3, [x20]
	ldrsw	x4, [x19, #24]
	ldr	w5, [x19]
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x21]
	ldr	w10, [x10]
	stp	x10, x22, [sp, #16]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	w0, [x21, #8]
	bl	_update_binlog_postime_info
	mov	x5, x0
	ldr	x8, [x21]
	ldr	w2, [x8]
	ldp	x4, x3, [x19, #8]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
LBB0_11:
	bl	_vkprintf
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_posinfo_packets_received,4,2   ; @posinfo_packets_received
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received server time packet from %s:%d, session %d:%d, position %lld, time %016llx\n"

	.comm	_R_ERROR_EBADFD,4,2             ; @R_ERROR_EBADFD
l_.str.1:                               ; @.str.1
	.asciz	"unknown handshake id"

l_.str.2:                               ; @.str.2
	.asciz	"handshake/session id mismatch"

l_.str.3:                               ; @.str.3
	.asciz	"WARNING: server time packet from %s:%d, session %d:%d, position %lld, time %016llx for binlog %s is ignored because of bad time (current time %016llx)\n"

l_.str.4:                               ; @.str.4
	.asciz	"WARNING: server time packet from %s:%d, session %d:%d, position %lld, time %016llx for binlog %s is ignored because of bad position\n"

l_.str.5:                               ; @.str.5
	.asciz	"Result of updating binlog position info for replica %s to position %lld, time %016llx is %d\n"

.subsections_via_symbols
