	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp3_init
_mp3_init:                              ## @mp3_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r8
	movl	(%r8), %ecx
	cmpl	$4, %ecx
	ja	LBB0_2
## %bb.1:
	movl	$25, %eax
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.3:
	movl	$-1, 4(%r8)
	movl	(%rdi), %r11d
	testl	%r11d, %r11d
	jle	LBB0_14
## %bb.4:
	movq	8(%rdi), %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movl	$-1, %ebx
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r9, %rax
	jne	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %r11
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rdx,8), %rax
	movq	(%rax), %rsi
	movq	(%rsi), %rax
	cmpq	%r15, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r10, 8(%rsi)
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, 4(%r8)
	movl	%edx, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_19
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_18
LBB0_13:
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.15:
	decl	%r11d
	movl	%r11d, 8(%r8)
	je	LBB0_20
## %bb.16:
	testl	%ecx, %ecx
	jne	LBB0_20
## %bb.17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_18
LBB0_14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_18
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_18:
	xorl	%eax, %eax
	callq	_av_log
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_20:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"Invalid ID3v2 version requested: %d. Only 3, 4 or 0 (disabled) are allowed.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_MP3,8,3            ## @AV_CODEC_ID_MP3
L_.str.1:                               ## @.str.1
	.asciz	"Invalid audio stream. Exactly one MP3 audio stream is required.\n"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
L_.str.2:                               ## @.str.2
	.asciz	"Only audio streams and pictures are allowed in MP3.\n"

L_.str.3:                               ## @.str.3
	.asciz	"No audio stream present.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Attached pictures were requested, but the ID3v2 header is disabled.\n"

	.no_dead_strip	_mp3_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp3_init
_mp3_init:                              ; @mp3_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #16]
	ldr	w8, [x9]
	cmp	w8, #4
	mov	w10, #1
	lsl	w10, w10, w8
	mov	w11, #25
	and	w10, w10, w11
	ccmp	w10, #0, #4, ls
	b.eq	LBB0_9
; %bb.1:
	mov	w10, #-1
	str	w10, [x9, #4]
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x11, #0
	ldr	x12, [x0, #8]
Lloh0:
	adrp	x13, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x13, [x13, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	adrp	x14, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x14, [x14, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	x13, [x13]
Lloh5:
	ldr	x14, [x14]
Lloh6:
	adrp	x15, _AV_CODEC_ID_MP3@GOTPAGE
Lloh7:
	ldr	x15, [x15, _AV_CODEC_ID_MP3@GOTPAGEOFF]
Lloh8:
	ldr	x15, [x15]
	mov	w16, #-1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x1, x14
	b.ne	LBB0_16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x17, [x12, x11, lsl #3]
	ldr	x17, [x17]
	ldr	x1, [x17]
	cmp	x1, x13
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w16, #31, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x16, [x17, #8]
	cmp	x16, x15
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w11, [x9, #4]
	mov	x16, x11
	b	LBB0_4
LBB0_9:
Lloh9:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
LBB0_10:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_11:
	tbnz	w16, #31, LBB0_15
; %bb.12:
	subs	w10, w10, #1
	str	w10, [x9, #8]
	b.eq	LBB0_18
; %bb.13:
	cbnz	w8, LBB0_18
; %bb.14:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_17:
	bl	_av_log
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_AVERROR
LBB0_18:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ID3v2 version requested: %d. Only 3, 4 or 0 (disabled) are allowed.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_MP3,8,3            ; @AV_CODEC_ID_MP3
l_.str.1:                               ; @.str.1
	.asciz	"Invalid audio stream. Exactly one MP3 audio stream is required.\n"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
l_.str.2:                               ; @.str.2
	.asciz	"Only audio streams and pictures are allowed in MP3.\n"

l_.str.3:                               ; @.str.3
	.asciz	"No audio stream present.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Attached pictures were requested, but the ID3v2 header is disabled.\n"

	.no_dead_strip	_mp3_init
.subsections_via_symbols
