	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_video_stop
_aspeed_video_stop:                     ## @aspeed_video_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_VIDEO_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	leaq	24(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_aspeed_video_off
	movq	16(%rbx), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_aspeed_video_free_buf
	movq	16(%rbx), %rsi
LBB0_2:
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.3:
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_aspeed_video_free_buf
LBB0_4:
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_STOPPED,4,2              ## @VIDEO_STOPPED
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.no_dead_strip	_aspeed_video_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_video_stop
_aspeed_video_stop:                     ; @aspeed_video_stop
	.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
Lloh0:
	adrp	x8, _VIDEO_STOPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_aspeed_video_off
	ldr	x1, [x19, #16]
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_aspeed_video_free_buf
	ldr	x1, [x19, #16]
LBB0_2:
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_aspeed_video_free_buf
LBB0_4:
Lloh3:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_STOPPED,4,2              ; @VIDEO_STOPPED
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.no_dead_strip	_aspeed_video_stop
.subsections_via_symbols
