	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcc_send_query                ## -- Begin function rpcc_send_query
	.p2align	4, 0x90
_rpcc_send_query:                       ## @rpcc_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	_req_id@GOTPCREL(%rip), %r14
	incl	(%r14)
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	_additional@GOTPCREL(%rip), %r12
	addl	(%r12), %esi
	leal	24(,%rsi,4), %eax
	movq	_P@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	callq	_RPCC_DATA
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	(%r15), %rdi
	movl	%ecx, 4(%rdi)
	movq	_RPC_INVOKE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	addq	$12, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	cmpl	$0, (%r12)
	jle	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	addq	$20, %rdi
	movq	_auth_key_id@GOTPCREL(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%r15), %rdi
	addq	$28, %rdi
	movq	_session_id@GOTPCREL(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_msg_id@GOTPCREL(%rip), %rsi
	incl	(%rsi)
	movq	(%r15), %rdi
	addq	$36, %rdi
	movl	$8, %edx
	callq	_memcpy
LBB0_2:
	movq	(%r15), %rdi
	movl	(%rdi), %esi
	addl	$-4, %esi
	callq	_compute_crc32
	movq	(%r15), %rsi
	movl	(%rsi), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edx, %rcx
	movl	%eax, -4(%rsi,%rcx,4)
	movl	(%rsi), %edx
	movq	%rbx, %rdi
	callq	_write_out
	movq	%rbx, %rdi
	callq	_RPCC_FUNC
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	(%r15), %rdi
	callq	_dump_rpc_packet
LBB0_4:
	movq	_expect_input@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_req_id,4,2                     ## @req_id
	.comm	_additional,4,2                 ## @additional
	.comm	_P,8,3                          ## @P
	.comm	_RPC_INVOKE_REQ,4,2             ## @RPC_INVOKE_REQ
	.comm	_auth_key_id,4,2                ## @auth_key_id
	.comm	_session_id,4,2                 ## @session_id
	.comm	_msg_id,4,2                     ## @msg_id
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending:\n"

	.comm	_expect_input,8,3               ## @expect_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcc_send_query                ; -- Begin function rpcc_send_query
	.p2align	2
_rpcc_send_query:                       ; @rpcc_send_query
	.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	x19, x0
Lloh0:
	adrp	x20, _req_id@GOTPAGE
Lloh1:
	ldr	x20, [x20, _req_id@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh2:
	adrp	x22, _additional@GOTPAGE
Lloh3:
	ldr	x22, [x22, _additional@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w1, w8
	lsl	w8, w8, #2
	add	w8, w8, #24
Lloh4:
	adrp	x21, _P@GOTPAGE
Lloh5:
	ldr	x21, [x21, _P@GOTPAGEOFF]
	ldr	x9, [x21]
	str	w8, [x9]
	bl	_RPCC_DATA
	ldr	w8, [x0]
	add	w9, w8, #1
	str	w9, [x0]
	ldr	x9, [x21]
Lloh6:
	adrp	x10, _RPC_INVOKE_REQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RPC_INVOKE_REQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w8, w10, [x9, #4]
	add	x0, x9, #12
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	add	x0, x8, #20
Lloh9:
	adrp	x1, _auth_key_id@GOTPAGE
Lloh10:
	ldr	x1, [x1, _auth_key_id@GOTPAGEOFF]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x21]
	add	x0, x8, #28
Lloh11:
	adrp	x1, _session_id@GOTPAGE
Lloh12:
	ldr	x1, [x1, _session_id@GOTPAGEOFF]
	mov	w2, #8
	bl	_memcpy
Lloh13:
	adrp	x1, _msg_id@GOTPAGE
Lloh14:
	ldr	x1, [x1, _msg_id@GOTPAGEOFF]
	ldr	w8, [x1]
	add	w8, w8, #1
	str	w8, [x1]
	ldr	x8, [x21]
	add	x0, x8, #36
	mov	w2, #8
	bl	_memcpy
LBB0_2:
	ldr	x0, [x21]
	ldr	w8, [x0]
	sub	w1, w8, #4
	bl	_compute_crc32
	ldr	x1, [x21]
	ldr	w8, [x1]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	sub	w8, w8, #1
	str	w0, [x1, w8, sxtw #2]
	ldr	w2, [x1]
	mov	x0, x19
	bl	_write_out
	mov	x0, x19
	bl	_RPCC_FUNC
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
Lloh15:
	adrp	x8, _verbosity@GOTPAGE
Lloh16:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x0, [x21]
	bl	_dump_rpc_packet
LBB0_4:
Lloh23:
	adrp	x8, _expect_input@GOTPAGE
Lloh24:
	ldr	x8, [x8, _expect_input@GOTPAGEOFF]
Lloh25:
	str	xzr, [x8]
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_req_id,4,2                     ; @req_id
	.comm	_additional,4,2                 ; @additional
	.comm	_P,8,3                          ; @P
	.comm	_RPC_INVOKE_REQ,4,2             ; @RPC_INVOKE_REQ
	.comm	_auth_key_id,4,2                ; @auth_key_id
	.comm	_session_id,4,2                 ; @session_id
	.comm	_msg_id,4,2                     ; @msg_id
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending:\n"

	.comm	_expect_input,8,3               ; @expect_input
.subsections_via_symbols
