	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sample
_sample:                                ## @sample
	.cfi_startproc
## %bb.0:
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	imull	%edx, %ecx
	testb	$1, %sil
	jne	LBB0_3
## %bb.1:
	testb	$2, %sil
	leal	(%rcx,%rcx,2), %r10d
	cmovel	%ecx, %r10d
	movl	%esi, %eax
	shll	$29, %eax
	sarl	$31, %eax
	andl	%ecx, %eax
	movl	%eax, %ecx
	addl	%r10d, %ecx
	testb	$6, %sil
	je	LBB0_3
## %bb.2:
	imull	%edx, %r8d
	addl	%r8d, %ecx
LBB0_3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	sarl	$3, %eax
	movslq	%eax, %rsi
	movl	(%rdi,%rsi,4), %eax
	cmpl	$8, %edx
	je	LBB0_9
## %bb.4:
	jle	LBB0_8
## %bb.5:
	testl	%r9d, %r9d
	je	LBB0_7
## %bb.6:
	movl	4(%rdi,%rsi,4), %ecx
	shll	$8, %ecx
	addl	%ecx, %eax
	popq	%rbp
	retq
LBB0_8:
	andl	$7, %ecx
	leal	(%rcx,%rdx), %esi
	movb	$8, %dil
	subb	%sil, %dil
	cmpl	$0, 16(%rbp)
	movzbl	%dil, %esi
	cmovnel	%ecx, %esi
	movl	%esi, %ecx
	sarl	%cl, %eax
	movl	$-1, %esi
	movl	%edx, %ecx
	shll	%cl, %esi
	notl	%esi
	andl	%esi, %eax
LBB0_9:
	popq	%rbp
	retq
LBB0_7:
	shll	$8, %eax
	addl	4(%rdi,%rsi,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sample
_sample:                                ; @sample
	.cfi_startproc
; %bb.0:
	mul	w8, w3, w2
	tbnz	w1, #0, LBB0_3
; %bb.1:
	add	w9, w8, w8, lsl #1
	tst	w1, #0x2
	csel	w9, w8, w9, eq
	lsl	w10, w1, #29
	and	w8, w8, w10, asr #31
	add	w8, w9, w8
	tst	w1, #0x6
	b.eq	LBB0_3
; %bb.2:
	madd	w8, w4, w2, w8
LBB0_3:
	asr	w9, w8, #3
	add	x9, x0, w9, sxtw #2
	ldr	w0, [x9]
	cmp	w2, #8
	b.eq	LBB0_8
; %bb.4:
	cmp	w2, #9
	b.lt	LBB0_7
; %bb.5:
	cbz	w5, LBB0_9
; %bb.6:
	ldr	w8, [x9, #4]
	add	w0, w0, w8, lsl #8
	ret
LBB0_7:
	and	w8, w8, #0x7
	mov	w9, #8
	add	w10, w8, w2
	sub	w9, w9, w10
	cmp	w6, #0
	csel	w8, w9, w8, eq
	asr	w8, w0, w8
	mov	w9, #-1
	lsl	w9, w9, w2
	bic	w0, w8, w9
LBB0_8:
	ret
LBB0_9:
	ldr	w8, [x9, #4]
	add	w0, w8, w0, lsl #8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sample
.subsections_via_symbols
