	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_id3_metadata_reader_open       ## -- Begin function id3_metadata_reader_open
	.p2align	4, 0x90
_id3_metadata_reader_open:              ## @id3_metadata_reader_open
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-50(%rbp), %rsi
	movl	$10, %edx
	callq	_PEEK_BYTES
	cmpl	$10, %eax
	jne	LBB0_22
## %bb.1:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	leaq	-50(%rbp), %r14
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$10, %edx
	callq	_PEEK_BYTES
	cmpl	$10, %eax
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$73, -50(%rbp)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$68, -49(%rbp)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$51, -48(%rbp)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_id3_read_id3v2_tag
	cmpl	(%r12), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_LOG_DEBUG
	jmp	LBB0_7
LBB0_22:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_20
LBB0_8:
	movq	%rbx, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movl	$128, %edi
	callq	_INT64_C
	cmpq	%rax, %r15
	jl	LBB0_16
## %bb.9:
	movq	%rbx, %rdi
	callq	_STREAM_SEEKABLE
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movl	$128, %edi
	callq	_INT64_C
	subq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SEEK
	leaq	-50(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_PEEK_BYTES
	cmpl	$3, %eax
	jne	LBB0_16
## %bb.11:
	cmpb	$84, -50(%rbp)
	jne	LBB0_16
## %bb.12:
	cmpb	$65, -49(%rbp)
	jne	LBB0_16
## %bb.13:
	cmpb	$71, -48(%rbp)
	jne	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	callq	_id3_read_id3v1_tag
	cmpl	(%r12), %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_LOG_DEBUG
LBB0_16:
	movq	%rbx, %rdi
	callq	_STREAM_POSITION
	cmpq	%r14, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SEEK
LBB0_18:
	movq	_id3_metadata_reader_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	movl	%eax, %r14d
	cmpl	(%r12), %eax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_LOG_DEBUG
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading ID3v2 tag (%i)"

L_.str.1:                               ## @.str.1
	.asciz	"error reading ID3v1 tag (%i)"

	.comm	_id3_metadata_reader_close,4,2  ## @id3_metadata_reader_close
L_.str.2:                               ## @.str.2
	.asciz	"error opening stream (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_id3_metadata_reader_open       ; -- Begin function id3_metadata_reader_open
	.p2align	2
_id3_metadata_reader_open:              ; @id3_metadata_reader_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #14
	mov	w2, #10
	bl	_PEEK_BYTES
	cmp	w0, #10
	b.ne	LBB0_8
; %bb.1:
Lloh3:
	adrp	x21, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #14
	mov	x0, x19
	mov	w2, #10
	bl	_PEEK_BYTES
	cmp	w0, #10
	b.ne	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [sp, #14]
	cmp	w8, #73
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w8, #68
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #16]
	cmp	w8, #51
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_id3_read_id3v2_tag
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_LOG_DEBUG
	b	LBB0_2
LBB0_8:
Lloh7:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_21
LBB0_9:
	mov	x0, x19
	bl	_STREAM_POSITION
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x22, [x8]
	mov	w0, #128
	bl	_INT64_C
	cmp	x22, x0
	b.lt	LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_STREAM_SEEKABLE
	cbz	x0, LBB0_17
; %bb.11:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x22, [x8]
	mov	w0, #128
	bl	_INT64_C
	sub	x1, x22, x0
	mov	x0, x19
	bl	_SEEK
	add	x1, sp, #14
	mov	x0, x19
	mov	w2, #3
	bl	_PEEK_BYTES
	cmp	w0, #3
	b.ne	LBB0_17
; %bb.12:
	ldrb	w8, [sp, #14]
	cmp	w8, #84
	b.ne	LBB0_17
; %bb.13:
	ldrb	w8, [sp, #15]
	cmp	w8, #65
	b.ne	LBB0_17
; %bb.14:
	ldrb	w8, [sp, #16]
	cmp	w8, #71
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_id3_read_id3v1_tag
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.16:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
LBB0_17:
	mov	x0, x19
	bl	_STREAM_POSITION
	cmp	x0, x20
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x20
	bl	_SEEK
LBB0_19:
Lloh12:
	adrp	x8, _id3_metadata_reader_close@GOTPAGE
Lloh13:
	ldr	x8, [x8, _id3_metadata_reader_close@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x19
	bl	_STREAM_STATUS
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_21
; %bb.20:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_LOG_DEBUG
LBB0_21:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading ID3v2 tag (%i)"

l_.str.1:                               ; @.str.1
	.asciz	"error reading ID3v1 tag (%i)"

	.comm	_id3_metadata_reader_close,4,2  ; @id3_metadata_reader_close
l_.str.2:                               ; @.str.2
	.asciz	"error opening stream (%i)"

.subsections_via_symbols
