	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_send_binlog_request        ## -- Begin function rpc_send_binlog_request
	.p2align	4, 0x90
_rpc_send_binlog_request:               ## @rpc_send_binlog_request
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_vkprintf
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_BINLOG_POSITION@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_RPC_TYPE_BINLOG_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$24, %esi
	movq	%r14, %rdx
	callq	_rpc_create_query
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	testq	%r12, %r12
	cmovgq	%r12, %r13
	movq	_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%rbx, (%r15)
	movq	%r13, 8(%r15)
	movq	%rbx, %rdi
	callq	_get_relative_by_id
	movslq	(%rax), %r12
	xorl	%edi, %edi
	cmpq	$3, %r12
	setb	%dil
	callq	_assert
	movq	_STATS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	8(%rax), %rax
	incl	(%rax,%r12,4)
	movq	_LOG_BINLOG_REQUEST_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_log_event
	movq	(%r13), %rax
	incl	(%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rpc_send_query                 ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movl	$-1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpc_send_binlog_request: remote_id = %lld, pos = %lld\n"

	.comm	_BINLOG_POSITION,8,3            ## @BINLOG_POSITION
	.comm	_Q,8,3                          ## @Q
	.comm	_RPC_TYPE_BINLOG_REQUEST,4,2    ## @RPC_TYPE_BINLOG_REQUEST
	.comm	_NODE_ID,4,2                    ## @NODE_ID
	.comm	_STATS,8,3                      ## @STATS
	.comm	_LOG_BINLOG_REQUEST_SENT,4,2    ## @LOG_BINLOG_REQUEST_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_send_binlog_request        ; -- Begin function rpc_send_binlog_request
	.p2align	2
_rpc_send_binlog_request:               ; @rpc_send_binlog_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	mov	x3, x22
	bl	_vkprintf
	cbz	x20, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _BINLOG_POSITION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BINLOG_POSITION@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
Lloh5:
	adrp	x8, _Q@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
Lloh8:
	adrp	x8, _RPC_TYPE_BINLOG_REQUEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RPC_TYPE_BINLOG_REQUEST@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w1, #24
	mov	x2, x19
	bl	_rpc_create_query
	tbnz	x0, #63, LBB0_4
; %bb.2:
	cmp	x22, #1
	csel	x8, x23, x22, lt
Lloh11:
	adrp	x9, _NODE_ID@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NODE_ID@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x21, #16]
	stp	x20, x8, [x21]
	mov	x0, x20
	bl	_get_relative_by_id
	ldrsw	x22, [x0]
	cmp	x22, #3
	cset	w0, lo
	bl	_assert
Lloh14:
	adrp	x23, _STATS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _STATS@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
Lloh16:
	adrp	x8, _LOG_BINLOG_REQUEST_SENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_BINLOG_REQUEST_SENT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w0, #1
	mov	x2, x20
	bl	_log_event
	ldr	x8, [x23]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rpc_send_query
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpc_send_binlog_request: remote_id = %lld, pos = %lld\n"

	.comm	_BINLOG_POSITION,8,3            ; @BINLOG_POSITION
	.comm	_Q,8,3                          ; @Q
	.comm	_RPC_TYPE_BINLOG_REQUEST,4,2    ; @RPC_TYPE_BINLOG_REQUEST
	.comm	_NODE_ID,4,2                    ; @NODE_ID
	.comm	_STATS,8,3                      ; @STATS
	.comm	_LOG_BINLOG_REQUEST_SENT,4,2    ; @LOG_BINLOG_REQUEST_SENT
.subsections_via_symbols
