	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pick_child
_pick_child:                            ## @pick_child
	.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	%rdi, %rbx
	movq	_Equal_probs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movl	(%rbx), %edi
	callq	_arc4random_uniform
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_DPRINTF
	movq	24(%rbx), %rbx
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.2:
	leal	-1(%r14), %eax
	movl	%r14d, %ecx
	andl	$7, %ecx
	je	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rbx
	incl	%edx
	cmpl	%edx, %ecx
	jne	LBB0_4
## %bb.5:
	subl	%edx, %r14d
LBB0_6:
	cmpl	$7, %eax
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	16(%rax), %rax
	movq	16(%rax), %rax
	movq	16(%rax), %rax
	movq	16(%rax), %rax
	movq	16(%rax), %rax
	movq	16(%rax), %rax
	movq	16(%rax), %rbx
	addl	$-8, %r14d
	jne	LBB0_7
LBB0_8:
	movl	8(%rbx), %esi
LBB0_12:
	movl	$1, %edi
	callq	_DPRINTF
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_get_tbl
	movl	4(%rbx), %edi
	callq	_arc4random_uniform
	movl	%eax, %r14d
	movl	4(%rbx), %esi
	movl	$1, %edi
	callq	_DPRINTF
	movq	24(%rbx), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	cmpl	%esi, %r14d
	jb	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	subl	%esi, %r14d
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_DPRINTF
	movq	16(%rbx), %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_Equal_probs,8,3                ## @Equal_probs
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_pick_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pick_child
_pick_child:                            ; @pick_child
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _Equal_probs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Equal_probs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w0, [x19]
	bl	_arc4random_uniform
	mov	x20, x0
	ldr	w1, [x19]
	mov	w0, #1
	bl	_DPRINTF
	ldr	x19, [x19, #24]
	cbz	w20, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x19, #16]
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w1, [x19, #8]
LBB0_4:
	mov	w0, #1
	bl	_DPRINTF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	bl	_get_tbl
	ldr	w0, [x19, #4]
	bl	_arc4random_uniform
	mov	x20, x0
	ldr	w1, [x19, #4]
	mov	w0, #1
	bl	_DPRINTF
	ldr	x19, [x19, #24]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #4]
	cmp	w20, w1
	b.lo	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w20, w20, w1
	mov	w0, #1
	mov	x1, x20
	bl	_DPRINTF
	ldr	x19, [x19, #16]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Equal_probs,8,3                ; @Equal_probs
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_pick_child
.subsections_via_symbols
