	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_nameservers_randomize ## -- Begin function ldns_resolver_nameservers_randomize
	.p2align	4, 0x90
_ldns_resolver_nameservers_randomize:   ## @ldns_resolver_nameservers_randomize
	.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	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_ldns_resolver_nameservers
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ldns_resolver_rtt
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_ldns_resolver_nameserver_count
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%rbx,8), %rax
	movq	(%r15,%rdx,8), %rcx
	movq	%rcx, (%r15,%rbx,8)
	movq	%rax, (%r15,%rdx,8)
	movq	(%r12,%rbx,8), %rax
	movq	(%r12,%rdx,8), %rcx
	movq	%rcx, (%r12,%rbx,8)
	movq	%rax, (%r12,%rdx,8)
	incq	%rbx
	movq	%r14, %rdi
	callq	_ldns_resolver_nameserver_count
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ldns_get_random
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_ldns_resolver_nameserver_count
	movq	%rax, %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_resolver_set_nameservers  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_nameservers_randomize ; -- Begin function ldns_resolver_nameservers_randomize
	.p2align	2
_ldns_resolver_nameservers_randomize:   ; @ldns_resolver_nameservers_randomize
	.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	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_ldns_resolver_nameservers
	mov	x20, x0
	mov	x0, x19
	bl	_ldns_resolver_rtt
	mov	x21, x0
	mov	x0, x19
	bl	_ldns_resolver_nameserver_count
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ldns_get_random
	mov	x22, x0
	mov	x0, x19
	bl	_ldns_resolver_nameserver_count
	udiv	x8, x22, x0
	lsl	x9, x23, #3
	ldr	x10, [x20, x9]
	msub	x8, x8, x0, x22
	lsl	x8, x8, #3
	ldr	x11, [x20, x8]
	str	x11, [x20, x9]
	str	x10, [x20, x8]
	ldr	x10, [x21, x9]
	ldr	x11, [x21, x8]
	str	x11, [x21, x9]
	str	x10, [x21, x8]
	add	x23, x23, #1
	mov	x0, x19
	bl	_ldns_resolver_nameserver_count
	cmp	x23, x0
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	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
	b	_ldns_resolver_set_nameservers
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
