	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_subframe
_decode_subframe:                       ## @decode_subframe
	.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
	movslq	%esi, %rax
	movq	(%rdi), %rdi
	movq	8(%r12), %rdx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_FLAC_CHMODE_LEFT_SIDE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	sete	%cl
	movq	_FLAC_CHMODE_MID_SIDE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	sete	%bl
	orb	%cl, %bl
	jmp	LBB0_3
LBB0_2:
	movq	_FLAC_CHMODE_RIGHT_SIDE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	sete	%bl
LBB0_3:
	movl	28(%r12), %r15d
	movq	(%rdi,%rax,8), %r14
	leaq	24(%r12), %r13
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	20(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_18
LBB0_6:
	movzbl	%bl, %eax
	addl	%eax, %r15d
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_get_bits_left
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_17
## %bb.8:
	cmpl	%r15d, %ebx
	jge	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_show_bits_long
	testl	%eax, %eax
	je	LBB0_17
LBB0_10:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_show_bits_long
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movq	%r13, %rdi
	callq	_get_bits_left
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_get_unary
	incl	%eax
	subl	%eax, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$33, %r15d
	jge	LBB0_22
LBB0_12:
	testl	%ebx, %ebx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_23
## %bb.13:
	cmpl	$1, %ebx
	jne	LBB0_26
## %bb.14:
	cmpl	$0, 16(%r12)
	jle	LBB0_31
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_get_sbits_long
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
	jmp	LBB0_31
LBB0_17:
	movl	20(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_18:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	cmpl	$33, %r15d
	jl	LBB0_12
LBB0_22:
	movl	20(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_23:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_get_sbits_long
	cmpl	$0, 16(%r12)
	jle	LBB0_31
## %bb.24:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%r14,%rcx,4)
	incq	%rcx
	movslq	16(%r12), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_25
	jmp	LBB0_31
LBB0_26:
	leal	-8(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_28
## %bb.27:
	andl	$-9, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_decode_subframe_fixed
	jmp	LBB0_30
LBB0_28:
	cmpl	$32, %ebx
	jl	LBB0_36
## %bb.29:
	andl	$-33, %ebx
	incl	%ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_decode_subframe_lpc
LBB0_30:
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_20
LBB0_31:
	xorl	%eax, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.32:
	cmpl	$31, %ecx
	jg	LBB0_20
## %bb.33:
	cmpl	$0, 16(%r12)
	jle	LBB0_20
## %bb.34:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	shll	%cl, (%r14,%rdx,4)
	incq	%rdx
	movslq	16(%r12), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_35
	jmp	LBB0_20
LBB0_36:
	movl	20(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_CHMODE_RIGHT_SIDE,8,3     ## @FLAC_CHMODE_RIGHT_SIDE
	.comm	_FLAC_CHMODE_LEFT_SIDE,8,3      ## @FLAC_CHMODE_LEFT_SIDE
	.comm	_FLAC_CHMODE_MID_SIDE,8,3       ## @FLAC_CHMODE_MID_SIDE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid subframe padding\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Invalid number of wasted bits > available bits (%d) - left=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Decorrelated bit depth > 32"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.3:                               ## @.str.3
	.asciz	"invalid coding type\n"

	.no_dead_strip	_decode_subframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_subframe
_decode_subframe:                       ; @decode_subframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldp	x8, x9, [x0]
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _FLAC_CHMODE_LEFT_SIDE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAC_CHMODE_LEFT_SIDE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
Lloh3:
	adrp	x10, _FLAC_CHMODE_MID_SIDE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FLAC_CHMODE_MID_SIDE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ccmp	x9, x10, #4, ne
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x10, _FLAC_CHMODE_RIGHT_SIDE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FLAC_CHMODE_RIGHT_SIDE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
LBB0_3:
	cset	w21, eq
	ldr	x20, [x8, w1, sxtw #3]
	ldr	w23, [x19, #28]
	add	x22, x19, #24
	mov	x0, x22
	bl	_get_bits1
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #20]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
LBB0_5:
	add	w21, w23, w21
	mov	x0, x22
	mov	w1, #6
	bl	_get_bits
	mov	x23, x0
	mov	x0, x22
	bl	_get_bits1
	cbz	x0, LBB0_20
; %bb.6:
	mov	x0, x22
	bl	_get_bits_left
	mov	x24, x0
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.7:
	cmp	w24, w21
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x22
	mov	x1, x24
	bl	_show_bits_long
	cbz	w0, LBB0_16
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	bl	_show_bits_long
	cbz	w0, LBB0_16
; %bb.10:
	mov	x0, x22
	bl	_get_bits_left
	mov	x2, x0
	mov	x0, x22
	mov	w1, #1
	bl	_get_unary
	add	w24, w0, #1
	sub	w21, w21, w24
	cmp	w21, #33
	b.ge	LBB0_21
LBB0_11:
	cbz	w23, LBB0_22
; %bb.12:
	cmp	w23, #1
	b.ne	LBB0_25
; %bb.13:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.14:
	mov	x23, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_get_sbits_long
	str	w0, [x20, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x19, #16]
	cmp	x23, x8
	b.lt	LBB0_15
	b	LBB0_29
LBB0_16:
	ldr	w0, [x19, #20]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	stp	x21, x24, [sp]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_17:
	bl	_av_log
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
LBB0_19:
	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
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w24, #0
	cmp	w21, #33
	b.lt	LBB0_11
LBB0_21:
	ldr	w0, [x19, #20]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh23:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_18
LBB0_22:
	mov	x0, x22
	mov	x1, x21
	bl	_get_sbits_long
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.23:
	mov	x8, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	str	w0, [x20, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x19, #16]
	cmp	x8, x9
	b.lt	LBB0_24
	b	LBB0_29
LBB0_25:
	sub	w8, w23, #8
	cmp	w8, #4
	b.hi	LBB0_27
; %bb.26:
	and	w2, w23, #0xfffffff7
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_decode_subframe_fixed
	tbz	w0, #31, LBB0_29
	b	LBB0_19
LBB0_27:
	cmp	w23, #32
	b.lt	LBB0_35
; %bb.28:
	and	w8, w23, #0xffffffdf
	add	w2, w8, #1
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_decode_subframe_lpc
	tbnz	w0, #31, LBB0_19
LBB0_29:
	mov	w0, #0
	cbz	w24, LBB0_19
; %bb.30:
	cmp	w24, #31
	b.gt	LBB0_19
; %bb.31:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.32:
	mov	x8, #0
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	lsl	x9, x8, #2
	ldr	w10, [x20, x9]
	lsl	w10, w10, w24
	str	w10, [x20, x9]
	add	x8, x8, #1
	ldrsw	x9, [x19, #16]
	cmp	x8, x9
	b.lt	LBB0_33
	b	LBB0_19
LBB0_34:
	mov	w0, #0
	b	LBB0_19
LBB0_35:
	ldr	w0, [x19, #20]
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.3@PAGE
Lloh29:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_CHMODE_RIGHT_SIDE,8,3     ; @FLAC_CHMODE_RIGHT_SIDE
	.comm	_FLAC_CHMODE_LEFT_SIDE,8,3      ; @FLAC_CHMODE_LEFT_SIDE
	.comm	_FLAC_CHMODE_MID_SIDE,8,3       ; @FLAC_CHMODE_MID_SIDE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid subframe padding\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Invalid number of wasted bits > available bits (%d) - left=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Decorrelated bit depth > 32"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.3:                               ; @.str.3
	.asciz	"invalid coding type\n"

	.no_dead_strip	_decode_subframe
.subsections_via_symbols
