	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_go7007_irq_ts_done
_saa7134_go7007_irq_ts_done:            ## @saa7134_go7007_irq_ts_done
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_video_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	%rax, %rdi
	callq	_vb2_is_streaming
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	testl	$983040, %r15d                  ## imm = 0xF0000
	je	LBB0_3
## %bb.2:
	movl	%r15d, %esi
	shrl	$16, %esi
	andl	$15, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_3:
	movq	(%rbx), %rdi
	testl	$1048576, %r15d                 ## imm = 0x100000
	jne	LBB0_4
## %bb.5:
	movl	(%r12), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_cpu
	movl	4(%r12), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_go7007_parse_video_stream
	movl	$5, %edi
	callq	_SAA7134_RS_BA1
	movq	%r12, %rbx
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	8(%r12), %rbx
	movl	8(%r12), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_cpu
	movl	12(%r12), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_go7007_parse_video_stream
	movl	$5, %edi
	callq	_SAA7134_RS_BA2
LBB0_6:
	movl	(%rbx), %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_saa_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saa7134-go7007: irq: lost %ld\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_saa7134_go7007_irq_ts_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_go7007_irq_ts_done
_saa7134_go7007_irq_ts_done:            ; @saa7134_go7007_irq_ts_done
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_video_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #8]
	bl	_vb2_is_streaming
	cbz	w0, LBB0_5
; %bb.1:
	tst	x20, #0xf0000
	b.eq	LBB0_3
; %bb.2:
	ubfx	x1, x20, #16, #4
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_3:
	ldr	x0, [x21]
	tbnz	w20, #20, LBB0_6
; %bb.4:
	ldr	w1, [x22]
Lloh2:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_cpu
	ldr	w1, [x22, #4]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_go7007_parse_video_stream
	mov	w0, #5
	bl	_SAA7134_RS_BA1
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
	ldr	w1, [x22, #8]!
Lloh7:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_cpu
	ldr	w1, [x22, #4]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_go7007_parse_video_stream
	mov	w0, #5
	bl	_SAA7134_RS_BA2
LBB0_7:
	ldr	w1, [x22]
	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
	b	_saa_writel
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saa7134-go7007: irq: lost %ld\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_saa7134_go7007_irq_ts_done
.subsections_via_symbols
