	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_header
_mpc_demux_header:                      ## @mpc_demux_header
	.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
	movq	%rdi, %rbx
	movl	$255, (%rdi)
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_mpc_demux_skip_id3v2
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	48(%rbx), %rdi
	callq	*(%rdi)
	movl	%eax, 28(%rbx)
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_mpc_demux_fill
	leaq	40(%rbx), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_mpc_bits_read
	movb	%al, -44(%rbp)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_mpc_bits_read
	movb	%al, -43(%rbp)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_mpc_bits_read
	movb	%al, -42(%rbp)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_mpc_bits_read
	movb	%al, -41(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	_mpc_demux_fill
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mpc_bits_get_block
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %r12
	movq	_DEMUX_BUFFER_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_9
LBB0_3:
	movb	-41(%rbp), %al
	movl	%eax, %ecx
	andb	$15, %cl
	movb	%cl, 24(%rbx)
	sarb	$4, %al
	movsbl	%al, %eax
	movl	%eax, (%rbx)
	cmpb	$7, %cl
	jne	LBB0_1
## %bb.4:
	movq	_MPC_BUFFER_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_mpc_demux_fill
	cmpq	$23, %rax
	jle	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_streaminfo_read_header_sv7
	movl	%eax, %edi
	callq	_MPC_AUTO_FAIL
	jmp	LBB0_25
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_streaminfo_gain
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-56(%rbp), %eax
	addl	%eax, (%r14)
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	callq	_mpc_bits_get_block
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_24
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	callq	_mpc_check_key
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rsi
	movq	(%r13), %rax
	addq	$-11, %rax
	cmpq	%rax, %rsi
	jg	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$11, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_mpc_demux_fill
	cmpq	-56(%rbp), %rax
	jle	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_mpc_demux_ST
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-56(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_streaminfo_read_header_sv8
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %edi
	callq	_MPC_AUTO_FAIL
	jmp	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_streaminfo_encoder_info
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-56(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_mpc_demux_SP
	jmp	LBB0_22
LBB0_24:
	subl	%r15d, 40(%rbx)
	cmpb	$0, 24(%rbx)
	je	LBB0_1
LBB0_25:
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_1:
	movq	_MPC_STATUS_FAIL@GOTPCREL(%rip), %rax
LBB0_26:
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n.a."

	.comm	_MPC_STATUS_FAIL,8,3            ## @MPC_STATUS_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"MP+"

	.comm	_MPC_BUFFER_SWAP,4,2            ## @MPC_BUFFER_SWAP
L_.str.2:                               ## @.str.2
	.asciz	"MPCK"

L_.str.3:                               ## @.str.3
	.asciz	"AP"

	.comm	_MPC_STATUS_OK,8,3              ## @MPC_STATUS_OK
	.comm	_DEMUX_BUFFER_SIZE,8,3          ## @DEMUX_BUFFER_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"SH"

L_.str.5:                               ## @.str.5
	.asciz	"RG"

L_.str.6:                               ## @.str.6
	.asciz	"EI"

L_.str.7:                               ## @.str.7
	.asciz	"SO"

L_.str.8:                               ## @.str.8
	.asciz	"ST"

	.no_dead_strip	_mpc_demux_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_header
_mpc_demux_header:                      ; @mpc_demux_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	mov	w8, #255
	str	w8, [x0]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0, #8]
	bl	_mpc_demux_skip_id3v2
	str	x0, [x19, #16]
	tbnz	x0, #63, LBB0_25
; %bb.1:
	ldr	x0, [x19, #48]
	ldr	x8, [x0]
	blr	x8
	stp	w0, w0, [x19, #28]
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_mpc_demux_fill
	add	x20, x19, #40
	mov	x0, x20
	mov	w1, #8
	bl	_mpc_bits_read
	strb	w0, [sp, #28]
	mov	x0, x20
	mov	w1, #8
	bl	_mpc_bits_read
	strb	w0, [sp, #29]
	mov	x0, x20
	mov	w1, #8
	bl	_mpc_bits_read
	strb	w0, [sp, #30]
	mov	x0, x20
	mov	w1, #8
	bl	_mpc_bits_read
	strb	w0, [sp, #31]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #28
	mov	w2, #3
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #28
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_25
; %bb.3:
	mov	x0, x19
	mov	w1, #11
	mov	w2, #0
	bl	_mpc_demux_fill
	add	x1, sp, #8
	mov	x0, x20
	bl	_mpc_bits_get_block
	mov	x27, x0
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_23
; %bb.4:
Lloh8:
	adrp	x28, _MPC_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MPC_STATUS_OK@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str.4@PAGE
Lloh11:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh12:
	adrp	x26, _DEMUX_BUFFER_SIZE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _DEMUX_BUFFER_SIZE@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str.3@PAGE
Lloh15:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh16:
	adrp	x23, l_.str.5@PAGE
Lloh17:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh18:
	adrp	x24, l_.str.6@PAGE
Lloh19:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh20:
	adrp	x25, l_.str.7@PAGE
Lloh21:
	add	x25, x25, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_5:
	ldrsb	w8, [sp, #31]
	and	w9, w8, #0xf
	strb	w9, [x19, #24]
	asr	w8, w8, #4
	str	w8, [x19]
	cmp	w9, #7
	b.ne	LBB0_25
; %bb.6:
Lloh22:
	adrp	x8, _MPC_BUFFER_SWAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MPC_BUFFER_SWAP@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_mpc_demux_fill
	cmp	x0, #23
	b.le	LBB0_25
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_streaminfo_read_header_sv7
	bl	_MPC_AUTO_FAIL
	b	LBB0_24
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_streaminfo_gain
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	add	x1, sp, #8
	mov	x0, x20
	bl	_mpc_bits_get_block
	mov	x27, x0
	ldr	x0, [sp, #8]
	mov	x1, x22
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_mpc_check_key
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x26]
	sub	x9, x9, #11
	cmp	x8, x9
	b.gt	LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w1, w8, #11
	mov	x0, x19
	mov	w2, #0
	bl	_mpc_demux_fill
	ldr	x8, [sp, #16]
	cmp	x0, x8
	b.le	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x21
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x23
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x24
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x25
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_mpc_demux_ST
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_streaminfo_read_header_sv8
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_MPC_AUTO_FAIL
	b	LBB0_9
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_streaminfo_encoder_info
	b	LBB0_9
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [sp, #16]
	mov	x0, x19
	mov	x1, x27
	bl	_mpc_demux_SP
	b	LBB0_20
LBB0_23:
	ldr	w8, [x19, #40]
	sub	w8, w8, w27
	str	w8, [x19, #40]
	ldrb	w8, [x19, #24]
	cbz	w8, LBB0_25
LBB0_24:
Lloh27:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh29:
	adrp	x8, _MPC_STATUS_FAIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MPC_STATUS_FAIL@GOTPAGEOFF]
LBB0_26:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n.a."

	.comm	_MPC_STATUS_FAIL,8,3            ; @MPC_STATUS_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"MP+"

	.comm	_MPC_BUFFER_SWAP,4,2            ; @MPC_BUFFER_SWAP
l_.str.2:                               ; @.str.2
	.asciz	"MPCK"

l_.str.3:                               ; @.str.3
	.asciz	"AP"

	.comm	_MPC_STATUS_OK,8,3              ; @MPC_STATUS_OK
	.comm	_DEMUX_BUFFER_SIZE,8,3          ; @DEMUX_BUFFER_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"SH"

l_.str.5:                               ; @.str.5
	.asciz	"RG"

l_.str.6:                               ; @.str.6
	.asciz	"EI"

l_.str.7:                               ; @.str.7
	.asciz	"SO"

l_.str.8:                               ; @.str.8
	.asciz	"ST"

	.no_dead_strip	_mpc_demux_header
.subsections_via_symbols
