	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outnet_serviced_query          ## -- Begin function outnet_serviced_query
	.p2align	4, 0x90
_outnet_serviced_query:                 ## @outnet_serviced_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
	movl	%r9d, %r14d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	72(%rbp), %r13
	movq	56(%rbp), %r9
	movl	48(%rbp), %r8d
	movq	40(%rbp), %rcx
	movq	104(%rbp), %rdi
	movl	4(%r13), %eax
	subq	$8, %rsp
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	pushq	%r13
	pushq	64(%rbp)
	callq	_inplace_cb_query_call
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	96(%rbp), %r14
	movl	16(%r12), %esi
	movl	12(%r12), %edx
	movq	(%r12), %rcx
	movl	8(%r12), %r8d
	movq	%r14, %rdi
	movl	%ebx, %r9d
	callq	_serviced_gen_query
	movl	(%r13), %r9d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	40(%rbp), %r15
	movq	%r15, %rcx
	movl	48(%rbp), %r13d
	movl	%r13d, %r8d
	callq	_lookup_serviced
	movq	%rax, %r14
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	testq	%r14, %r14
	je	LBB0_6
LBB0_3:
	movq	88(%rbp), %rdx
	movq	80(%rbp), %rcx
	movq	%rcx, 24(%rax)
	movq	%rdx, 16(%rax)
	movq	(%r14), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%r14)
	jmp	LBB0_15
LBB0_6:
	movq	%r15, %r11
	movq	%r13, %r10
	movl	%ebx, %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r13d
	movl	16(%rbp), %r9d
	movl	(%r12), %eax
	movq	72(%rbp), %rcx
	movl	(%rcx), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	96(%rbp), %r12
	movq	%r12, %rsi
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	%r9d, %r15d
	pushq	%rbx
	pushq	%rax
	pushq	64(%rbp)
	pushq	56(%rbp)
	pushq	%r10
	pushq	%r11
	pushq	32(%rbp)
	pushq	%r13
	callq	_serviced_create
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r14
	orl	%r15d, %r13d
	jne	LBB0_11
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_serviced_udp_send
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_serviced_tcp_send
	testl	%eax, %eax
	jne	LBB0_10
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_rbtree_delete
	movq	40(%r14), %rdi
	callq	_free
	movq	32(%r14), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outnet_serviced_query          ; -- Begin function outnet_serviced_query
	.p2align	2
_outnet_serviced_query:                 ; @outnet_serviced_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x7
	stp	w5, w6, [sp, #72]               ; 8-byte Folded Spill
	str	w4, [sp, #68]                   ; 4-byte Folded Spill
	mov	x26, x3
	mov	x19, x2
	mov	x25, x1
	mov	x21, x0
	ldp	x23, x20, [x29, #48]
	ldr	x24, [x29, #40]
	ldr	w22, [x29, #32]
	ldr	x28, [x29, #24]
	ldr	x0, [x29, #88]
	ldr	w8, [x20, #4]
	str	w8, [sp]
	mov	x3, x28
	mov	x4, x22
	mov	x5, x24
	mov	x6, x23
	mov	x7, x20
	bl	_inplace_cb_query_call
	cbz	w0, LBB0_11
; %bb.1:
	str	w27, [sp, #52]                  ; 4-byte Folded Spill
	ldr	x27, [x29, #80]
	ldp	w2, w1, [x25, #12]
	ldr	x3, [x25]
	ldr	w4, [x25, #8]
	mov	x0, x27
	mov	x5, x19
	bl	_serviced_gen_query
	ldr	w5, [x20]
	str	x21, [sp, #56]                  ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x27
	mov	x2, x26
	mov	x3, x28
	mov	x4, x22
	bl	_lookup_serviced
	mov	x21, x0
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	cbz	x21, LBB0_4
LBB0_3:
	ldp	x9, x8, [x29, #64]
	str	x9, [x19, #24]
	ldr	x9, [x21]
	stp	x9, x8, [x19, #8]
	str	x19, [x21]
	b	LBB0_12
LBB0_4:
	ldr	x7, [x29, #16]
	ldr	x8, [x25]
	ldr	w9, [x20]
	stp	w8, w9, [sp, #32]
	stp	x24, x23, [sp, #16]
	str	w22, [sp, #8]
	str	x28, [sp]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x27
	mov	x2, x26
	ldp	w3, w4, [sp, #68]               ; 8-byte Folded Reload
	ldr	w22, [sp, #76]                  ; 4-byte Folded Reload
	mov	x5, x22
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	mov	x6, x20
	bl	_serviced_create
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.5:
	orr	w8, w20, w22
	cbnz	w8, LBB0_9
; %bb.6:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x27
	bl	_serviced_udp_send
	cbnz	w0, LBB0_3
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_free
	b	LBB0_12
LBB0_9:
	mov	x0, x21
	mov	x1, x27
	bl	_serviced_tcp_send
	cbnz	w0, LBB0_3
LBB0_10:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x1, x21
	bl	_rbtree_delete
	ldr	x0, [x21, #40]
	bl	_free
	ldr	x0, [x21, #32]
	bl	_free
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
