	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_data_ack_packet        ## -- Begin function process_data_ack_packet
	.p2align	4, 0x90
_process_data_ack_packet:               ## @process_data_ack_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	xorl	%esi, %esi
	callq	_get_server_by_session
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_show_remote_ip
	movl	(%r14), %ecx
	movq	(%rbx), %r8
	movl	24(%rbx), %r9d
	movups	8(%rbx), %xmm0
	movups	%xmm0, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	callq	_vkprintf
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movq	16(%rbx), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_destroy_server
	movq	(%rbx), %rsi
	movl	24(%rbx), %edx
	movq	_R_ERROR_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	jmp	LBB0_2
LBB0_1:
	movq	(%rbx), %rsi
	movl	24(%rbx), %edx
	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_server
	movq	(%rbx), %rsi
	movl	24(%rbx), %edx
	movq	_R_ERROR_EBADFD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	jmp	LBB0_2
LBB0_8:
	cmpq	8(%r15), %rax
	jg	LBB0_11
## %bb.9:
	cmpq	16(%r15), %rax
	jl	LBB0_11
## %bb.10:
	cmpq	24(%r15), %rcx
	jge	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_destroy_server
	movq	(%rbx), %rsi
	movl	24(%rbx), %edx
	movq	_R_ERROR_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %r8
LBB0_2:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_error                     ## TAILCALL
LBB0_12:
	movq	%rax, 16(%r15)
	movq	%rcx, 24(%r15)
	movq	%r15, %rdi
	callq	_process_server
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received data ack packet from %s:%d, session %d:%d, binlog written up to %lld, received up to %lld\n"

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

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

	.comm	_R_ERROR_EINVAL,4,2             ## @R_ERROR_EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"incorrect log positions"

L_.str.4:                               ## @.str.4
	.asciz	"acknowledged log positions go backwards and/or after the end of transmitted data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_data_ack_packet        ; -- Begin function process_data_ack_packet
	.p2align	2
_process_data_ack_packet:               ; @process_data_ack_packet
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
	mov	w1, #0
	bl	_get_server_by_session
	mov	x21, x0
	mov	x0, x19
	bl	_show_remote_ip
	mov	x2, x0
	ldr	w3, [x19]
	ldr	w5, [x20, #24]
	ldp	x4, x6, [x20]
	ldr	x7, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	cbz	x21, LBB0_5
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
	ldr	x9, [x20, #16]
	cmp	x9, x8
	b.ge	LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_destroy_server
	ldr	x1, [x20]
	ldr	w2, [x20, #24]
Lloh2:
	adrp	x8, _R_ERROR_EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_ERROR_EINVAL@GOTPAGEOFF]
Lloh4:
	adrp	x4, l_.str.3@PAGE
Lloh5:
	add	x4, x4, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_5:
	ldr	x1, [x20]
	ldr	w2, [x20, #24]
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_11
LBB0_6:
	mov	x0, x21
	bl	_destroy_server
	ldr	x1, [x20]
	ldr	w2, [x20, #24]
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
	b	LBB0_11
LBB0_7:
	ldr	x10, [x21, #8]
	cmp	x8, x10
	b.gt	LBB0_10
; %bb.8:
	ldr	x10, [x21, #16]
	cmp	x8, x10
	b.lt	LBB0_10
; %bb.9:
	ldr	x10, [x21, #24]
	cmp	x9, x10
	b.ge	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_destroy_server
	ldr	x1, [x20]
	ldr	w2, [x20, #24]
Lloh14:
	adrp	x8, _R_ERROR_EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R_ERROR_EINVAL@GOTPAGEOFF]
Lloh16:
	adrp	x4, l_.str.4@PAGE
Lloh17:
	add	x4, x4, l_.str.4@PAGEOFF
LBB0_11:
	ldr	w3, [x8]
	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
	b	_send_error
LBB0_12:
	stp	x8, x9, [x21, #16]
	mov	x0, x21
	bl	_process_server
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received data ack packet from %s:%d, session %d:%d, binlog written up to %lld, received up to %lld\n"

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

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

	.comm	_R_ERROR_EINVAL,4,2             ; @R_ERROR_EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"incorrect log positions"

l_.str.4:                               ; @.str.4
	.asciz	"acknowledged log positions go backwards and/or after the end of transmitted data"

.subsections_via_symbols
