	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_send_query                 ## -- Begin function rpc_send_query
	.p2align	4, 0x90
_rpc_send_query:                        ## @rpc_send_query
	.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, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	8(%rdi), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r14, %rdi
	callq	_server_check_ready
	movq	_cr_ok@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	$6, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_vkprintf
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_server_check_ready
	xorl	%r15d, %r15d
	cmpl	(%r12), %eax
	sete	%r15b
LBB0_2:
	movl	%r15d, %edi
	callq	_assert
	movl	(%rbx), %eax
	movq	_MAX_PACKET_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setle	%cl
	cmpl	$16, %eax
	setge	%dl
	testb	$3, %al
	sete	%al
	andb	%dl, %al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	(%rbx), %esi
	addl	$-4, %esi
	movq	%rbx, %rdi
	callq	_compute_crc32
	movl	(%rbx), %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	movl	%eax, -4(%rbx,%rcx,4)
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_out
	movq	%r14, %rdi
	callq	_RPCS_FUNC
	movq	%r14, %rdi
	callq	*(%rax)
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending query... len = %d, op = %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"c = %p, server_check_ready = %d (cr_ok = %d)\n"

	.comm	_cr_ok,4,2                      ## @cr_ok
	.comm	_MAX_PACKET_LEN,4,2             ## @MAX_PACKET_LEN
L_.str.2:                               ## @.str.2
	.asciz	"message_sent\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_send_query                 ; -- Begin function rpc_send_query
	.p2align	2
_rpc_send_query:                        ; @rpc_send_query
	.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
	ldr	w8, [x0]
	ldr	w9, [x0, #8]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	mov	x0, x19
	bl	_server_check_ready
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x21, _cr_ok@GOTPAGE
Lloh3:
	ldr	x21, [x21, _cr_ok@GOTPAGEOFF]
	ldr	w8, [x21]
	stp	x0, x8, [sp, #8]
	str	x19, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #6
	bl	_vkprintf
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_server_check_ready
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _MAX_PACKET_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_PACKET_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, #15
	ccmp	w8, w9, #0, gt
	cset	w9, le
	tst	w8, #0x3
	cset	w8, eq
	and	w0, w8, w9
	bl	_assert
	ldr	w8, [x20]
	sub	w1, w8, #4
	mov	x0, x20
	bl	_compute_crc32
	ldr	w8, [x20]
	asr	w8, w8, #2
	sub	w8, w8, #1
	str	w0, [x20, w8, sxtw #2]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_write_out
	mov	x0, x19
	bl	_RPCS_FUNC
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #4
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending query... len = %d, op = %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"c = %p, server_check_ready = %d (cr_ok = %d)\n"

	.comm	_cr_ok,4,2                      ; @cr_ok
	.comm	_MAX_PACKET_LEN,4,2             ; @MAX_PACKET_LEN
l_.str.2:                               ; @.str.2
	.asciz	"message_sent\n"

.subsections_via_symbols
