	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_rematrixing
_do_rematrixing:                        ## @do_rematrixing
	.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	%rdi, %r12
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	movl	8(%rax), %esi
	callq	_FFMIN
	cmpl	$0, 8(%r12)
	jle	LBB0_18
## %bb.1:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movq	_ff_ac3_rematrix_band_tab@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%rbx, %r13
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	8(%r12), %rax
	movq	%r13, %rbx
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	24(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	leaq	1(%rbx), %r13
	movl	4(%rax,%rbx,4), %esi
	movl	%r14d, %edi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r15), %rcx
	movslq	(%rcx,%rbx,4), %rbx
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rdx
	movq	8(%rdx), %rcx
	movq	16(%rdx), %rdx
	movslq	%eax, %r10
	movq	%r10, %r8
	subq	%rbx, %r8
	cmpq	$8, %r8
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%rbx,4), %rsi
	leaq	(%rdx,%r10,4), %rdi
	cmpq	%rdi, %rsi
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%r10,4), %rsi
	leaq	(%rdx,%rbx,4), %rdi
	cmpq	%rsi, %rdi
	jae	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r9
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	subl	%r9d, %eax
	movq	%r9, %rdi
	testb	$1, %al
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx,%r9,4), %eax
	movl	(%rdx,%r9,4), %esi
	addl	%eax, %esi
	movl	%esi, (%rcx,%r9,4)
	subl	(%rdx,%r9,4), %eax
	movl	%eax, (%rdx,%r9,4)
	leaq	1(%r9), %rdi
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	notq	%r9
	addq	%r10, %r9
	je	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdi,4), %eax
	movl	(%rdx,%rdi,4), %esi
	addl	%eax, %esi
	movl	%esi, (%rcx,%rdi,4)
	subl	(%rdx,%rdi,4), %eax
	movl	%eax, (%rdx,%rdi,4)
	movl	4(%rcx,%rdi,4), %eax
	movl	4(%rdx,%rdi,4), %esi
	addl	%eax, %esi
	movl	%esi, 4(%rcx,%rdi,4)
	subl	4(%rdx,%rdi,4), %eax
	movl	%eax, 4(%rdx,%rdi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_17
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r8, %r11
	andq	$-8, %r11
	leaq	(%r11,%rbx), %r9
	leaq	(%rcx,%rbx,4), %rsi
	addq	$16, %rsi
	leaq	(%rdx,%rbx,4), %rbx
	addq	$16, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rsi,%rdi,4), %xmm0
	movdqu	(%rsi,%rdi,4), %xmm1
	movdqu	-16(%rbx,%rdi,4), %xmm2
	movdqu	(%rbx,%rdi,4), %xmm3
	paddd	%xmm0, %xmm2
	paddd	%xmm1, %xmm3
	movdqu	%xmm2, -16(%rsi,%rdi,4)
	movdqu	%xmm3, (%rsi,%rdi,4)
	movdqu	-16(%rbx,%rdi,4), %xmm2
	movdqu	(%rbx,%rdi,4), %xmm3
	psubd	%xmm2, %xmm0
	psubd	%xmm3, %xmm1
	movdqu	%xmm0, -16(%rbx,%rdi,4)
	movdqu	%xmm1, (%rbx,%rdi,4)
	addq	$8, %rdi
	cmpq	%rdi, %r11
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r11, %r8
	je	LBB0_3
	jmp	LBB0_14
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_ac3_rematrix_band_tab,8,3   ## @ff_ac3_rematrix_band_tab
	.no_dead_strip	_do_rematrixing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_rematrixing
_do_rematrixing:                        ; @do_rematrixing
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldp	w0, w1, [x8, #4]
	bl	_FFMIN
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x0
	mov	x23, #0
Lloh0:
	adrp	x21, _ff_ac3_rematrix_band_tab@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ff_ac3_rematrix_band_tab@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19, #8]
	mov	x23, x22
	cmp	x22, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	add	x22, x23, #1
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x20
	bl	_FFMIN
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21]
	ldrsw	x8, [x8, x23, lsl #2]
	cmp	w8, w0
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	ldp	x11, x9, [x9, #8]
	sxtw	x10, w0
	sub	x12, x10, x8
	cmp	x12, #8
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x13, x8, #2
	add	x14, x11, x13
	lsl	x16, x10, #2
	add	x17, x11, x16
	add	x15, x9, x13
	add	x13, x9, x16
	cmp	x14, x13
	ccmp	x15, x17, #2, lo
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x13, x12, #0xfffffffffffffff8
	add	x8, x13, x8
	add	x14, x14, #16
	add	x15, x15, #16
	mov	x16, x13
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x14, #-16]
	ldp	q2, q3, [x15, #-16]
	add.4s	v4, v2, v0
	add.4s	v5, v3, v1
	stp	q4, q5, [x14, #-16]
	sub.4s	v0, v0, v2
	sub.4s	v1, v1, v3
	stp	q0, q1, [x15, #-16]
	add	x14, x14, #32
	add	x15, x15, #32
	subs	x16, x16, #8
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x13
	b.eq	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x12, x8, #2
	add	x11, x11, x12
	add	x9, x9, x12
	sub	x8, x10, x8
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x11]
	ldr	w12, [x9]
	add	w12, w12, w10
	str	w12, [x11], #4
	ldr	w12, [x9]
	sub	w10, w10, w12
	str	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_12
	b	LBB0_3
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_ac3_rematrix_band_tab,8,3   ; @ff_ac3_rematrix_band_tab
	.no_dead_strip	_do_rematrixing
.subsections_via_symbols
