	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_write_header                ## -- Begin function tl_write_header
	.p2align	4, 0x90
_tl_write_header:                       ## @tl_write_header
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	movq	_RPC_REQ_ERROR@GOTPCREL(%rip), %r14
	movq	_RPC_REQ_RESULT@GOTPCREL(%rip), %r12
	movq	_RPC_INVOKE_REQ@GOTPCREL(%rip), %r15
	movq	_RPC_REQ_ERROR_WRAPPED@GOTPCREL(%rip), %rbx
	movb	$1, %al
	cmpl	(%r14), %ecx
	je	LBB0_35
## %bb.1:
	cmpl	(%r12), %ecx
	je	LBB0_35
## %bb.2:
	movq	%rdi, %r13
	cmpl	(%r15), %ecx
	je	LBB0_5
## %bb.3:
	cmpl	(%rbx), %ecx
	je	LBB0_5
## %bb.4:
	movq	_RPC_INVOKE_KPHP_REQ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	sete	%al
LBB0_5:
	movzbl	%al, %edi
	callq	_assert
	movq	%r13, %r8
	movl	(%r13), %eax
	movq	_RPC_INVOKE_KPHP_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	(%r15), %eax
	je	LBB0_10
## %bb.6:
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.7:
	cmpl	(%rbx), %eax
	jne	LBB0_13
## %bb.8:
	movl	$-1, %r13d
	cmpl	$12, -48(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_54
## %bb.9:
	movl	(%r14), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	_TL_OUT_QID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 4(%r14)
	movl	$12, %r13d
	jmp	LBB0_54
LBB0_10:
	cmpl	%ecx, %eax
	jne	LBB0_18
## %bb.11:
	movl	$-1, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$24, %ebx
	jl	LBB0_54
## %bb.12:
	movl	124(%r8), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$24, %edx
	movq	%r8, %r15
	callq	_memcpy
	movq	%r15, %r8
	addq	$96, %r14
	leal	-24(%rbx), %r12d
	jmp	LBB0_19
LBB0_13:
	xorl	%r13d, %r13d
	cmpl	(%r12), %eax
	jne	LBB0_54
## %bb.14:
	cmpl	$0, 16(%r8)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_54
## %bb.15:
	movl	$-1, %r13d
	cmpl	$32, %esi
	jl	LBB0_54
## %bb.16:
	movq	_RPC_REQ_RESULT_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movl	16(%r8), %eax
	movl	%eax, 4(%r14)
	movl	16(%r8), %eax
	movq	_TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_49
## %bb.17:
	movq	88(%r8), %rcx
	movq	%rcx, 8(%r14)
	addq	$16, %r14
	leal	-16(%rsi), %ecx
	jmp	LBB0_50
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_19:
	movq	8(%r8), %rcx
	movl	16(%r8), %edx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.20:
	testl	%edx, %edx
	jne	LBB0_24
## %bb.21:
	movl	$-1, %r13d
	cmpl	$12, %r12d
	jl	LBB0_54
## %bb.22:
	movq	_RPC_DEST_ACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rcx, 4(%r14)
	movl	$12, %r13d
	jmp	LBB0_54
LBB0_23:
	testl	%edx, %edx
	je	LBB0_36
LBB0_24:
	movq	_TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %esi
	je	LBB0_27
## %bb.25:
	movq	24(%r8), %rdi
	cmpq	32(%r8), %rdi
	jl	LBB0_27
## %bb.26:
	notl	%esi
	andl	%esi, %edx
	movl	%edx, 16(%r8)
LBB0_27:
	movq	_TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%edx, %esi
	je	LBB0_30
## %bb.28:
	movq	40(%r8), %rdi
	cmpq	48(%r8), %rdi
	jl	LBB0_30
## %bb.29:
	notl	%esi
	andl	%esi, %edx
	movl	%edx, 16(%r8)
LBB0_30:
	movl	$-1, %r13d
	cmpl	$16, %r12d
	jl	LBB0_54
## %bb.31:
	movq	_RPC_DEST_ACTOR_FLAGS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%r14)
	movq	%rcx, 4(%r14)
	movl	16(%r8), %ecx
	movl	%ecx, 12(%r14)
	movl	16(%r8), %ecx
	movq	_TL_QUERY_HEADER_FLAG_WAIT_BINLOG@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_37
## %bb.32:
	cmpl	$24, %r12d
	jb	LBB0_54
## %bb.33:
	movq	56(%r8), %rdx
	movq	%rdx, 16(%r14)
	addq	$24, %r14
	addl	$-24, %r12d
	jmp	LBB0_38
LBB0_35:
	movq	%rdi, %r13
	jmp	LBB0_5
LBB0_36:
	xorl	%r13d, %r13d
	jmp	LBB0_54
LBB0_37:
	addq	$16, %r14
	addl	$-16, %r12d
LBB0_38:
	movq	_TL_QUERY_HEADER_FLAG_KPHP_DELAY@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_41
## %bb.39:
	cmpl	$4, %r12d
	jb	LBB0_54
## %bb.40:
	movl	120(%r8), %ecx
	movl	%ecx, (%r14)
	addq	$4, %r14
	addl	$-4, %r12d
	movl	16(%r8), %ecx
LBB0_41:
	testl	%ecx, (%rax)
	je	LBB0_46
## %bb.42:
	cmpl	$4, %r12d
	jb	LBB0_54
## %bb.43:
	movq	24(%r8), %rax
	movq	32(%r8), %rcx
	movl	%ecx, %edx
	subl	%eax, %edx
	movl	%edx, (%r14)
	addq	$4, %r14
	addl	$-4, %r12d
	movslq	%eax, %rbx
	cmpq	%rbx, %rcx
	jle	LBB0_46
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	112(%r8), %rax
	movq	%r14, %r15
	movl	(%rax,%rbx,4), %r14d
	movl	%r14d, %edi
	movq	%r8, %r13
	callq	_strlen
	movl	%r14d, %edi
	movq	%r15, %r14
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_tl_write_string
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_74
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	subl	%eax, %r12d
	andl	$-4, %eax
	addq	%rax, %r14
	incq	%rbx
	cmpq	%rbx, 32(%r13)
	movq	%r13, %r8
	jg	LBB0_44
LBB0_46:
	movq	_TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r8)
	je	LBB0_55
## %bb.47:
	cmpl	$4, %r12d
	jge	LBB0_56
## %bb.48:
	movl	$-1, %r13d
	jmp	LBB0_54
LBB0_49:
	addq	$8, %r14
	leal	-8(%rsi), %ecx
LBB0_50:
	movq	_TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_52
## %bb.51:
	movq	96(%r8), %rax
	movq	%rax, (%r14)
	addl	$-8, %ecx
LBB0_52:
	subl	%ecx, %esi
LBB0_53:
	movl	%esi, %r13d
LBB0_54:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$-1, %r13d
	jmp	LBB0_61
LBB0_56:
	movq	40(%r8), %rcx
	movq	48(%r8), %rax
	movl	%eax, %edx
	subl	%ecx, %edx
	movl	%edx, (%r14)
	addq	$4, %r14
	addl	$-4, %r12d
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	movl	$-1, %r13d
	jle	LBB0_60
## %bb.57:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$8, %r12d
	jl	LBB0_54
## %bb.59:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	64(%r8), %rdx
	movq	(%rdx,%rcx,8), %rdx
	movq	%rdx, (%r14)
	addq	$8, %r14
	addl	$-8, %r12d
	incq	%rcx
	cmpq	%rcx, %rax
	jg	LBB0_58
	jmp	LBB0_61
LBB0_60:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_61:
	movl	16(%r8), %eax
	movq	_TL_QUERY_HEADER_FLAG_STRING_FORWARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_64
## %bb.62:
	movq	%r14, %rbx
	movl	108(%r8), %r14d
	movl	%r14d, %edi
	movq	%r8, %r15
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %r14
	movl	%eax, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_tl_write_string
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_54
## %bb.63:
	subl	%eax, %r12d
	andl	$-4, %eax
	addq	%rax, %r14
	movl	16(%r15), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r8
LBB0_64:
	movq	_TL_QUERY_HEADER_FLAG_INT_FORWARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_67
## %bb.65:
	cmpl	$8, %r12d
	jl	LBB0_54
## %bb.66:
	movq	72(%r8), %rcx
	movq	%rcx, (%r14)
	addq	$8, %r14
	addl	$-8, %r12d
LBB0_67:
	movq	_TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_70
## %bb.68:
	cmpl	$8, %r12d
	jl	LBB0_54
## %bb.69:
	movq	80(%r8), %rcx
	movq	%rcx, (%r14)
	addq	$8, %r14
	addl	$-8, %r12d
LBB0_70:
	movq	_TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_73
## %bb.71:
	cmpl	$4, %r12d
	jl	LBB0_54
## %bb.72:
	movl	104(%r8), %eax
	movl	%eax, (%r14)
	addl	$-4, %r12d
LBB0_73:
	subl	%r12d, %esi
	jmp	LBB0_53
LBB0_74:
	movl	%eax, %r13d
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_REQ_ERROR,4,2              ## @RPC_REQ_ERROR
	.comm	_RPC_REQ_RESULT,4,2             ## @RPC_REQ_RESULT
	.comm	_RPC_INVOKE_REQ,8,3             ## @RPC_INVOKE_REQ
	.comm	_RPC_REQ_ERROR_WRAPPED,4,2      ## @RPC_REQ_ERROR_WRAPPED
	.comm	_RPC_INVOKE_KPHP_REQ,8,3        ## @RPC_INVOKE_KPHP_REQ
	.comm	_TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS,4,2 ## @TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS
	.comm	_TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS,4,2 ## @TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS
	.comm	_RPC_DEST_ACTOR_FLAGS,4,2       ## @RPC_DEST_ACTOR_FLAGS
	.comm	_TL_QUERY_HEADER_FLAG_WAIT_BINLOG,4,2 ## @TL_QUERY_HEADER_FLAG_WAIT_BINLOG
	.comm	_TL_QUERY_HEADER_FLAG_KPHP_DELAY,4,2 ## @TL_QUERY_HEADER_FLAG_KPHP_DELAY
	.comm	_TL_QUERY_HEADER_FLAG_STRING_FORWARD,4,2 ## @TL_QUERY_HEADER_FLAG_STRING_FORWARD
	.comm	_TL_QUERY_HEADER_FLAG_INT_FORWARD,4,2 ## @TL_QUERY_HEADER_FLAG_INT_FORWARD
	.comm	_TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME,4,2 ## @TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME
	.comm	_TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT,4,2 ## @TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT
	.comm	_RPC_DEST_ACTOR,4,2             ## @RPC_DEST_ACTOR
	.comm	_TL_OUT_QID,8,3                 ## @TL_OUT_QID
	.comm	_RPC_REQ_RESULT_FLAGS,4,2       ## @RPC_REQ_RESULT_FLAGS
	.comm	_TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS,4,2 ## @TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS
	.comm	_TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME,4,2 ## @TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_write_header                ; -- Begin function tl_write_header
	.p2align	2
_tl_write_header:                       ; @tl_write_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _RPC_REQ_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RPC_REQ_ERROR@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x23, _RPC_REQ_RESULT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RPC_REQ_RESULT@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh4:
	adrp	x25, _RPC_INVOKE_REQ@GOTPAGE
Lloh5:
	ldr	x25, [x25, _RPC_INVOKE_REQ@GOTPAGEOFF]
	ldr	w11, [x25]
Lloh6:
	adrp	x24, _RPC_REQ_ERROR_WRAPPED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RPC_REQ_ERROR_WRAPPED@GOTPAGEOFF]
	ldr	w12, [x24]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
Lloh8:
	adrp	x26, _RPC_INVOKE_KPHP_REQ@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RPC_INVOKE_KPHP_REQ@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w9, [x26]
	cmp	w8, w9
	cset	w0, eq
LBB0_3:
	bl	_assert
	ldr	w8, [x20]
	ldr	w10, [x25]
	ldr	w9, [x26]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_7
; %bb.4:
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.5:
	subs	w23, w19, #24
	b.lt	LBB0_57
; %bb.6:
	ldr	w1, [x20, #124]
	mov	x0, x22
	mov	w2, #24
	bl	_memcpy
	add	x22, x22, #96
	b	LBB0_11
LBB0_7:
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.8:
	cmp	w19, #12
	b.lt	LBB0_57
; %bb.9:
	ldr	w8, [x21]
	str	w8, [x22]
Lloh10:
	adrp	x8, _TL_OUT_QID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TL_OUT_QID@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	stur	x8, [x22, #4]
	mov	w0, #12
	b	LBB0_58
LBB0_10:
	mov	x23, x19
LBB0_11:
	ldr	x9, [x20, #8]
	ldr	w10, [x20, #16]
	cbz	x9, LBB0_20
; %bb.12:
	cbnz	w10, LBB0_21
; %bb.13:
	cmp	w23, #12
	b.lt	LBB0_57
; %bb.14:
Lloh13:
	adrp	x8, _RPC_DEST_ACTOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RPC_DEST_ACTOR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x22]
	stur	x9, [x22, #4]
	mov	w0, #12
	b	LBB0_58
LBB0_15:
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_31
; %bb.16:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_31
; %bb.17:
	cmp	w19, #32
	b.lt	LBB0_57
; %bb.18:
Lloh16:
	adrp	x8, _RPC_REQ_RESULT_FLAGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RPC_REQ_RESULT_FLAGS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	w8, [x20, #16]
	str	w8, [x22, #4]
	ldr	w8, [x20, #16]
Lloh19:
	adrp	x9, _TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_59
; %bb.19:
	ldr	x9, [x20, #88]
	str	x9, [x22, #8]
	add	x10, x22, #16
	sub	w9, w19, #16
	b	LBB0_60
LBB0_20:
	cbz	w10, LBB0_31
LBB0_21:
Lloh22:
	adrp	x8, _TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS@GOTPAGEOFF]
	ldr	w11, [x8]
	tst	w11, w10
	b.eq	LBB0_24
; %bb.22:
	ldp	x12, x13, [x20, #24]
	cmp	x12, x13
	b.lt	LBB0_24
; %bb.23:
	bic	w10, w10, w11
	str	w10, [x20, #16]
LBB0_24:
Lloh24:
	adrp	x24, _TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS@GOTPAGE
Lloh25:
	ldr	x24, [x24, _TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS@GOTPAGEOFF]
	ldr	w11, [x24]
	tst	w11, w10
	b.eq	LBB0_27
; %bb.25:
	ldp	x12, x13, [x20, #40]
	cmp	x12, x13
	b.lt	LBB0_27
; %bb.26:
	bic	w10, w10, w11
	str	w10, [x20, #16]
LBB0_27:
	subs	w21, w23, #16
	b.lt	LBB0_57
; %bb.28:
Lloh26:
	adrp	x10, _RPC_DEST_ACTOR_FLAGS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _RPC_DEST_ACTOR_FLAGS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	str	w10, [x22]
	stur	x9, [x22, #4]
	ldr	w9, [x20, #16]
	str	w9, [x22, #12]
	ldr	w9, [x20, #16]
Lloh29:
	adrp	x10, _TL_QUERY_HEADER_FLAG_WAIT_BINLOG@GOTPAGE
Lloh30:
	ldr	x10, [x10, _TL_QUERY_HEADER_FLAG_WAIT_BINLOG@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_32
; %bb.29:
	subs	w21, w23, #24
	b.lo	LBB0_57
; %bb.30:
	ldr	x10, [x20, #56]
	str	x10, [x22, #16]
	add	x22, x22, #24
	b	LBB0_33
LBB0_31:
	mov	w0, #0
	b	LBB0_58
LBB0_32:
	add	x22, x22, #16
LBB0_33:
Lloh32:
	adrp	x10, _TL_QUERY_HEADER_FLAG_KPHP_DELAY@GOTPAGE
Lloh33:
	ldr	x10, [x10, _TL_QUERY_HEADER_FLAG_KPHP_DELAY@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_36
; %bb.34:
	subs	w21, w21, #4
	b.lo	LBB0_57
; %bb.35:
	ldr	w9, [x20, #120]
	str	w9, [x22], #4
	ldr	w9, [x20, #16]
LBB0_36:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_41
; %bb.37:
	subs	w21, w21, #4
	b.lo	LBB0_57
; %bb.38:
	ldp	x9, x8, [x20, #24]
	sub	w10, w8, w9
	str	w10, [x22], #4
	sxtw	x25, w9
	cmp	x8, x25
	b.le	LBB0_41
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #112]
	ldr	w23, [x8, x25, lsl #2]
	mov	x0, x23
	bl	_strlen
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	bl	_tl_write_string
	tbnz	w0, #31, LBB0_58
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	and	w8, w0, #0xfffffffc
	add	x22, x22, x8
	sub	w21, w21, w0
	add	x25, x25, #1
	ldr	x8, [x20, #32]
	cmp	x8, x25
	b.gt	LBB0_39
LBB0_41:
	ldr	w8, [x20, #16]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_46
; %bb.42:
	subs	w21, w21, #4
	b.lt	LBB0_57
; %bb.43:
	ldp	x9, x8, [x20, #40]
	sub	w10, w8, w9
	str	w10, [x22], #4
	sxtw	x9, w9
	cmp	x8, x9
	b.le	LBB0_46
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #8
	b.lt	LBB0_57
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x10, [x20, #64]
	ldr	x10, [x10, x9, lsl #3]
	str	x10, [x22], #8
	add	x9, x9, #1
	cmp	x8, x9
	b.gt	LBB0_44
LBB0_46:
	ldr	w8, [x20, #16]
Lloh35:
	adrp	x9, _TL_QUERY_HEADER_FLAG_STRING_FORWARD@GOTPAGE
Lloh36:
	ldr	x9, [x9, _TL_QUERY_HEADER_FLAG_STRING_FORWARD@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_49
; %bb.47:
	ldr	w23, [x20, #108]
	mov	x0, x23
	bl	_strlen
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	bl	_tl_write_string
	tbnz	w0, #31, LBB0_57
; %bb.48:
	and	w8, w0, #0xfffffffc
	add	x22, x22, x8
	sub	w21, w21, w0
	ldr	w8, [x20, #16]
LBB0_49:
Lloh38:
	adrp	x9, _TL_QUERY_HEADER_FLAG_INT_FORWARD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TL_QUERY_HEADER_FLAG_INT_FORWARD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_52
; %bb.50:
	subs	w21, w21, #8
	b.lt	LBB0_57
; %bb.51:
	ldr	x9, [x20, #72]
	str	x9, [x22], #8
LBB0_52:
Lloh41:
	adrp	x9, _TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME@GOTPAGE
Lloh42:
	ldr	x9, [x9, _TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_55
; %bb.53:
	subs	w21, w21, #8
	b.lt	LBB0_57
; %bb.54:
	ldr	x9, [x20, #80]
	str	x9, [x22], #8
LBB0_55:
Lloh44:
	adrp	x9, _TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_64
; %bb.56:
	subs	w21, w21, #4
	b.ge	LBB0_63
LBB0_57:
	mov	w0, #-1
LBB0_58:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_59:
	add	x10, x22, #8
	sub	w9, w19, #8
LBB0_60:
Lloh47:
	adrp	x11, _TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME@GOTPAGE
Lloh48:
	ldr	x11, [x11, _TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_62
; %bb.61:
	ldr	x8, [x20, #96]
	str	x8, [x10]
	sub	w9, w9, #8
LBB0_62:
	sub	w0, w19, w9
	b	LBB0_58
LBB0_63:
	ldr	w8, [x20, #104]
	str	w8, [x22]
LBB0_64:
	sub	w0, w19, w21
	b	LBB0_58
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_REQ_ERROR,4,2              ; @RPC_REQ_ERROR
	.comm	_RPC_REQ_RESULT,4,2             ; @RPC_REQ_RESULT
	.comm	_RPC_INVOKE_REQ,8,3             ; @RPC_INVOKE_REQ
	.comm	_RPC_REQ_ERROR_WRAPPED,4,2      ; @RPC_REQ_ERROR_WRAPPED
	.comm	_RPC_INVOKE_KPHP_REQ,8,3        ; @RPC_INVOKE_KPHP_REQ
	.comm	_TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS,4,2 ; @TL_QUERY_HEADER_FLAG_STRING_FORWARD_KEYS
	.comm	_TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS,4,2 ; @TL_QUERY_HEADER_FLAG_INT_FORWARD_KEYS
	.comm	_RPC_DEST_ACTOR_FLAGS,4,2       ; @RPC_DEST_ACTOR_FLAGS
	.comm	_TL_QUERY_HEADER_FLAG_WAIT_BINLOG,4,2 ; @TL_QUERY_HEADER_FLAG_WAIT_BINLOG
	.comm	_TL_QUERY_HEADER_FLAG_KPHP_DELAY,4,2 ; @TL_QUERY_HEADER_FLAG_KPHP_DELAY
	.comm	_TL_QUERY_HEADER_FLAG_STRING_FORWARD,4,2 ; @TL_QUERY_HEADER_FLAG_STRING_FORWARD
	.comm	_TL_QUERY_HEADER_FLAG_INT_FORWARD,4,2 ; @TL_QUERY_HEADER_FLAG_INT_FORWARD
	.comm	_TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME,4,2 ; @TL_QUERY_HEADER_FLAG_WAIT_BINLOG_TIME
	.comm	_TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT,4,2 ; @TL_QUERY_HEADER_FLAG_CUSTOM_TIMEOUT
	.comm	_RPC_DEST_ACTOR,4,2             ; @RPC_DEST_ACTOR
	.comm	_TL_OUT_QID,8,3                 ; @TL_OUT_QID
	.comm	_RPC_REQ_RESULT_FLAGS,4,2       ; @RPC_REQ_RESULT_FLAGS
	.comm	_TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS,4,2 ; @TL_QUERY_RESULT_HEADER_FLAG_BINLOG_POS
	.comm	_TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME,4,2 ; @TL_QUERY_RESULT_HEADER_FLAG_BINLOG_TIME
.subsections_via_symbols
