	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function BraState_Code2
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_BraState_Code2:                        ## @BraState_Code2
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rbp), %edi
	movq	(%rdx), %r13
	movq	(%r8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_UNUSED_VAR
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx)
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%r12)
	movq	_CODER_STATUS_NOT_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbp), %rcx
	movq	%rcx, %r12
	movl	%eax, (%rcx)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, %rbx
	cmovaeq	%r13, %rbx
	shlq	$2, %rsi
	addq	24(%r15), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, (%r15)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, (%rax)
	leaq	(%r14,%rbx,4), %r14
	subq	%rbx, %r13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testq	%r13, %r13
	jle	LBB0_2
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rsi
	movq	8(%r15), %rbx
	subq	%rsi, %rbx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	16(%r15), %edx
	subl	%esi, %edx
	movl	%edx, 16(%r15)
	movq	24(%r15), %rdi
	leaq	(%rdi,%rsi,4), %rsi
	callq	_memmove
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	_BRA_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	16(%r15), %rdi
	subq	%rdi, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r12
	cmovaeq	%rax, %r12
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, (%rax)
	subq	%r12, -56(%rbp)                 ## 8-byte Folded Spill
	movl	16(%r15), %eax
	addl	%r12d, %eax
	movl	%eax, 16(%r15)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	leaq	(%rbx,%r12,4), %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rsi
	movslq	%eax, %rdx
	movq	%r15, %rdi
	callq	_BraState_Filter
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	movq	24(%rbp), %r12
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	movslq	16(%r15), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_8
LBB0_11:
	movq	24(%rbp), %r12
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_3:
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movslq	16(%r15), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_7
## %bb.5:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movq	_CODER_STATUS_FINISHED_WITH_MARK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_7:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODER_STATUS_NOT_FINISHED,4,2  ## @CODER_STATUS_NOT_FINISHED
	.comm	_BRA_BUF_SIZE,8,3               ## @BRA_BUF_SIZE
	.comm	_CODER_STATUS_FINISHED_WITH_MARK,4,2 ## @CODER_STATUS_FINISHED_WITH_MARK
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.no_dead_strip	_BraState_Code2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BraState_Code2
_BraState_Code2:                        ; @BraState_Code2
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	ldr	x28, [x2]
	ldr	x27, [x4]
	mov	x0, x6
	bl	_UNUSED_VAR
	str	xzr, [x24]
	str	xzr, [x22]
Lloh0:
	adrp	x8, _CODER_STATUS_NOT_FINISHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CODER_STATUS_NOT_FINISHED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	cmp	x28, #1
	b.lt	LBB0_7
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x21]
	subs	x9, x9, x8
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x9, x28
	csel	x26, x9, x28, lo
	ldr	x9, [x21, #24]
	add	x1, x9, x8, lsl #2
	mov	x0, x25
	mov	x2, x26
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, x26
	str	x8, [x21]
	ldr	x8, [x24]
	add	x8, x8, x26
	str	x8, [x24]
	add	x25, x25, x26, lsl #2
	sub	x28, x28, x26
	cmp	x28, #0
	b.gt	LBB0_1
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x21, #16]
	sub	w2, w9, w8
	str	w2, [x21, #16]
	ldr	x0, [x21, #24]
	add	x1, x0, x8, lsl #2
	bl	_memmove
	stp	xzr, xzr, [x21]
Lloh3:
	adrp	x8, _BRA_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRA_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x9, [x21, #16]
	sub	x8, x8, x9
	cmp	x8, x27
	csel	x26, x8, x27, lo
	ldr	x8, [x21, #24]
	add	x0, x8, x9, lsl #2
	mov	x1, x23
	mov	x2, x26
	bl	_memcpy
	ldr	x8, [x22]
	add	x8, x8, x26
	str	x8, [x22]
	sub	x27, x27, x26
	ldr	w8, [x21, #16]
	adds	w8, w8, w26
	str	w8, [x21, #16]
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21, #24]
	sxtw	x2, w8
	add	x23, x23, x26, lsl #2
	mov	x0, x21
	bl	_BraState_Filter
	str	x0, [x21, #8]
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsw	x8, [x21, #16]
	str	x8, [x21, #8]
	b	LBB0_1
LBB0_7:
	cbz	w20, LBB0_10
; %bb.8:
	ldrsw	x8, [x21, #16]
	ldr	x9, [x21]
	cmp	x9, x8
	ccmp	x27, #0, #0, eq
	b.ne	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _CODER_STATUS_FINISHED_WITH_MARK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CODER_STATUS_FINISHED_WITH_MARK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
Lloh9:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CODER_STATUS_NOT_FINISHED,4,2  ; @CODER_STATUS_NOT_FINISHED
	.comm	_BRA_BUF_SIZE,8,3               ; @BRA_BUF_SIZE
	.comm	_CODER_STATUS_FINISHED_WITH_MARK,4,2 ; @CODER_STATUS_FINISHED_WITH_MARK
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.no_dead_strip	_BraState_Code2
.subsections_via_symbols
