	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daemon_get_shufport
_daemon_get_shufport:                   ## @daemon_get_shufport
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %rcx
	cmpq	$65536, %rcx                    ## imm = 0x10000
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rsi
	incl	%r12d
	movl	%edx, (%r14,%rsi,4)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rax,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rsi
	incl	%r12d
	movl	%edx, (%r14,%rsi,4)
	jmp	LBB0_5
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.8:
	cmpl	$2, %r12d
	jl	LBB0_11
## %bb.9:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rbx), %r13
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ub_random_max
	cltq
	movl	(%r14,%rax,4), %ecx
	movl	%r13d, %edx
	movl	(%r14,%rdx,4), %esi
	movl	%esi, (%r14,%rax,4)
	movl	%ecx, (%r14,%rdx,4)
	cmpq	$2, %rbx
	movq	%r13, %rbx
	ja	LBB0_10
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_fatal_exit
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no ports are permitted for UDP, add with outgoing-port-permit"

	.no_dead_strip	_daemon_get_shufport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daemon_get_shufport
_daemon_get_shufport:                   ; @daemon_get_shufport
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	mov	x8, #0
	mov	w19, #0
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #4
	cmp	x8, #64, lsl #12                ; =262144
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x8]
	cbz	w10, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w10, [x20, w19, sxtw #2]
	add	w19, w19, #1
	b	LBB0_1
LBB0_4:
	cbz	w19, LBB0_8
; %bb.5:
	cmp	w19, #2
	b.lt	LBB0_9
; %bb.6:
	mov	w22, w19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x23, x22, #1
	ldr	w0, [x21]
	mov	x1, x22
	bl	_ub_random_max
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #2, #32
	ldr	w9, [x20, x8]
	and	x10, x23, #0xffffffff
	lsl	x10, x10, #2
	ldr	w11, [x20, x10]
	str	w11, [x20, x8]
	str	w9, [x20, x10]
	cmp	x22, #2
	mov	x22, x23
	b.hi	LBB0_7
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no ports are permitted for UDP, add with outgoing-port-permit"

	.no_dead_strip	_daemon_get_shufport
.subsections_via_symbols
