	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function randomize_and_send_udp
_randomize_and_send_udp:                ## @randomize_and_send_udp
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_select_id
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	8(%rbx), %r13
	movl	24(%rbx), %esi
	movq	%r13, %rdi
	callq	_addr_is_ip6
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	16(%r15), %ecx
	movl	20(%r15), %edx
	jmp	LBB0_4
LBB0_3:
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_select_ifport
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpq	$0, (%rax)
	setne	%dil
LBB0_7:
	callq	_log_assert
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movl	24(%rbx), %ecx
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_comm_point_send_udp_msg
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	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	12(%rbx), %edi
	leaq	-56(%rbp), %rsi
	callq	_comm_timer_set
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_portcomm_loweruse
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_udp,4,2                   ## @comm_udp
	.no_dead_strip	_randomize_and_send_udp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function randomize_and_send_udp
_randomize_and_send_udp:                ; @randomize_and_send_udp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_select_id
	cbz	w0, LBB0_11
; %bb.1:
	add	x23, x19, #8
	ldr	w1, [x19, #24]
	mov	x0, x23
	bl	_addr_is_ip6
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w3, w2, [x21, #16]
	b	LBB0_4
LBB0_3:
	ldp	w3, w2, [x21, #8]
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_select_ifport
	cbz	w0, LBB0_11
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_log_assert
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldr	w3, [x19, #24]
	mov	x1, x22
	mov	x2, x23
	bl	_comm_point_send_udp_msg
	cbz	w0, LBB0_10
; %bb.9:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w10, w8, w9, w20
	mul	w9, w10, w9
	stp	w8, w9, [sp, #8]
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	bl	_comm_timer_set
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	x1, [x19, #16]
	mov	x0, x21
	bl	_portcomm_loweruse
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_udp,4,2                   ; @comm_udp
	.no_dead_strip	_randomize_and_send_udp
.subsections_via_symbols
