	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i31_rshift                  ## -- Begin function br_i31_rshift
	.p2align	4, 0x90
_br_i31_rshift:                         ## @br_i31_rshift
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	addl	$31, %eax
	cmpl	$32, %eax
	jb	LBB0_9
## %bb.1:
	movl	%esi, %r9d
	movl	%eax, %ecx
	sarl	$5, %ecx
	movslq	%ecx, %r8
	movl	4(%rdi), %edx
	movl	%r9d, %ecx
	sarl	%cl, %edx
	cmpl	$64, %eax
	jb	LBB0_8
## %bb.2:
	movl	$31, %r14d
	subl	%r9d, %r14d
	cmpq	$3, %r8
	movl	$2, %esi
	movl	$2, %r10d
	cmovaeq	%r8, %r10
	decq	%r10
	cmpl	$96, %eax
	jb	LBB0_6
## %bb.3:
	movq	%r10, %r11
	andq	$-2, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rdi,%rsi,4), %ebx
	movl	12(%rdi,%rsi,4), %r15d
	movl	%ebx, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%edx, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%r9d, %ecx
	sarl	%cl, %ebx
	movl	%eax, 4(%rdi,%rsi,4)
	movl	%r15d, %edx
	movl	%r14d, %ecx
	shll	%cl, %r15d
	orl	%ebx, %r15d
	movl	%r9d, %ecx
	sarl	%cl, %edx
	andl	$2147483647, %r15d              ## imm = 0x7FFFFFFF
	movl	%r15d, 8(%rdi,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_4
## %bb.5:
	addq	$2, %rsi
LBB0_6:
	testb	$1, %r10b
	je	LBB0_8
## %bb.7:
	movl	(%rdi,%rsi,4), %ebx
	movl	%ebx, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%edx, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%eax, -4(%rdi,%rsi,4)
	movl	%r9d, %ecx
	sarl	%cl, %ebx
	movl	%ebx, %edx
LBB0_8:
	movl	%edx, (%rdi,%r8,4)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i31_rshift                  ; -- Begin function br_i31_rshift
	.p2align	2
_br_i31_rshift:                         ; @br_i31_rshift
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	add	w10, w8, #31
	cmp	w10, #32
	b.lo	LBB0_5
; %bb.1:
	sbfx	x8, x10, #5, #27
	ldr	w9, [x0, #4]
	asr	w9, w9, w1
	cmp	w10, #64
	b.lo	LBB0_4
; %bb.2:
	mov	w10, #31
	sub	w10, w10, w1
	mov	w11, #2
	cmp	x8, #2
	csel	x11, x8, x11, hi
	sub	x11, x11, #1
	add	x12, x0, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	lsl	w14, w13, w10
	orr	w9, w14, w9
	and	w9, w9, #0x7fffffff
	stur	w9, [x12, #-4]
	asr	w9, w13, w1
	add	x12, x12, #4
	subs	x11, x11, #1
	b.ne	LBB0_3
LBB0_4:
	str	w9, [x0, x8, lsl #2]
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
