	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_split_data_flow
_komeda_split_data_flow:                ## @komeda_split_data_flow
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	88(%rsi), %edi
	callq	_drm_rotation_90_or_270
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	88(%rbx), %edi
	callq	_has_flip_h
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$96, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$96, %edx
	callq	_memcpy
	movl	$0, (%r15)
	movl	$1, (%r14)
	movq	80(%rbx), %rax
	incq	%rax
	movq	%rax, 80(%r14)
	movq	48(%rbx), %rax
	xorl	%r12d, %r12d
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %r12
LBB0_3:
	movl	%r12d, 4(%rbx)
	movq	40(%rbx), %rcx
	testq	%r13, %r13
	je	LBB0_6
## %bb.4:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	addq	8(%r13), %r12
LBB0_6:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r12d, 4(%r15)
	movl	%r12d, 4(%r14)
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	8(%rbx), %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	4(%r15), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_12
LBB0_18:
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	12(%rbx), %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	4(%r15), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_23
LBB0_9:
	movl	8(%rbx), %edi
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	4(%r15), %ecx
	movl	%ecx, 8(%r15)
	movl	8(%rbx), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	4(%r14), %eax
	jmp	LBB0_12
LBB0_20:
	movl	12(%rbx), %edi
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.21:
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	4(%r15), %ecx
	movl	%ecx, 12(%r15)
	movl	12(%rbx), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	4(%r14), %eax
	jmp	LBB0_23
LBB0_11:
	incl	%edi
	sarl	%edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %ecx
	movl	%eax, 8(%r15)
	movl	8(%rbx), %eax
	subl	%ecx, %eax
LBB0_12:
	movl	%eax, 8(%r14)
	testq	%r12, %r12
	je	LBB0_15
## %bb.13:
	cmpq	$0, 64(%rbx)
	je	LBB0_15
## %bb.14:
	movl	8(%r15), %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, 8(%r15)
	movl	8(%r14), %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, 8(%r14)
LBB0_15:
	movslq	8(%rbx), %rcx
	addq	72(%rbx), %rcx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movslq	8(%r15), %rax
	subq	%rax, %rcx
	movq	%rcx, 72(%r15)
	cmpq	$0, 48(%rbx)
	jne	LBB0_31
	jmp	LBB0_30
LBB0_17:
	cltq
	subq	%rax, %rcx
	movq	%rcx, 72(%r14)
	cmpq	$0, 48(%rbx)
	jne	LBB0_31
	jmp	LBB0_30
LBB0_22:
	incl	%edi
	sarl	%edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, %ecx
	movl	%eax, 12(%r15)
	movl	12(%rbx), %eax
	subl	%ecx, %eax
LBB0_23:
	movl	%eax, 12(%r14)
	testq	%r12, %r12
	je	LBB0_26
## %bb.24:
	cmpq	$0, 64(%rbx)
	je	LBB0_26
## %bb.25:
	movl	12(%r15), %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, 12(%r15)
	movl	12(%r14), %edi
	movl	$2, %esi
	callq	_ALIGN
	movl	%eax, 12(%r14)
LBB0_26:
	movslq	12(%rbx), %rcx
	addq	56(%rbx), %rcx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_28
## %bb.27:
	movslq	12(%r15), %rax
	subq	%rax, %rcx
	movq	%rcx, 56(%r15)
	cmpq	$0, 48(%rbx)
	jne	LBB0_31
	jmp	LBB0_30
LBB0_28:
	cltq
	subq	%rax, %rcx
	movq	%rcx, 56(%r14)
	cmpq	$0, 48(%rbx)
	jne	LBB0_31
LBB0_30:
	cmpq	$0, 40(%rbx)
	je	LBB0_32
LBB0_31:
	movl	16(%rbx), %eax
	incl	%eax
	sarl	%eax
LBB0_33:
	movl	%eax, 16(%r15)
	movslq	16(%rbx), %rdi
	cltq
	subq	%rax, %rdi
	movl	%edi, 16(%r14)
	movl	20(%rbx), %eax
	movslq	16(%r15), %rsi
	leal	(%rsi,%rax), %ecx
	movl	%eax, 20(%r15)
	movl	%ecx, 20(%r14)
	movl	16(%rbx), %ecx
	testl	%r13d, %r13d
	je	LBB0_35
## %bb.34:
	movl	8(%r15), %eax
	imull	%ecx, %eax
	movl	8(%rbx), %ebx
	cltd
	idivl	%ebx
	movl	%eax, %r8d
	leaq	8(%r14), %rax
	jmp	LBB0_36
LBB0_35:
	movl	12(%r15), %eax
	imull	%ecx, %eax
	movl	12(%rbx), %ebx
	cltd
	idivl	%ebx
	movl	%eax, %r8d
	leaq	12(%r14), %rax
LBB0_36:
	imull	(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	cltq
	movslq	%r8d, %rcx
	movq	$0, 24(%r15)
	subq	%rsi, %rcx
	movq	%rcx, 32(%r15)
	subq	%rdi, %rax
	movq	%rax, 24(%r14)
	movq	$0, 32(%r14)
	movl	24(%r15), %ecx
	addl	32(%r15), %ecx
	addl	%esi, %ecx
	movl	%ecx, 16(%r15)
	addl	%eax, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movl	16(%rbx), %edi
	incl	%edi
	sarl	%edi
	movl	$2, %esi
	callq	_ALIGN
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_komeda_split_data_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_split_data_flow
_komeda_split_data_flow:                ; @komeda_split_data_flow
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	ldr	w0, [x1, #88]
	bl	_drm_rotation_90_or_270
	mov	x22, x0
	ldr	w0, [x21, #88]
	bl	_has_flip_h
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #96
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	mov	w2, #96
	bl	_memcpy
	mov	x25, #0
	str	wzr, [x20]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x21, #80]
	add	x8, x8, #1
	str	x8, [x19, #80]
	ldr	x8, [x21, #48]
	cbz	x24, LBB0_3
; %bb.1:
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x25, [x24]
LBB0_3:
	str	w25, [x21, #4]
	ldr	x9, [x21, #40]
	cbz	x24, LBB0_6
; %bb.4:
	cbz	x9, LBB0_6
; %bb.5:
	ldr	x10, [x24, #8]
	add	x25, x10, x25
LBB0_6:
	str	w25, [x20, #4]
	str	w25, [x19, #4]
	cbz	w22, LBB0_9
; %bb.7:
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w0, [x21, #8]
	mov	w1, #2
	bl	_ALIGN
	cmp	w0, #0
	cinc	w8, w0, lt
	ldr	w9, [x20, #4]
	add	w0, w9, w8, asr #1
	str	w0, [x20, #8]
	str	w0, [x19, #8]
	cbnz	x25, LBB0_16
	b	LBB0_18
LBB0_9:
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w0, [x21, #12]
	mov	w1, #2
	bl	_ALIGN
	cmp	w0, #0
	cinc	w8, w0, lt
	ldr	w9, [x20, #4]
	add	w0, w9, w8, asr #1
	str	w0, [x20, #12]
	str	w0, [x19, #12]
	cbnz	x25, LBB0_22
	b	LBB0_24
LBB0_11:
	ldr	w0, [x21, #8]
	cbz	x9, LBB0_15
; %bb.12:
	mov	w1, #2
	bl	_ALIGN
	cmp	w0, #0
	cinc	w8, w0, lt
	ldr	w9, [x20, #4]
	add	w8, w9, w8, asr #1
	str	w8, [x20, #8]
	ldr	w8, [x21, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldr	w9, [x19, #4]
	add	w0, w9, w8, asr #1
	str	w0, [x19, #8]
	cbnz	x25, LBB0_16
	b	LBB0_18
LBB0_13:
	ldr	w0, [x21, #12]
	cbz	x9, LBB0_21
; %bb.14:
	mov	w1, #2
	bl	_ALIGN
	cmp	w0, #0
	cinc	w8, w0, lt
	ldr	w9, [x20, #4]
	add	w8, w9, w8, asr #1
	str	w8, [x20, #12]
	ldr	w8, [x21, #12]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldr	w9, [x19, #4]
	add	w0, w9, w8, asr #1
	str	w0, [x19, #12]
	cbnz	x25, LBB0_22
	b	LBB0_24
LBB0_15:
	add	w8, w0, #1
	asr	w0, w8, #1
	mov	w1, #2
	bl	_ALIGN
	str	w0, [x20, #8]
	ldr	w8, [x21, #8]
	sub	w0, w8, w0
	str	w0, [x19, #8]
	cbz	x25, LBB0_18
LBB0_16:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w0, [x20, #8]
	mov	w1, #2
	bl	_ALIGN
	str	w0, [x20, #8]
	ldr	w0, [x19, #8]
	mov	w1, #2
	bl	_ALIGN
	str	w0, [x19, #8]
LBB0_18:
	ldr	x8, [x21, #72]
	ldrsw	x9, [x21, #8]
	add	x8, x8, x9
	cbz	w23, LBB0_20
; %bb.19:
	ldrsw	x9, [x20, #8]
	sub	x8, x8, x9
	str	x8, [x20, #72]
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_28
	b	LBB0_27
LBB0_20:
	sub	x8, x8, w0, sxtw
	str	x8, [x19, #72]
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_28
	b	LBB0_27
LBB0_21:
	add	w8, w0, #1
	asr	w0, w8, #1
	mov	w1, #2
	bl	_ALIGN
	str	w0, [x20, #12]
	ldr	w8, [x21, #12]
	sub	w0, w8, w0
	str	w0, [x19, #12]
	cbz	x25, LBB0_24
LBB0_22:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	w0, [x20, #12]
	mov	w1, #2
	bl	_ALIGN
	str	w0, [x20, #12]
	ldr	w0, [x19, #12]
	mov	w1, #2
	bl	_ALIGN
	str	w0, [x19, #12]
LBB0_24:
	ldrsw	x8, [x21, #12]
	ldr	x9, [x21, #56]
	add	x8, x9, x8
	cbz	w23, LBB0_26
; %bb.25:
	ldrsw	x9, [x20, #12]
	sub	x8, x8, x9
	str	x8, [x20, #56]
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_28
	b	LBB0_27
LBB0_26:
	sub	x8, x8, w0, sxtw
	str	x8, [x19, #56]
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_28
LBB0_27:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_33
LBB0_28:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	asr	w0, w8, #1
LBB0_29:
	str	w0, [x20, #16]
	ldp	w8, w10, [x21, #16]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	x9, x8, w0, sxtw
	str	w9, [x19, #16]
	str	w10, [x20, #20]
	ldrsw	x8, [x20, #16]
	add	w10, w8, w10
	str	w10, [x19, #20]
	ldr	w10, [x21, #16]
	cbz	w22, LBB0_31
; %bb.30:
	ldr	w11, [x20, #8]
	mul	w12, w11, w10
	ldr	w11, [x21, #8]
	add	x13, x19, #8
	b	LBB0_32
LBB0_31:
	ldr	w11, [x20, #12]
	mul	w12, w11, w10
	ldr	w11, [x21, #12]
	add	x13, x19, #12
LBB0_32:
	sdiv	w12, w12, w11
	ldr	w13, [x13]
	mul	w10, w13, w10
	sdiv	w10, w10, w11
	sxtw	x10, w10
	sxtw	x11, w12
	sub	x11, x11, x8
	stp	xzr, x11, [x20, #24]
	sub	x9, x10, x9
	stp	x9, xzr, [x19, #24]
	ldr	w10, [x20, #32]
	ldr	w11, [x20, #24]
	add	w10, w11, w10
	add	w8, w8, w10
	str	w8, [x20, #16]
	ldr	w8, [x19, #16]
	add	w8, w8, w9
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_33:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	asr	w0, w8, #1
	mov	w1, #2
	bl	_ALIGN
	b	LBB0_29
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_komeda_split_data_flow
.subsections_via_symbols
