	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2Exec                        ## -- Begin function Cs2Exec
	.p2align	4, 0x90
_Cs2Exec:                               ## @Cs2Exec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leal	(%rbx,%rbx,2), %eax
	movslq	%eax, %rcx
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movdqu	(%rax), %xmm0
	movq	%rcx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, (%rax)
	movl	16(%rax), %edx
	movq	%xmm1, %rcx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	subl	%ebx, %edx
	jge	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_Cs2Execute
	movq	(%r14), %rax
	movl	$0, 16(%rax)
	movq	(%rax), %rcx
LBB0_4:
	subq	24(%rax), %rcx
	jge	LBB0_5
	jmp	LBB0_16
LBB0_3:
	movl	%edx, 16(%rax)
	subq	24(%rax), %rcx
	jl	LBB0_16
LBB0_5:
	movq	%rcx, (%rax)
	movq	128(%rax), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.6:
	je	LBB0_12
## %bb.7:
	cmpl	$3, %eax
	jne	LBB0_8
## %bb.13:
	movq	(%r14), %rax
	movl	32(%rax), %edx
	andl	$15, %edx
	movq	_CDB_STAT_OPEN@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_9:
	movq	(%r14), %rax
	movl	32(%rax), %ecx
	andl	$15, %ecx
	movq	_CDB_STAT_NODISC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_11
## %bb.10:
	movq	_CDB_STAT_OPEN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_16
LBB0_11:
	movabsq	$4294967428, %rcx               ## imm = 0x100000084
	movq	%rcx, 32(%rax)
	jmp	LBB0_16
LBB0_12:
	movq	(%r14), %rax
	movl	32(%rax), %edx
	andl	$15, %edx
	movq	_CDB_STAT_NODISC@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	je	LBB0_16
## %bb.15:
	movl	%ecx, 32(%rax)
	jmp	LBB0_16
LBB0_8:
	movq	(%r14), %rax
LBB0_16:
	movq	8(%rax), %rcx
	subq	40(%rax), %rcx
	jl	LBB0_19
## %bb.17:
	movq	%rcx, 8(%rax)
	cmpq	$0, 80(%rax)
	jne	LBB0_21
## %bb.18:
	movq	_CDB_STAT_PERI@GOTPCREL(%rip), %rcx
	movl	32(%rax), %edi
	orl	(%rcx), %edi
	movl	%edi, 32(%rax)
	callq	_doCDReport
	movq	_CDB_HIRQ_SCDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r14), %rax
	orl	%ecx, 72(%rax)
LBB0_19:
	movq	64(%rax), %rax
	movq	_CART_NETLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.22:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_NetlinkExec                    ## TAILCALL
LBB0_20:
	movq	_CART_JAPMODEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.23:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_JapModemExec                   ## TAILCALL
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_STAT_NODISC,4,2            ## @CDB_STAT_NODISC
	.comm	_CDB_STAT_OPEN,4,2              ## @CDB_STAT_OPEN
	.comm	_CDB_HIRQ_CSCT,4,2              ## @CDB_HIRQ_CSCT
	.comm	_CDB_HIRQ_PEND,4,2              ## @CDB_HIRQ_PEND
	.comm	_CDB_PLAYTYPE_FILE,4,2          ## @CDB_PLAYTYPE_FILE
	.comm	_CDB_HIRQ_EFLS,4,2              ## @CDB_HIRQ_EFLS
	.comm	_CDB_STAT_PERI,4,2              ## @CDB_STAT_PERI
	.comm	_CDB_HIRQ_SCDQ,4,2              ## @CDB_HIRQ_SCDQ
	.comm	_CART_NETLINK,8,3               ## @CART_NETLINK
	.comm	_CART_JAPMODEM,8,3              ## @CART_JAPMODEM
.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 Cs2Exec
lCPI0_0:
	.long	132                             ; 0x84
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Cs2Exec
	.p2align	2
_Cs2Exec:                               ; @Cs2Exec
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	w8, w0, w0, lsl #1
	sxtw	x9, w8
Lloh0:
	adrp	x20, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x20]
	dup.2d	v0, x9
	ldr	q1, [x8]
	add.2d	v0, v1, v0
	str	q0, [x8]
	ldr	w10, [x8, #16]
	fmov	x9, d0
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	subs	w10, w10, w19
	b.ge	LBB0_3
; %bb.2:
	bl	_Cs2Execute
	ldr	x8, [x20]
	str	wzr, [x8, #16]
	ldr	x9, [x8]
	b	LBB0_4
LBB0_3:
	str	w10, [x8, #16]
LBB0_4:
	ldr	x10, [x8, #24]
	subs	x9, x9, x10
	b.ge	LBB0_10
LBB0_5:
	ldr	x9, [x8, #8]
	ldr	x10, [x8, #40]
	subs	x9, x9, x10
	b.lt	LBB0_8
; %bb.6:
	str	x9, [x8, #8]
	ldr	x9, [x8, #80]
	cbnz	x9, LBB0_16
; %bb.7:
Lloh2:
	adrp	x9, _CDB_STAT_PERI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CDB_STAT_PERI@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x8, #32]
	orr	w0, w10, w9
	str	w0, [x8, #32]
	bl	_doCDReport
Lloh5:
	adrp	x8, _CDB_HIRQ_SCDQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDB_HIRQ_SCDQ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	ldr	x8, [x20]
	ldr	w10, [x8, #72]
	orr	w9, w10, w9
	str	w9, [x8, #72]
LBB0_8:
	ldr	x8, [x8, #64]
Lloh8:
	adrp	x9, _CART_NETLINK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CART_NETLINK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_NetlinkExec
LBB0_10:
	str	x9, [x8]
	ldr	x8, [x8, #128]
	ldr	x8, [x8]
	blr	x8
	cmp	w0, #2
	b.lo	LBB0_17
; %bb.11:
	b.eq	LBB0_19
; %bb.12:
	cmp	w0, #3
	b.ne	LBB0_22
; %bb.13:
	ldr	x8, [x20]
	ldr	w9, [x8, #32]
	and	w10, w9, #0xf
Lloh11:
	adrp	x9, _CDB_STAT_OPEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CDB_STAT_OPEN@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
Lloh13:
	adrp	x9, _CART_JAPMODEM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CART_JAPMODEM@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_JapModemExec
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	x8, [x20]
	ldr	w9, [x8, #32]
	and	w9, w9, #0xf
Lloh16:
	adrp	x10, _CDB_STAT_NODISC@GOTPAGE
Lloh17:
	ldr	x10, [x10, _CDB_STAT_NODISC@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _CDB_STAT_OPEN@GOTPAGE
Lloh20:
	ldr	x11, [x11, _CDB_STAT_OPEN@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_5
; %bb.18:
Lloh22:
	adrp	x9, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #32]
	b	LBB0_5
LBB0_19:
	ldr	x8, [x20]
	ldr	w9, [x8, #32]
	and	w10, w9, #0xf
Lloh24:
	adrp	x9, _CDB_STAT_NODISC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CDB_STAT_NODISC@GOTPAGEOFF]
LBB0_20:
	ldr	w9, [x9]
	cmp	w10, w9
	b.eq	LBB0_5
; %bb.21:
	str	w9, [x8, #32]
	b	LBB0_5
LBB0_22:
	ldr	x8, [x20]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_STAT_NODISC,4,2            ; @CDB_STAT_NODISC
	.comm	_CDB_STAT_OPEN,4,2              ; @CDB_STAT_OPEN
	.comm	_CDB_HIRQ_CSCT,4,2              ; @CDB_HIRQ_CSCT
	.comm	_CDB_HIRQ_PEND,4,2              ; @CDB_HIRQ_PEND
	.comm	_CDB_PLAYTYPE_FILE,4,2          ; @CDB_PLAYTYPE_FILE
	.comm	_CDB_HIRQ_EFLS,4,2              ; @CDB_HIRQ_EFLS
	.comm	_CDB_STAT_PERI,4,2              ; @CDB_STAT_PERI
	.comm	_CDB_HIRQ_SCDQ,4,2              ; @CDB_HIRQ_SCDQ
	.comm	_CART_NETLINK,8,3               ; @CART_NETLINK
	.comm	_CART_JAPMODEM,8,3              ; @CART_JAPMODEM
.subsections_via_symbols
