	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coupling_coordinates
_coupling_coordinates:                  ## @coupling_coordinates
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	jle	LBB0_23
## %bb.1:
	movq	%rdi, %r12
	leaq	80(%rdi), %r14
	incq	%r15
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movl	$1, (%rax,%r13,4)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r15, %r13
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	72(%r12), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 64(%r12)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	cmpl	$0, (%rax,%r13,4)
	jne	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rax,%r13,4)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%r12)
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%rax,2), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %r15
	movq	%r14, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ecx
	shll	$21, %ecx
	addl	$33554432, %ecx                 ## imm = 0x2000000
	shll	$22, %eax
	cmpl	$15, %ebx
	cmovnel	%ecx, %eax
	movq	24(%r15), %rcx
	movq	(%rcx,%r13,8), %rdx
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movl	%eax, (%rdx,%r14,4)
	incq	%r14
	movslq	16(%r15), %rax
	cmpq	%rax, %r14
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r14
	movq	%r15, %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.12:
	movl	56(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_15:
	movq	32(%r12), %rcx
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_24
## %bb.16:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.17:
	movl	16(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%eax, %eax
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	48(%r12), %rdx
	movq	%rax, (%rdx,%rbx,8)
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 40(%r12)
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	callq	_get_bits1
	movl	16(%r12), %ecx
	jmp	LBB0_22
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new coupling coordinates must be present in block 0\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AC3_CHMODE_STEREO,8,3          ## @AC3_CHMODE_STEREO
	.no_dead_strip	_coupling_coordinates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coupling_coordinates
_coupling_coordinates:                  ; @coupling_coordinates
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	w8, [x20], #80
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	w22, #0
	add	x23, x8, #1
	mov	w24, #1
	mov	w25, #33554432
	mov	w26, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	str	w24, [x8, x26, lsl #2]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x26, x23
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x19, #72]
	ldr	x8, [x8, x26, lsl #3]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x26, lsl #2]
	cbnz	w9, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x8, x26, lsl #2]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	add	w28, w0, w0, lsl #1
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	x22, x0
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	add	w8, w25, w0, lsl #21
	lsl	w9, w0, #22
	cmp	w22, #15
	csel	w8, w9, w8, eq
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x26, lsl #3]
	add	w10, w22, w28
	asr	w8, w8, w10
	str	w8, [x9, x27, lsl #2]
	add	x27, x27, #1
	ldrsw	x8, [x19, #16]
	cmp	x27, x8
	b.lt	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #1
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w21, LBB0_3
; %bb.14:
	ldr	w0, [x19, #56]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_15:
	ldr	x8, [x19, #32]
Lloh8:
	adrp	x9, _AC3_CHMODE_STEREO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AC3_CHMODE_STEREO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w22, #0, #4, eq
	b.eq	LBB0_22
; %bb.16:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x21, #0
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, #0
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x19, #48]
	str	x0, [x9, x21, lsl #3]
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x20
	bl	_get_bits1
	ldr	w8, [x19, #16]
	b	LBB0_19
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new coupling coordinates must be present in block 0\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AC3_CHMODE_STEREO,8,3          ; @AC3_CHMODE_STEREO
	.no_dead_strip	_coupling_coordinates
.subsections_via_symbols
