	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_go7007_stream_stop
_saa7134_go7007_stream_stop:            ## @saa7134_go7007_stream_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	_SAA7134_MAIN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SAA7134_MAIN_CTRL_TE5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa_clearl
	movq	_SAA7134_IRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SAA7134_IRQ1_INTE_RA2_1@GOTPCREL(%rip), %rax
	movq	_SAA7134_IRQ1_INTE_RA2_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_saa_clearl
	movq	_SAA7134_TS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$128, %esi
	callq	_saa_clearb
	movq	(%r14), %rdi
	movl	4(%rbx), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_dma_unmap_page
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	callq	_dma_unmap_page
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SAA7134_MAIN_CTRL,4,2          ## @SAA7134_MAIN_CTRL
	.comm	_SAA7134_MAIN_CTRL_TE5,4,2      ## @SAA7134_MAIN_CTRL_TE5
	.comm	_SAA7134_IRQ1,4,2               ## @SAA7134_IRQ1
	.comm	_SAA7134_IRQ1_INTE_RA2_1,4,2    ## @SAA7134_IRQ1_INTE_RA2_1
	.comm	_SAA7134_IRQ1_INTE_RA2_0,4,2    ## @SAA7134_IRQ1_INTE_RA2_0
	.comm	_SAA7134_TS_PARALLEL,4,2        ## @SAA7134_TS_PARALLEL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_saa7134_go7007_stream_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_go7007_stream_stop
_saa7134_go7007_stream_stop:            ; @saa7134_go7007_stream_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SAA7134_MAIN_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_MAIN_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SAA7134_MAIN_CTRL_TE5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_MAIN_CTRL_TE5@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_saa_clearl
Lloh6:
	adrp	x8, _SAA7134_IRQ1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA7134_IRQ1@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SAA7134_IRQ1_INTE_RA2_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SAA7134_IRQ1_INTE_RA2_1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _SAA7134_IRQ1_INTE_RA2_0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SAA7134_IRQ1_INTE_RA2_0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_saa_clearl
Lloh15:
	adrp	x8, _SAA7134_TS_PARALLEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAA7134_TS_PARALLEL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #128
	bl	_saa_clearb
	ldr	x0, [x20]
	ldr	w1, [x19, #4]
Lloh18:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh20:
	adrp	x22, _DMA_FROM_DEVICE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x22]
	bl	_dma_unmap_page
	ldr	x0, [x20]
	ldr	w1, [x19]
	ldr	w2, [x21]
	ldr	w3, [x22]
	bl	_dma_unmap_page
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SAA7134_MAIN_CTRL,4,2          ; @SAA7134_MAIN_CTRL
	.comm	_SAA7134_MAIN_CTRL_TE5,4,2      ; @SAA7134_MAIN_CTRL_TE5
	.comm	_SAA7134_IRQ1,4,2               ; @SAA7134_IRQ1
	.comm	_SAA7134_IRQ1_INTE_RA2_1,4,2    ; @SAA7134_IRQ1_INTE_RA2_1
	.comm	_SAA7134_IRQ1_INTE_RA2_0,4,2    ; @SAA7134_IRQ1_INTE_RA2_0
	.comm	_SAA7134_TS_PARALLEL,4,2        ; @SAA7134_TS_PARALLEL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_saa7134_go7007_stream_stop
.subsections_via_symbols
