	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_query_act                   ## -- Begin function tl_query_act
	.p2align	4, 0x90
_tl_query_act:                          ## @tl_query_act
	.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	_RPC_INVOKE_REQ@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_WaitAioArrClear
	addl	$-4, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tl_fetch_init
	movl	$8, %edi
	callq	_zmalloc
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_tl_fetch_query_header
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_tl_store_init_keep_error
	movl	$1, %edi
	cmpl	%r13d, (%r12)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_tl_fetch_error
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_assert
	movq	%r12, %rdi
	callq	___tl_query_act
	xorl	%eax, %eax
	callq	_tl_fetch_unread
	leaq	4(%rax), %rsi
	movq	%r15, %rdi
	callq	_advance_skip_read_ptr
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_tl_fetch_unread
	addq	$4, %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	jmp	LBB0_5
LBB0_1:
	movq	_SKIP_ALL_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_INVOKE_REQ,4,2             ## @RPC_INVOKE_REQ
	.comm	_SKIP_ALL_BYTES,4,2             ## @SKIP_ALL_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_query_act                   ; -- Begin function tl_query_act
	.p2align	2
_tl_query_act:                          ; @tl_query_act
	.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
Lloh0:
	adrp	x8, _RPC_INVOKE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPC_INVOKE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_WaitAioArrClear
	sub	w1, w20, #4
	mov	x0, x19
	bl	_tl_fetch_init
	mov	w0, #8
	bl	_zmalloc
	mov	x20, x0
	bl	_tl_fetch_query_header
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_tl_store_init_keep_error
	ldr	w8, [x20]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _SKIP_ALL_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SKIP_ALL_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	bl	_tl_fetch_error
	cmp	x0, #0
	cset	w0, ne
LBB0_5:
	bl	_assert
	mov	x0, x20
	bl	___tl_query_act
	bl	_tl_fetch_unread
	add	x1, x0, #4
	mov	x0, x19
	bl	_advance_skip_read_ptr
	mov	x19, x0
	bl	_tl_fetch_unread
	add	x8, x0, #4
	cmp	x19, x8
	cset	w0, eq
	bl	_assert
	mov	w0, #0
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_INVOKE_REQ,4,2             ; @RPC_INVOKE_REQ
	.comm	_SKIP_ALL_BYTES,4,2             ; @SKIP_ALL_BYTES
.subsections_via_symbols
