	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__secure_send_create_rpc_query  ## -- Begin function _secure_send_create_rpc_query
	.p2align	4, 0x90
__secure_send_create_rpc_query:         ## @_secure_send_create_rpc_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
	movl	%esi, %r15d
	callq	_default_create_rpc_query
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$40, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	$0, 32(%rax)
	movq	_tl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%rbx)
	callq	_malloc
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_memset
	movq	_TL_OUT_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_tl_type_conn@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_TL_OUT_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RPCS_DATA
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_CC@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$0, 8(%rbx)
	movl	12(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_tl_store_read_back_nondestruct
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	movq	_secure_send_s0@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, 8(%r14)
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_log_last_pos
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_insert_binlog_pos
	movq	_LEV_QUERY_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	$32, %rsi
	xorl	%edx, %edx
	callq	_alloc_log_event
	movl	4(%r14), %ecx
	movl	%ecx, 28(%rax)
	movl	(%r14), %ecx
	movl	%ecx, 24(%rax)
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	(%rbx), %rdx
	movq	%rdx, (%rax)
	movl	20(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 12(%rax)
	movl	8(%rax), %edi
	movl	12(%rbx), %esi
	callq	_memcpy
	movl	$1, 8(%rbx)
	movq	_binlog_mode_on@GOTPCREL(%rip), %rax
	testb	$2, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_flush_cbinlog
LBB0_4:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tl,8,3                         ## @tl
	.comm	_TL_OUT_TYPE,8,3                ## @TL_OUT_TYPE
	.comm	_tl_type_conn,8,3               ## @tl_type_conn
	.comm	_TL_OUT_CONN,4,2                ## @TL_OUT_CONN
	.comm	_CC,8,3                         ## @CC
	.comm	_secure_send_s0,4,2             ## @secure_send_s0
	.comm	_LEV_QUERY_TX,4,2               ## @LEV_QUERY_TX
	.comm	_binlog_mode_on,4,2             ## @binlog_mode_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__secure_send_create_rpc_query  ; -- Begin function _secure_send_create_rpc_query
	.p2align	2
__secure_send_create_rpc_query:         ; @_secure_send_create_rpc_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	x21, x1
	bl	_default_create_rpc_query
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	w0, #40
	bl	_zmalloc
	mov	x20, x0
	str	xzr, [x0, #32]
Lloh0:
	adrp	x8, _tl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tl@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	str	x0, [x20]
	bl	_malloc
	str	w0, [x20, #12]
	ldr	x2, [x20]
	mov	w1, #0
	bl	_memset
Lloh3:
	adrp	x8, _TL_OUT_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TL_OUT_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _tl_type_conn@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tl_type_conn@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh9:
	adrp	x8, _TL_OUT_CONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TL_OUT_CONN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_RPCS_DATA
	ldr	w8, [x0]
Lloh12:
	adrp	x22, _CC@GOTPAGE
Lloh13:
	ldr	x22, [x22, _CC@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w9, [x9, #4]
	stp	w9, w8, [x20, #16]
	str	wzr, [x20, #8]
	ldr	w0, [x20, #12]
	ldr	x1, [x20]
	bl	_tl_store_read_back_nondestruct
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
Lloh14:
	adrp	x8, _secure_send_s0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _secure_send_s0@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	x20, [x19, #8]
	cbz	w21, LBB0_4
; %bb.2:
	bl	_log_last_pos
	str	w0, [x20, #24]
	mov	w1, #0
	bl	_insert_binlog_pos
Lloh16:
	adrp	x8, _LEV_QUERY_TX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LEV_QUERY_TX@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, #32
	mov	w2, #0
	bl	_alloc_log_event
	ldr	d0, [x19]
	str	d0, [x0, #24]
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x0, #20]
	ldr	x2, [x20]
	str	x2, [x0]
	ldr	d0, [x20, #16]
	stur	d0, [x0, #12]
	ldr	w0, [x0, #8]
	ldr	w1, [x20, #12]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x20, #8]
Lloh19:
	adrp	x8, _binlog_mode_on@GOTPAGE
Lloh20:
	ldr	x8, [x8, _binlog_mode_on@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbz	w8, #1, LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_flush_cbinlog
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_tl,8,3                         ; @tl
	.comm	_TL_OUT_TYPE,8,3                ; @TL_OUT_TYPE
	.comm	_tl_type_conn,8,3               ; @tl_type_conn
	.comm	_TL_OUT_CONN,4,2                ; @TL_OUT_CONN
	.comm	_CC,8,3                         ; @CC
	.comm	_secure_send_s0,4,2             ; @secure_send_s0
	.comm	_LEV_QUERY_TX,4,2               ; @LEV_QUERY_TX
	.comm	_binlog_mode_on,4,2             ; @binlog_mode_on
.subsections_via_symbols
