	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i32_encode                  ## -- Begin function br_i32_encode
	.p2align	4, 0x90
_br_i32_encode:                         ## @br_i32_encode
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdx), %eax
	addl	$7, %eax
	sarl	$3, %eax
	movslq	%eax, %r13
	cmpq	%rsi, %r13
	jae	LBB0_1
## %bb.2:
	subq	%r13, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	___bzero
	addq	%r15, %r12
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %r13
LBB0_3:
	leaq	3(%r13), %rbx
	shrq	$2, %rbx
	andl	$3, %r13d
	cmpq	$1, %r13
	je	LBB0_8
## %bb.4:
	cmpl	$2, %r13d
	je	LBB0_7
## %bb.5:
	cmpl	$3, %r13d
	jne	LBB0_9
## %bb.6:
	movb	2(%r14,%rbx,4), %al
	movb	%al, (%r12)
	incq	%r12
LBB0_7:
	movb	1(%r14,%rbx,4), %al
	movb	%al, (%r12)
	incq	%r12
LBB0_8:
	movb	(%r14,%rbx,4), %al
	movb	%al, (%r12)
	incq	%r12
	decq	%rbx
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_br_enc32be
	addq	$4, %r12
	decq	%rbx
	jne	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_i32_encode                  ; -- Begin function br_i32_encode
	.p2align	2
_br_i32_encode:                         ; @br_i32_encode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x2]
	add	w8, w8, #7
	sbfx	x22, x8, #3, #29
	cmp	x22, x1
	b.hs	LBB0_2
; %bb.1:
	sub	x21, x1, x22
	mov	x0, x20
	mov	x1, x21
	bl	_bzero
	add	x20, x20, x21
	mov	x1, x22
LBB0_2:
	add	x8, x1, #3
	lsr	x21, x8, #2
	and	x8, x1, #0x3
	cmp	x8, #1
	b.eq	LBB0_7
; %bb.3:
	cmp	x8, #2
	b.eq	LBB0_6
; %bb.4:
	cmp	x8, #3
	b.ne	LBB0_8
; %bb.5:
	add	x8, x19, x21, lsl #2
	ldrh	w8, [x8, #2]
	strb	w8, [x20], #1
LBB0_6:
	ldr	w8, [x19, x21, lsl #2]
	lsr	w8, w8, #8
	strb	w8, [x20], #1
LBB0_7:
	ldr	w8, [x19, x21, lsl #2]
	strb	w8, [x20], #1
	sub	x21, x21, #1
LBB0_8:
	cbz	x21, LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, x21, lsl #2]
	mov	x0, x20
	bl	_br_enc32be
	add	x20, x20, #4
	subs	x21, x21, #1
	b.ne	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
