	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__secure_receive_on_answer      ## -- Begin function _secure_receive_on_answer
	.p2align	4, 0x90
__secure_receive_on_answer:             ## @_secure_receive_on_answer
	.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
	movl	%edx, %r14d
	movq	(%rsi), %r15
	movl	$48, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movl	4(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	_CQ@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rdi
	leaq	__secure_receive_on_answer.buf(%rip), %r15
	movq	%r15, %rsi
	movl	$131072, %edx                   ## imm = 0x20000
	callq	_tl_write_header
	movl	%eax, %r12d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
	callq	_tl_fetch_unread
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %edi
	movl	%edi, (%rbx)
	callq	_malloc
	movq	%rax, 8(%rbx)
	movl	$0, 16(%rbx)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movslq	%r12d, %rax
	movq	8(%rbx), %rdi
	addq	%rax, %rdi
	movl	(%rbx), %esi
	subl	%eax, %esi
	callq	_tl_fetch_lookup_data
	movq	_secure_receive_answer_tree@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_tree_insert_secure_receive_answer
	movl	%eax, (%r12)
	movq	_secure_answer_allocated@GOTPCREL(%rip), %rax
	incl	(%rax)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_log_last_pos
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_insert_binlog_pos
	movq	_LEV_ANSWER_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	addl	$32, %esi
	xorl	%edx, %edx
	callq	_alloc_log_event
	movl	28(%rbx), %ecx
	movl	%ecx, 24(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 20(%rax)
	movl	20(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movl	(%rbx), %edx
	movl	%edx, (%rax)
	movq	8(%rax), %rdi
	movq	8(%rbx), %rsi
	callq	_memcpy
	movl	$1, 16(%rbx)
	movq	_binlog_mode_on@GOTPCREL(%rip), %rax
	testb	$2, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_flush_cbinlog
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,__secure_receive_on_answer.buf,131072,4 ## @_secure_receive_on_answer.buf
	.comm	_CQ,8,3                         ## @CQ
	.comm	_secure_receive_answer_tree,4,2 ## @secure_receive_answer_tree
	.comm	_secure_answer_allocated,4,2    ## @secure_answer_allocated
	.comm	_LEV_ANSWER_TX,4,2              ## @LEV_ANSWER_TX
	.comm	_binlog_mode_on,4,2             ## @binlog_mode_on
	.comm	_RPC_FUN_NEXT,4,2               ## @RPC_FUN_NEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__secure_receive_on_answer      ; -- Begin function _secure_receive_on_answer
	.p2align	2
__secure_receive_on_answer:             ; @_secure_receive_on_answer
	.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	x20, x2
	ldr	x21, [x1]
	mov	w0, #48
	bl	_zmalloc
	mov	x19, x0
	ldr	d0, [x21]
	str	d0, [x0, #24]
	str	xzr, [x0, #40]
Lloh0:
	adrp	x23, _CQ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CQ@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
Lloh2:
	adrp	x21, __secure_receive_on_answer.buf@PAGE
Lloh3:
	add	x21, x21, __secure_receive_on_answer.buf@PAGEOFF
	mov	x1, x21
	mov	w2, #131072
	bl	_tl_write_header
	mov	x22, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #20]
	bl	_tl_fetch_unread
	add	w0, w0, w22
	str	w0, [x19]
	bl	_malloc
	str	x0, [x19, #8]
	str	wzr, [x19, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, w22, sxtw
	ldr	w8, [x19]
	sub	w1, w8, w22
	bl	_tl_fetch_lookup_data
Lloh4:
	adrp	x22, _secure_receive_answer_tree@GOTPAGE
Lloh5:
	ldr	x22, [x22, _secure_receive_answer_tree@GOTPAGEOFF]
	ldr	w21, [x22]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_tree_insert_secure_receive_answer
	str	w0, [x22]
Lloh6:
	adrp	x8, _secure_answer_allocated@GOTPAGE
Lloh7:
	ldr	x8, [x8, _secure_answer_allocated@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cbz	w20, LBB0_3
; %bb.1:
	bl	_log_last_pos
	str	w0, [x19, #32]
	mov	w1, #0
	bl	_insert_binlog_pos
Lloh8:
	adrp	x8, _LEV_ANSWER_TX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LEV_ANSWER_TX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x19]
	add	w1, w8, #32
	mov	w2, #0
	bl	_alloc_log_event
	ldr	w8, [x19, #28]
	str	w8, [x0, #24]
	ldur	d0, [x19, #20]
	str	d0, [x0, #16]
	ldr	w2, [x19]
	str	w2, [x0]
	ldr	x0, [x0, #8]
	ldr	x1, [x19, #8]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #16]
Lloh11:
	adrp	x8, _binlog_mode_on@GOTPAGE
Lloh12:
	ldr	x8, [x8, _binlog_mode_on@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbz	w8, #1, LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_flush_cbinlog
LBB0_3:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,__secure_receive_on_answer.buf,131072,0 ; @_secure_receive_on_answer.buf
	.comm	_CQ,8,3                         ; @CQ
	.comm	_secure_receive_answer_tree,4,2 ; @secure_receive_answer_tree
	.comm	_secure_answer_allocated,4,2    ; @secure_answer_allocated
	.comm	_LEV_ANSWER_TX,4,2              ; @LEV_ANSWER_TX
	.comm	_binlog_mode_on,4,2             ; @binlog_mode_on
	.comm	_RPC_FUN_NEXT,4,2               ; @RPC_FUN_NEXT
.subsections_via_symbols
