	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPTICDDeInit                   ## -- Begin function SPTICDDeInit
	.p2align	4, 0x90
_SPTICDDeInit:                          ## @SPTICDDeInit
	.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
	movq	_thread_handle@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rdi
	je	LBB0_4
## %bb.1:
	movq	_KillCDThread@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitForSingleObject
	movq	_WAIT_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_TerminateThread
LBB0_3:
	movq	(%rbx), %rdi
	callq	_CloseHandle
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_4:
	movq	_cd_cs@GOTPCREL(%rip), %rdi
	callq	_DeleteCriticalSection
	movq	_hCDROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CloseHandle                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_handle,8,3              ## @thread_handle
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_KillCDThread,4,2               ## @KillCDThread
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_WAIT_TIMEOUT,8,3               ## @WAIT_TIMEOUT
	.comm	_cd_cs,4,2                      ## @cd_cs
	.comm	_hCDROM,8,3                     ## @hCDROM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPTICDDeInit                   ; -- Begin function SPTICDDeInit
	.p2align	2
_SPTICDDeInit:                          ; @SPTICDDeInit
	.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
Lloh0:
	adrp	x19, _thread_handle@GOTPAGE
Lloh1:
	ldr	x19, [x19, _thread_handle@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _KillCDThread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KillCDThread@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
Lloh7:
	adrp	x8, _INFINITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_WaitForSingleObject
Lloh10:
	adrp	x8, _WAIT_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WAIT_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_TerminateThread
LBB0_3:
	ldr	x0, [x19]
	bl	_CloseHandle
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_4:
Lloh13:
	adrp	x0, _cd_cs@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cd_cs@GOTPAGEOFF]
	bl	_DeleteCriticalSection
Lloh15:
	adrp	x8, _hCDROM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hCDROM@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CloseHandle
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_handle,8,3              ; @thread_handle
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_KillCDThread,4,2               ; @KillCDThread
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_WAIT_TIMEOUT,8,3               ; @WAIT_TIMEOUT
	.comm	_cd_cs,4,2                      ; @cd_cs
	.comm	_hCDROM,8,3                     ; @hCDROM
.subsections_via_symbols
