	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st5481_isoc_flatten
_st5481_isoc_flatten:                   ## @st5481_isoc_flatten
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	js	LBB0_29
## %bb.1:
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	testq	%r8, %r8
	jle	LBB0_2
## %bb.3:
	movq	24(%rdi), %r13
	shlq	$4, %r8
	addq	%r13, %r8
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r11, %rcx
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r13
	cmpq	%r8, %r13
	jae	LBB0_27
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movq	(%r13), %rax
	testq	%rax, %rax
	js	LBB0_29
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %r11d
	movl	$0, 8(%r13)
	movq	16(%rdi), %r14
	movslq	12(%r13), %r15
	leaq	(%r14,%r15), %rax
	cmpq	%rcx, %rax
	je	LBB0_30
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r11d, %r11d
	je	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r11), %r9d
	cmpl	$31, %r9d
	jb	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rsi
	subq	%r14, %rsi
	subq	%r15, %rsi
	cmpq	$32, %rsi
	jb	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r9
	movq	%r9, %r10
	andq	$-32, %r10
	leaq	-32(%r10), %rsi
	movq	%rsi, %rdx
	shrq	$5, %rdx
	incq	%rdx
	movl	%edx, %r12d
	andl	$3, %r12d
	cmpq	$96, %rsi
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	andq	$-4, %rdx
	leaq	(%r14,%r15), %rsi
	addq	$112, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-112(%rsi,%rbx), %xmm0
	movups	-96(%rsi,%rbx), %xmm1
	movups	%xmm0, (%rcx,%rbx)
	movups	%xmm1, 16(%rcx,%rbx)
	movups	-80(%rsi,%rbx), %xmm0
	movups	-64(%rsi,%rbx), %xmm1
	movups	%xmm0, 32(%rcx,%rbx)
	movups	%xmm1, 48(%rcx,%rbx)
	movups	-48(%rsi,%rbx), %xmm0
	movups	-32(%rsi,%rbx), %xmm1
	movups	%xmm0, 64(%rcx,%rbx)
	movups	%xmm1, 80(%rcx,%rbx)
	movups	-16(%rsi,%rbx), %xmm0
	movups	(%rsi,%rbx), %xmm1
	movups	%xmm0, 96(%rcx,%rbx)
	movups	%xmm1, 112(%rcx,%rbx)
	subq	$-128, %rbx
	addq	$-4, %rdx
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r15
	leaq	(%r14,%r15), %rdx
	addq	$16, %rdx
	leaq	(%rcx,%rbx), %rsi
	addq	$16, %rsi
	shlq	$5, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rdx,%rbx), %xmm0
	movups	(%rdx,%rbx), %xmm1
	movups	%xmm0, -16(%rsi,%rbx)
	movups	%xmm1, (%rsi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r10, %rcx
	cmpq	%r10, %r9
	je	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	subl	%r10d, %r11d
	addq	%r10, %rax
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r11), %r9d
	testb	$7, %r11b
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r11d, %ebx
	andl	$7, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax,%rsi), %edx
	movb	%dl, (%rcx,%rsi)
	incq	%rsi
	cmpl	%esi, %ebx
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	subl	%esi, %r11d
	addq	%rsi, %rcx
	addq	%rsi, %rax
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$7, %r9d
	jb	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r11d, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax,%rsi), %ebx
	movb	%bl, (%rcx,%rsi)
	movzbl	1(%rax,%rsi), %ebx
	movb	%bl, 1(%rcx,%rsi)
	movzbl	2(%rax,%rsi), %ebx
	movb	%bl, 2(%rcx,%rsi)
	movzbl	3(%rax,%rsi), %ebx
	movb	%bl, 3(%rcx,%rsi)
	movzbl	4(%rax,%rsi), %ebx
	movb	%bl, 4(%rcx,%rsi)
	movzbl	5(%rax,%rsi), %ebx
	movb	%bl, 5(%rcx,%rsi)
	movzbl	6(%rax,%rsi), %ebx
	movb	%bl, 6(%rcx,%rsi)
	movzbl	7(%rax,%rsi), %ebx
	movb	%bl, 7(%rcx,%rsi)
	addq	$8, %rsi
	cmpl	%esi, %edx
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rsi, %rcx
	jmp	LBB0_26
LBB0_2:
	movq	%rcx, %rax
	jmp	LBB0_28
LBB0_27:
	movq	16(%rdi), %rax
LBB0_28:
	subq	%rax, %rcx
	movq	%rcx, %rax
LBB0_29:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_st5481_isoc_flatten
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st5481_isoc_flatten
_st5481_isoc_flatten:                   ; @st5481_isoc_flatten
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_19
; %bb.1:
	ldp	x8, x11, [x0, #8]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.2:
	ldr	x9, [x0, #24]
	add	x10, x9, x8, lsl #4
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	cmp	x9, x10
	b.hs	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x9]
	tbnz	x8, #63, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w13, [x9, #8]
                                        ; kill: def $w13 killed $w13 def $x13
	sxtw	x13, w13
	str	wzr, [x9, #8]
	ldr	x14, [x0, #16]
	add	x12, x14, x13
	cmp	x12, x11
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w15, w8, #1
	cmp	w15, #63
	b.lo	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x16, x14, x13
	sub	x13, x11, x16
	cmp	x13, #64
	b.hs	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x13, x11
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, x13
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w13, [x12], #1
	strb	w13, [x11], #1
	subs	w8, w8, #1
	b.ne	LBB0_12
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x14, x15, #1
	and	x15, x14, #0x1ffffffc0
	sub	w8, w8, w15
	add	x13, x11, x15
	add	x12, x12, x15
	add	x11, x11, #32
	add	x16, x16, #32
	mov	x17, x15
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x16, #-32]
	ldp	q2, q3, [x16], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x17, x17, #64
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, x13
	cmp	x14, x15
	b.eq	LBB0_4
	b	LBB0_11
LBB0_16:
	mov	x8, x11
	b	LBB0_18
LBB0_17:
	ldr	x8, [x0, #16]
LBB0_18:
	sub	x8, x11, x8
LBB0_19:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_st5481_isoc_flatten
.subsections_via_symbols
