	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_pick
_f_pick:                                ## @f_pick
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_F_FLOW_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_3
## %bb.1:
	movslq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rsi
	cmpq	8(%rbx), %rsi
	jl	LBB0_5
## %bb.2:
	addq	%rdx, %rcx
	leal	1(%rax), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	xorl	%eax, %eax
	cmpl	16(%rbx), %edx
	cmovll	%edx, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_random32
	cltd
	idivl	16(%rbx)
	movl	%edx, %eax
	movl	%edx, (%rbx)
	movq	24(%rbx), %rcx
	movslq	%edx, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rsi
	cmpq	8(%rbx), %rsi
	jle	LBB0_5
## %bb.4:
	addq	%rdx, %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_FLOW_SEQ,4,2                 ## @F_FLOW_SEQ
	.no_dead_strip	_f_pick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_pick
_f_pick:                                ; @f_pick
	.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
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _F_FLOW_SEQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _F_FLOW_SEQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldrsw	x0, [x19]
	ldr	x8, [x19, #24]
	add	x8, x8, x0, lsl #4
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.lt	LBB0_5
; %bb.2:
	add	w9, w0, #1
	stp	xzr, xzr, [x8]
	ldr	w8, [x19, #16]
	cmp	w9, w8
	csinc	w0, wzr, w0, ge
	str	w0, [x19]
	b	LBB0_5
LBB0_3:
	bl	_random32
	ldr	w8, [x19, #16]
	sdiv	w9, w0, w8
	msub	w0, w9, w8, w0
	str	w0, [x19]
	ldr	x8, [x19, #24]
	add	x8, x8, w0, sxtw #4
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.le	LBB0_5
; %bb.4:
	stp	xzr, xzr, [x8]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_F_FLOW_SEQ,4,2                 ; @F_FLOW_SEQ
	.no_dead_strip	_f_pick
.subsections_via_symbols
