	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pending_tcp_query              ## -- Begin function pending_tcp_query
	.p2align	4, 0x90
_pending_tcp_query:                     ## @pending_tcp_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	32(%rax), %r12
	movl	$72, %edi
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_sldns_buffer_limit
	movq	%rax, %rdi
	addq	$72, %rdi
LBB0_2:
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	28(%rax), %edi
	movq	_outnet_tcptimer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_comm_timer_create
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	(%r14), %rax
	movl	24(%rax), %edi
	callq	_ub_random
	shrl	$8, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movzwl	%ax, %r13d
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_LDNS_ID_SET
	leaq	68(%rbx), %rdi
	leaq	16(%r14), %rsi
	movl	28(%r14), %edx
	callq	_memcpy
	movl	28(%r14), %eax
	movl	%eax, 64(%rbx)
	movq	(%r14), %rax
	movq	%rax, 56(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 28(%rbx)
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -56(%rbp)
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, -52(%rbp)
	movl	24(%rbx), %edi
	leaq	-56(%rbp), %rsi
	callq	_comm_timer_set
	testq	%r12, %r12
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_sldns_buffer_limit
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_outnet_tcp_take_into_use
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	callq	_waiting_tcp_delete
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rax
	addq	$288, %rax                      ## imm = 0x120
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_sldns_buffer_limit
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %r12
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	movq	8(%rbx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_memmove
	movq	$0, (%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rcx
	leaq	8(%rax), %rdx
	testq	%rcx, %rcx
	cmovneq	%rcx, %rdx
	movq	%rbx, (%rdx)
	movq	%rbx, (%rax)
LBB0_10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_outnet_tcptimer,4,2            ## @outnet_tcptimer
	.comm	_comm_tcp,4,2                   ## @comm_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pending_tcp_query              ; -- Begin function pending_tcp_query
	.p2align	2
_pending_tcp_query:                     ; @pending_tcp_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x26, [x8, #32]
	cbz	x26, LBB0_2
; %bb.1:
	mov	w0, #72
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_sldns_buffer_limit
	add	x0, x0, #72
LBB0_3:
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8, #28]
Lloh0:
	adrp	x8, _outnet_tcptimer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _outnet_tcptimer@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_comm_timer_create
	str	w0, [x19, #24]
	cbz	w0, LBB0_8
; %bb.5:
	stp	xzr, xzr, [x19, #8]
	ldr	x8, [x20]
	ldr	w0, [x8, #24]
	bl	_ub_random
	ubfx	w25, w0, #8, #16
	mov	x0, x21
	bl	_sldns_buffer_begin
	mov	x1, x25
	bl	_LDNS_ID_SET
	add	x0, x19, #68
	add	x1, x20, #16
	ldr	w2, [x20, #28]
	bl	_memcpy
	ldr	w8, [x20, #28]
	str	w8, [x19, #64]
	ldr	x8, [x20]
	stp	x24, x8, [x19, #48]
	str	x23, [x19, #40]
	ldur	d0, [x20, #20]
	stur	d0, [x19, #28]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w10, w8, w9, w22
	mul	w9, w10, w9
	stp	w8, w9, [sp, #8]
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	bl	_comm_timer_set
	cbz	x26, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_sldns_buffer_begin
	mov	x20, x0
	mov	x0, x21
	bl	_sldns_buffer_limit
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_outnet_tcp_take_into_use
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_waiting_tcp_delete
	mov	x19, #0
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_10
LBB0_9:
	add	x8, x19, #288
	str	x8, [x19, #16]
	mov	x0, x21
	bl	_sldns_buffer_limit
	str	x0, [x19, #8]
	ldr	x22, [x19, #16]
	mov	x0, x21
	bl	_sldns_buffer_begin
	mov	x1, x0
	ldr	x2, [x19, #8]
	mov	x0, x22
	bl	_memmove
	str	xzr, [x19]
	ldr	x8, [x20]
	ldr	x9, [x8]
	add	x10, x8, #8
	cmp	x9, #0
	csel	x9, x10, x9, eq
	str	x19, [x9]
	str	x19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_outnet_tcptimer,4,2            ; @outnet_tcptimer
	.comm	_comm_tcp,4,2                   ; @comm_tcp
.subsections_via_symbols
