	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_randomid
_ip_randomid:                           ## @ip_randomid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_V_ip_id_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	$0, -32(%rbp)
	xorl	%ecx, %ecx
	leaq	-32(%rbp), %rbx
	movq	_V_id_bits@GOTPCREL(%rip), %r14
	movq	_V_random_id_collisions@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	(%r15)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_arc4rand
	movl	(%r14), %edi
	movq	-32(%rbp), %rsi
	callq	_bit_test
	movq	-32(%rbp), %rcx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.5:
	movl	(%r14), %edi
	movq	_V_id_array@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_V_array_ptr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	_bit_clear
	movl	(%r14), %edi
	movq	-32(%rbp), %rsi
	callq	_bit_set
	movq	-32(%rbp), %rax
	movq	(%r15), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	incq	%rax
	movq	_V_array_size@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovneq	%rax, %rdx
	movq	%rdx, (%rbx)
	movq	_V_random_id_total@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_V_ip_id_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ip_id_mtx,4,2                ## @V_ip_id_mtx
	.comm	_V_random_id_collisions,4,2     ## @V_random_id_collisions
	.comm	_V_id_bits,4,2                  ## @V_id_bits
	.comm	_V_id_array,8,3                 ## @V_id_array
	.comm	_V_array_ptr,8,3                ## @V_array_ptr
	.comm	_V_array_size,8,3               ## @V_array_size
	.comm	_V_random_id_total,4,2          ## @V_random_id_total
	.no_dead_strip	_ip_randomid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_randomid
_ip_randomid:                           ; @ip_randomid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x0, _V_ip_id_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _V_ip_id_mtx@GOTPAGEOFF]
	bl	_mtx_lock
	mov	x8, #0
	str	xzr, [sp, #8]
Lloh2:
	adrp	x19, _V_id_bits@GOTPAGE
Lloh3:
	ldr	x19, [x19, _V_id_bits@GOTPAGEOFF]
Lloh4:
	adrp	x20, _V_random_id_collisions@GOTPAGE
Lloh5:
	ldr	x20, [x20, _V_random_id_collisions@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #0
	bl	_arc4rand
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_bit_test
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_1
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x20, _V_id_array@GOTPAGE
Lloh7:
	ldr	x20, [x20, _V_id_array@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh8:
	adrp	x21, _V_array_ptr@GOTPAGE
Lloh9:
	ldr	x21, [x21, _V_array_ptr@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x1, [x8, x9, lsl #3]
	bl	_bit_clear
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_bit_set
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	ldr	x10, [x21]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [x21]
	add	x9, x8, #1
Lloh10:
	adrp	x10, _V_array_size@GOTPAGE
Lloh11:
	ldr	x10, [x10, _V_array_size@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, xzr, x8, eq
	str	x8, [x21]
Lloh13:
	adrp	x8, _V_random_id_total@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V_random_id_total@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh15:
	adrp	x0, _V_ip_id_mtx@GOTPAGE
Lloh16:
	ldr	x0, [x0, _V_ip_id_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ip_id_mtx,4,2                ; @V_ip_id_mtx
	.comm	_V_random_id_collisions,4,2     ; @V_random_id_collisions
	.comm	_V_id_bits,4,2                  ; @V_id_bits
	.comm	_V_id_array,8,3                 ; @V_id_array
	.comm	_V_array_ptr,8,3                ; @V_array_ptr
	.comm	_V_array_size,8,3               ; @V_array_size
	.comm	_V_random_id_total,4,2          ; @V_random_id_total
	.no_dead_strip	_ip_randomid
.subsections_via_symbols
