	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2ReadFilteredSector          ## -- Begin function Cs2ReadFilteredSector
	.p2align	4, 0x90
_Cs2ReadFilteredSector:                 ## @Cs2ReadFilteredSector
	.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	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$16777215, -48(%rbp)            ## imm = 0xFFFFFF
	movq	$-256, -56(%rbp)
	movq	_Cs2Area@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	$-1, %ebx
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 56(%rax)
	je	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.5:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%edi, %r15d
	movq	16(%rax), %rsi
	movq	48(%rax), %rax
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	%ecx, 24(%rax)
	movl	%r15d, 44(%rax)
	movq	16(%rax), %rsi
	leaq	-56(%rbp), %rdi
	movl	$12, %edx
	callq	_memcmp
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_Cs2SetTiming
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	callq	_ScspReceiveCDDA
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_9:
	movl	$-2, %ebx
	jmp	LBB0_3
LBB0_10:
	cmpl	$2, 60(%rdi)
	jne	LBB0_14
## %bb.11:
	testb	$32, 72(%rdi)
	je	LBB0_13
## %bb.12:
	movl	$2324, 24(%rax)                 ## imm = 0x914
LBB0_13:
	movl	64(%rdi), %ecx
	movl	%ecx, 28(%rax)
	movl	68(%rdi), %ecx
	movl	%ecx, 32(%rax)
	movl	72(%rdi), %ecx
	movl	%ecx, 36(%rax)
	movl	76(%rdi), %ecx
	movl	%ecx, 40(%rax)
LBB0_14:
	movq	8(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_Cs2FilterData
	jmp	LBB0_4
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.Cs2ReadFilteredSector.syncheader: ## @__const.Cs2ReadFilteredSector.syncheader
	.asciz	"\000\377\377\377\377\377\377\377\377\377\377"

	.comm	_Cs2Area,8,3                    ## @Cs2Area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2ReadFilteredSector          ; -- Begin function Cs2ReadFilteredSector
	.p2align	2
_Cs2ReadFilteredSector:                 ; @Cs2ReadFilteredSector
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #16777215
	str	w8, [sp, #16]
	mov	x8, #-256
	str	x8, [sp, #8]
Lloh3:
	adrp	x21, _Cs2Area@GOTPAGE
Lloh4:
	ldr	x21, [x21, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w9, [x8, #56]
	cbz	w9, LBB0_5
LBB0_2:
	mov	x8, #0
	mov	w0, #-1
LBB0_3:
	str	x8, [x19]
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.4:
	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_5:
	mov	x20, x0
	ldr	x9, [x8, #48]
	ldr	x9, [x9]
	ldr	x1, [x8, #16]
	blr	x9
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x21]
	ldr	w9, [x8]
	str	w9, [x8, #24]
	str	w20, [x8, #44]
	ldr	x1, [x8, #16]
	add	x0, sp, #8
	mov	w2, #12
	bl	_memcmp
	mov	x20, x0
	cmp	x0, #0
	cset	w8, ne
	ldr	x9, [x21]
	str	w8, [x9, #4]
	mov	w0, #1
	bl	_Cs2SetTiming
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	cbz	x20, LBB0_9
; %bb.7:
	bl	_ScspReceiveCDDA
	mov	x8, #0
	b	LBB0_14
LBB0_8:
	mov	x8, #0
	mov	w0, #-2
	b	LBB0_3
LBB0_9:
	ldr	w9, [x0, #60]
	cmp	w9, #2
	b.ne	LBB0_13
; %bb.10:
	ldrb	w9, [x0, #72]
	tbz	w9, #5, LBB0_12
; %bb.11:
	mov	w9, #2324
	str	w9, [x8, #24]
LBB0_12:
	ldr	w9, [x0, #64]
	str	w9, [x8, #28]
	ldr	w9, [x0, #68]
	str	w9, [x8, #32]
	ldr	w9, [x0, #72]
	str	w9, [x8, #36]
	ldr	w9, [x0, #76]
	str	w9, [x8, #40]
LBB0_13:
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_Cs2FilterData
	mov	x8, x0
LBB0_14:
	mov	w0, #0
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.Cs2ReadFilteredSector.syncheader: ; @__const.Cs2ReadFilteredSector.syncheader
	.asciz	"\000\377\377\377\377\377\377\377\377\377\377"

	.comm	_Cs2Area,8,3                    ; @Cs2Area
.subsections_via_symbols
