	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rcx), %r13
	movl	8(%rcx), %r14d
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	leal	-1(%r14), %eax
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	xorl	%eax, %eax
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r13,%rax)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	decl	%ebx
	jne	LBB0_3
## %bb.5:
	xorl	%ebx, %ebx
	movq	%rdi, %r13
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_6:
	addq	%rax, %r13
	movl	%eax, %r14d
LBB0_7:
	movq	_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_9
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_30
LBB0_9:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_AV_RB32
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_AV_RB32
	xorl	%r15d, %eax
	cmpl	$255, %eax
	ja	LBB0_11
## %bb.10:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	addl	%ebx, %r14d
	movl	%r14d, %r13d
LBB0_30:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_avpriv_mpegaudio_decode_header
	testl	%eax, %eax
	js	LBB0_12
## %bb.14:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
	jmp	LBB0_8
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	jmp	LBB0_8
LBB0_16:
	movq	%r12, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, (%r12)
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.18:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
LBB0_19:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	cmpl	$0, 12(%r15)
	jne	LBB0_21
## %bb.20:
	movl	24(%rcx), %eax
	movl	%eax, 12(%r15)
LBB0_21:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.23:
	cmpl	%ebx, %eax
	jge	LBB0_25
## %bb.24:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ebx
LBB0_25:
	movq	%r12, 16(%rcx)
	movq	%rcx, %r12
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_mp_decode_frame
	testl	%eax, %eax
	js	LBB0_27
## %bb.26:
	movl	8(%r15), %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	8(%r12), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_29
LBB0_22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	jmp	LBB0_8
LBB0_27:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %ebx
	je	LBB0_30
## %bb.28:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_30
LBB0_29:
	movl	$0, (%r12)
	addl	%r14d, %ebx
	movl	%ebx, %r13d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADER_SIZE,4,2                ## @HEADER_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TAG"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"discarding ID3 tag\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Header missing\n"

	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
L_.str.3:                               ## @.str.3
	.asciz	"incomplete frame\n"

L_.str.4:                               ## @.str.4
	.asciz	"incorrect frame size - multiple frames in buffer?\n"

L_.str.5:                               ## @.str.5
	.asciz	"Error while decoding MPEG audio frame.\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.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	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x3]
	ldr	w27, [x3, #8]
	cbz	w27, LBB0_5
; %bb.1:
	mov	x8, #0
	sub	w9, w27, #1
	add	x9, x9, x24
	add	x9, x9, #1
	mov	x22, x27
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x24, x8]
	cbnz	w10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	subs	w22, w22, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x24, x9
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:
	add	x24, x24, x8
	mov	x27, x8
LBB0_7:
Lloh0:
	adrp	x8, _HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_11
LBB0_9:
	ldr	x25, [x19, #24]
	mov	x0, x24
	bl	_AV_RB32
	mov	x26, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_AV_RB32
	eor	w8, w0, w26
	cmp	w8, #255
	b.hi	LBB0_12
; %bb.10:
Lloh8:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	w23, w27, w22
LBB0_11:
	mov	x0, x23
	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
LBB0_12:
	mov	x0, x25
	mov	x1, x26
	bl	_avpriv_mpegaudio_decode_header
	tbnz	w0, #31, LBB0_15
; %bb.13:
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.14:
	mov	w8, #-1
	str	w8, [x25]
	b	LBB0_8
LBB0_15:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_16:
	ldr	w8, [x25, #4]
Lloh18:
	adrp	x9, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh20:
	adrp	x10, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh21:
	ldr	x10, [x10, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
	str	w8, [x19]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_18
; %bb.17:
	ldr	w8, [x25, #24]
	str	w8, [x19, #12]
LBB0_18:
	ldr	w8, [x25]
	cmp	w8, #0
	b.le	LBB0_23
; %bb.19:
	cmp	w8, w22
	b.ge	LBB0_21
; %bb.20:
Lloh22:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w22, [x25]
LBB0_21:
	str	x23, [x25, #16]
	mov	x0, x25
	mov	x1, #0
	mov	x2, x24
	mov	x3, x22
	bl	_mp_decode_frame
	tbnz	w0, #31, LBB0_25
; %bb.22:
	ldr	w8, [x19, #8]
	ldr	x9, [x25, #16]
	str	w8, [x9]
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x25, #8]
	str	w8, [x19, #4]
	b	LBB0_27
LBB0_23:
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_av_log
	b	LBB0_8
LBB0_25:
	mov	x23, x0
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.5@PAGE
Lloh36:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	wzr, [x20]
	ldr	w8, [x21, #8]
	cmp	w22, w8
	b.eq	LBB0_11
; %bb.26:
Lloh37:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_11
LBB0_27:
	str	wzr, [x25]
	add	w23, w22, w27
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADER_SIZE,4,2                ; @HEADER_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TAG"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"discarding ID3 tag\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Header missing\n"

	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
l_.str.3:                               ; @.str.3
	.asciz	"incomplete frame\n"

l_.str.4:                               ; @.str.4
	.asciz	"incorrect frame size - multiple frames in buffer?\n"

l_.str.5:                               ; @.str.5
	.asciz	"Error while decoding MPEG audio frame.\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
