	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stop
_stop:                                  ## @stop
	.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, %r14
	movq	(%rdi), %rbx
	movq	32(%rbx), %r13
	movq	8(%rbx), %r15
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	_SX8_DEMOD_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	leaq	8(%rbx), %r12
	movq	_MCI_CMD_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ddb_mci_cmd
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.2:
	movq	_SX8_CMD_DISABLE_IQOUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ddb_mci_cmd
	movq	_SX8_TSCONFIG_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ddb_mci_config
LBB0_3:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	24(%r13), %rax
	decl	(%rax,%r15,4)
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mci_set_tuner
LBB0_5:
	movq	16(%rbx), %rax
	movq	_SX8_DEMOD_NUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_7
## %bb.6:
	movq	16(%r13), %rcx
	movq	$0, (%rcx,%rax,8)
	movq	_SX8_DEMOD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_7:
	movq	8(%r13), %rax
	movq	24(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	$0, (%r13)
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SX8_DEMOD_NONE,8,3             ## @SX8_DEMOD_NONE
	.comm	_MCI_CMD_STOP,4,2               ## @MCI_CMD_STOP
	.comm	_SX8_CMD_DISABLE_IQOUTPUT,4,2   ## @SX8_CMD_DISABLE_IQOUTPUT
	.comm	_SX8_TSCONFIG_MODE_NORMAL,4,2   ## @SX8_TSCONFIG_MODE_NORMAL
	.comm	_SX8_DEMOD_NUM,8,3              ## @SX8_DEMOD_NUM
	.no_dead_strip	_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stop
_stop:                                  ; @stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	x23, [x0]
	ldr	x19, [x23, #32]
	mov	x22, x23
	ldr	x21, [x22, #8]!
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x23, #16]
Lloh0:
	adrp	x24, _SX8_DEMOD_NONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SX8_DEMOD_NONE@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _MCI_CMD_STOP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MCI_CMD_STOP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, #0
	bl	_ddb_mci_cmd
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _SX8_CMD_DISABLE_IQOUTPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SX8_CMD_DISABLE_IQOUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x23, #16]
	stp	x8, xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, #0
	bl	_ddb_mci_cmd
Lloh8:
	adrp	x8, _SX8_TSCONFIG_MODE_NORMAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SX8_TSCONFIG_MODE_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ddb_mci_config
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #24]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	subs	w10, w10, #1
	str	w10, [x8, x9]
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_mci_set_tuner
LBB0_5:
	ldr	x8, [x23, #16]
Lloh11:
	adrp	x9, _SX8_DEMOD_NUM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SX8_DEMOD_NUM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.6:
	ldr	x9, [x19, #16]
	str	xzr, [x9, x8, lsl #3]
	ldr	x8, [x24]
	str	x8, [x23, #16]
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x9, [x23, #24]
	str	xzr, [x8, x9, lsl #3]
	str	xzr, [x19]
	mov	x0, x19
	bl	_mutex_unlock
	str	xzr, [x23]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SX8_DEMOD_NONE,8,3             ; @SX8_DEMOD_NONE
	.comm	_MCI_CMD_STOP,4,2               ; @MCI_CMD_STOP
	.comm	_SX8_CMD_DISABLE_IQOUTPUT,4,2   ; @SX8_CMD_DISABLE_IQOUTPUT
	.comm	_SX8_TSCONFIG_MODE_NORMAL,4,2   ; @SX8_TSCONFIG_MODE_NORMAL
	.comm	_SX8_DEMOD_NUM,8,3              ; @SX8_DEMOD_NUM
	.no_dead_strip	_stop
.subsections_via_symbols
