	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function balance
_balance:                               ## @balance
	.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	%rdx, %rbx
	movq	%rsi, %r8
	movq	16(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rdi
	incq	%rdi
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movq	(%rdx), %rsi
	incq	%rsi
	jmp	LBB0_6
LBB0_4:
	xorl	%esi, %esi
LBB0_6:
	leaq	1(%rsi), %rax
	cmpq	%rax, %rdi
	jle	LBB0_8
## %bb.7:
	movq	8(%rcx), %rax
	movq	%rbx, 8(%rcx)
	movq	%rcx, (%r8)
	movq	%rax, 16(%rbx)
	decq	%rdi
	jmp	LBB0_10
LBB0_8:
	leaq	1(%rdi), %rax
	cmpq	%rsi, %rax
	jge	LBB0_10
## %bb.9:
	movq	16(%rdx), %rax
	movq	%rdx, (%r8)
	movq	8(%rbx), %rcx
	movq	%rbx, 16(%rcx)
	movq	%rax, 8(%rbx)
	decq	%rsi
LBB0_10:
	callq	_MAX
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_balance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function balance
_balance:                               ; @balance
	.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, x2
	ldr	x9, [x2, #16]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x9]
	add	x0, x8, #1
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_4
LBB0_2:
	ldr	x8, [x10]
	add	x8, x8, #1
	b	LBB0_5
LBB0_3:
	mov	x0, #0
	ldr	x10, [x19, #8]
	cbnz	x10, LBB0_2
LBB0_4:
	mov	x8, #0
LBB0_5:
	add	x11, x8, #1
	cmp	x0, x11
	b.le	LBB0_7
; %bb.6:
	ldr	x10, [x9, #8]
	str	x19, [x9, #8]
	str	x9, [x1]
	str	x10, [x19, #16]
	sub	x0, x0, #1
	b	LBB0_9
LBB0_7:
	add	x9, x0, #1
	cmp	x9, x8
	b.ge	LBB0_9
; %bb.8:
	ldr	x9, [x10, #16]
	str	x10, [x1]
	ldr	x10, [x19, #8]
	str	x19, [x10, #16]
	str	x9, [x19, #8]
	sub	x8, x8, #1
LBB0_9:
	mov	x1, x8
	bl	_MAX
	str	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_balance
.subsections_via_symbols
