	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function Cs2GetSubcodeQRW
LCPI0_0:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Cs2GetSubcodeQRW
	.p2align	4, 0x90
_Cs2GetSubcodeQRW:                      ## @Cs2GetSubcodeQRW
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_Cs2Area@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movb	32(%rcx), %al
	cmpb	$1, %al
	je	LBB0_3
## %bb.1:
	testb	%al, %al
	jne	LBB0_13
## %bb.2:
	movl	(%rcx), %eax
	movl	4(%rcx), %edi
	shll	$8, %eax
	movl	%eax, 32(%rcx)
	movq	$5, 36(%rcx)
	movl	$0, 48(%rcx)
	movq	8(%rcx), %rax
	movslq	76(%rcx), %rcx
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	andl	-4(%rax,%rcx,4), %edx
	subl	%edx, %edi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	_Cs2FADToMSF
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_Cs2FADToMSF
	movq	(%rbx), %rax
	movq	64(%rax), %rcx
	movq	80(%rax), %rax
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movl	76(%rax), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rdx
	movq	%rax, 8(%rdx)
	movl	72(%rcx), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movl	-32(%rbp), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rcx
	movq	%rax, 24(%rcx)
	movl	-28(%rbp), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rcx
	movq	%rax, 32(%rcx)
	movl	-24(%rbp), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rdx
	movq	%rax, 40(%rdx)
	movq	64(%rcx), %rax
	movq	$0, 48(%rax)
	movl	-20(%rbp), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rcx
	movq	%rax, 56(%rcx)
	movl	-16(%rbp), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rcx
	movq	%rax, 64(%rcx)
	movl	-12(%rbp), %edi
	callq	_ToBCD
	movq	(%rbx), %rcx
	movq	64(%rcx), %rdx
	movq	%rax, 72(%rdx)
	movl	$3, %eax
	jmp	LBB0_12
LBB0_3:
	movl	(%rcx), %edx
	movl	4(%rcx), %eax
	shll	$8, %edx
	movl	%edx, 32(%rcx)
	movl	$12, 36(%rcx)
	movl	$0, 48(%rcx)
	cmpl	_Cs2GetSubcodeQRW.lastfad(%rip), %eax
	jne	LBB0_4
## %bb.5:
	movl	_Cs2GetSubcodeQRW.group(%rip), %edi
	incl	%edi
	jmp	LBB0_6
LBB0_4:
	movl	%eax, _Cs2GetSubcodeQRW.lastfad(%rip)
	xorl	%edi, %edi
LBB0_6:
	movl	%edi, _Cs2GetSubcodeQRW.group(%rip)
	movl	%edi, 40(%rcx)
	movq	24(%rcx), %rbx
	movq	56(%rcx), %rdx
	shll	$3, %edi
	leal	(%rdi,%rdi,2), %esi
	leal	(%rdi,%rdi,2), %r8d
	addl	$2352, %r8d                     ## imm = 0x930
	leal	(%rdi,%rdi,2), %edi
	addl	$2375, %edi                     ## imm = 0x947
	cmpl	%r8d, %edi
	jl	LBB0_7
## %bb.9:
	leal	2352(%rsi), %edi
	movslq	%edi, %rdi
	leaq	(%rdx,%rdi,4), %rdi
	movq	%rbx, %rax
	subq	%rdi, %rax
	cmpq	$16, %rax
	jae	LBB0_10
LBB0_7:
	addl	$2354, %esi                     ## imm = 0x932
	movl	$8, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rsi), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	andl	$63, %eax
	movl	%eax, -8(%rbx,%rdi)
	leal	-1(%rsi), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	andl	$63, %eax
	movl	%eax, -4(%rbx,%rdi)
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %eax
	andl	$63, %eax
	movl	%eax, (%rbx,%rdi)
	addq	$12, %rdi
	addl	$3, %esi
	cmpq	$104, %rdi
	jne	LBB0_8
	jmp	LBB0_11
LBB0_10:
	movslq	%r8d, %rax
	movups	(%rdx,%rax,4), %xmm1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [63,63,63,63]
	andps	%xmm0, %xmm1
	movups	%xmm1, (%rbx)
	leal	2356(%rsi), %eax
	cltq
	movups	(%rdx,%rax,4), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 16(%rbx)
	leal	2360(%rsi), %eax
	cltq
	movups	(%rdx,%rax,4), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 32(%rbx)
	leal	2364(%rsi), %eax
	cltq
	movups	(%rdx,%rax,4), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 48(%rbx)
	leal	2368(%rsi), %eax
	cltq
	movups	(%rdx,%rax,4), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 64(%rbx)
	addl	$2372, %esi                     ## imm = 0x944
	movslq	%esi, %rax
	movups	(%rdx,%rax,4), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 80(%rbx)
LBB0_11:
	movl	$4, %eax
LBB0_12:
	movl	$0, 52(%rcx)
	movl	%eax, 16(%rcx)
LBB0_13:
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movq	_CDB_HIRQ_DRDY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	orl	%edx, 44(%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
.zerofill __DATA,__bss,_Cs2GetSubcodeQRW.lastfad,4,2 ## @Cs2GetSubcodeQRW.lastfad
.zerofill __DATA,__bss,_Cs2GetSubcodeQRW.group,4,2 ## @Cs2GetSubcodeQRW.group
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_DRDY,4,2              ## @CDB_HIRQ_DRDY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function Cs2GetSubcodeQRW
lCPI0_0:
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Cs2GetSubcodeQRW
	.p2align	2
_Cs2GetSubcodeQRW:                      ; @Cs2GetSubcodeQRW
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x19]
	ldrb	w9, [x8, #32]
	cmp	w9, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w9, LBB0_7
; %bb.2:
	ldp	w9, w10, [x8]
	lsl	w9, w9, #8
	str	w9, [x8, #32]
	str	wzr, [x8, #48]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #36]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8, #76]
	add	x8, x9, x8, lsl #2
	ldur	w8, [x8, #-4]
	and	w8, w8, #0xffffff
	sub	w0, w10, w8
	sub	x1, x29, #20
	add	x2, sp, #24
	add	x3, sp, #20
	bl	_Cs2FADToMSF
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_Cs2FADToMSF
	ldr	x8, [x19]
	ldr	x9, [x8, #80]
	ldr	x8, [x8, #64]
	str	x9, [x8]
	ldr	x8, [x19]
	ldr	w0, [x8, #76]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x9, [x8, #64]
	str	x0, [x9, #8]
	ldr	w0, [x8, #72]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x8, [x8, #64]
	str	x0, [x8, #16]
	ldur	w0, [x29, #-20]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x8, [x8, #64]
	str	x0, [x8, #24]
	ldr	w0, [sp, #24]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x8, [x8, #64]
	str	x0, [x8, #32]
	ldr	w0, [sp, #20]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x9, [x8, #64]
	str	x0, [x9, #40]
	ldr	x8, [x8, #64]
	str	xzr, [x8, #48]
	ldr	w0, [sp, #16]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x8, [x8, #64]
	str	x0, [x8, #56]
	ldr	w0, [sp, #12]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x8, [x8, #64]
	str	x0, [x8, #64]
	ldr	w0, [sp, #8]
	bl	_ToBCD
	ldr	x8, [x19]
	ldr	x9, [x8, #64]
	str	x0, [x9, #72]
	str	wzr, [x8, #52]
	mov	w9, #3
	str	w9, [x8, #16]
	b	LBB0_7
LBB0_3:
	ldp	w9, w11, [x8]
	lsl	w9, w9, #8
	mov	w10, #12
	stp	w9, w10, [x8, #32]
	str	wzr, [x8, #48]
	adrp	x12, _Cs2GetSubcodeQRW.lastfad@PAGE
	ldr	w10, [x12, _Cs2GetSubcodeQRW.lastfad@PAGEOFF]
	adrp	x9, _Cs2GetSubcodeQRW.group@PAGE
	cmp	w11, w10
	b.ne	LBB0_5
; %bb.4:
	ldr	w10, [x9, _Cs2GetSubcodeQRW.group@PAGEOFF]
	add	w10, w10, #1
	b	LBB0_6
LBB0_5:
	mov	w10, #0
	str	w11, [x12, _Cs2GetSubcodeQRW.lastfad@PAGEOFF]
LBB0_6:
	str	w10, [x9, _Cs2GetSubcodeQRW.group@PAGEOFF]
	str	w10, [x8, #40]
	ldr	x9, [x8, #56]
	add	w10, w10, w10, lsl #1
	lsl	w10, w10, #3
	add	w11, w10, #2352
	ldr	w12, [x9, w11, sxtw #2]
	ldr	x11, [x8, #24]
	and	w12, w12, #0x3f
	str	w12, [x11]
	add	w12, w10, #2353
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #4]
	add	w12, w10, #2354
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #8]
	add	w12, w10, #2355
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #12]
	add	w12, w10, #2356
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #16]
	add	w12, w10, #2357
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #20]
	add	w12, w10, #2358
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #24]
	add	w12, w10, #2359
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #28]
	add	w12, w10, #2360
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #32]
	add	w12, w10, #2361
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #36]
	add	w12, w10, #2362
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #40]
	add	w12, w10, #2363
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #44]
	add	w12, w10, #2364
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #48]
	add	w12, w10, #2365
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #52]
	add	w12, w10, #2366
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #56]
	add	w12, w10, #2367
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #60]
	add	w12, w10, #2368
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #64]
	add	w12, w10, #2369
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #68]
	add	w12, w10, #2370
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #72]
	add	w12, w10, #2371
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #76]
	add	w12, w10, #2372
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #80]
	add	w12, w10, #2373
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #84]
	add	w12, w10, #2374
	ldr	w12, [x9, w12, sxtw #2]
	and	w12, w12, #0x3f
	str	w12, [x11, #88]
	add	w10, w10, #2375
	ldr	w9, [x9, w10, sxtw #2]
	and	w9, w9, #0x3f
	str	w9, [x11, #92]
	str	wzr, [x8, #52]
	mov	w9, #4
	str	w9, [x8, #16]
	ldr	x8, [x19]
LBB0_7:
Lloh4:
	adrp	x9, _CDB_HIRQ_CMOK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh6:
	adrp	x10, _CDB_HIRQ_DRDY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CDB_HIRQ_DRDY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x8, #44]
	orr	w9, w9, w10
	str	w9, [x8, #44]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
.zerofill __DATA,__bss,_Cs2GetSubcodeQRW.lastfad,4,2 ; @Cs2GetSubcodeQRW.lastfad
.zerofill __DATA,__bss,_Cs2GetSubcodeQRW.group,4,2 ; @Cs2GetSubcodeQRW.group
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_DRDY,4,2              ; @CDB_HIRQ_DRDY
.subsections_via_symbols
