	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_box
_split_box:                             ## @split_box
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movslq	4(%rdi), %rbx
	leal	1(%rbx), %eax
	movl	%eax, 4(%rdi)
	shlq	$5, %rbx
	leaq	(%rbx,%r13), %r15
	leal	1(%rdx), %eax
	movl	%eax, (%r13,%rbx)
	notl	%edx
	addl	(%rsi), %edx
	addl	4(%rsi), %edx
	movl	%edx, 4(%r13,%rbx)
	movl	24(%rsi), %eax
	movl	%eax, 24(%r13,%rbx)
	xorl	%edi, %edi
	subl	%edx, 4(%rsi)
	setg	%dil
	callq	_av_assert0
	xorl	%edi, %edi
	cmpl	$0, 4(%r13,%rbx)
	setg	%dil
	callq	_av_assert0
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_get_avg_color
	movq	%rax, 16(%r12)
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_get_avg_color
	movq	%rax, 16(%r13,%rbx)
	movl	$-1, 8(%r12)
	movl	$-1, 8(%r13,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_split_box
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_box
_split_box:                             ; @split_box
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldrsw	x9, [x0, #4]
	add	w10, w9, #1
	str	w10, [x0, #4]
	add	x21, x8, x9, lsl #5
	add	w8, w2, #1
	str	w8, [x21]
	ldp	w8, w9, [x1]
	mvn	w10, w2
	add	w8, w8, w10
	add	w8, w8, w9
	str	w8, [x21, #4]
	ldr	w9, [x1, #24]
	str	w9, [x21, #24]
	ldr	w9, [x1, #4]
	sub	w8, w9, w8
	str	w8, [x1, #4]
	cmp	w8, #0
	cset	w0, gt
	bl	_av_assert0
	ldr	w8, [x21, #4]
	cmp	w8, #0
	cset	w0, gt
	bl	_av_assert0
	ldr	w0, [x20]
	mov	x1, x19
	bl	_get_avg_color
	str	x0, [x19, #16]
	ldr	w0, [x20]
	mov	x1, x21
	bl	_get_avg_color
	str	x0, [x21, #16]
	mov	w8, #-1
	str	w8, [x19, #8]
	str	w8, [x21, #8]
	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
	.no_dead_strip	_split_box
.subsections_via_symbols
