	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_irq_ts_done            ## -- Begin function saa7134_irq_ts_done
	.p2align	4, 0x90
_saa7134_irq_ts_done:                   ## @saa7134_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, %r12
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	8(%rbx), %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.3:
	testl	$1048576, %r12d                 ## imm = 0x100000
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	testl	$1048576, %r12d                 ## imm = 0x100000
	jne	LBB0_6
LBB0_4:
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_saa7134_buffer_finish
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_saa7134_buffer_next
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_TOP,4,2             ## @V4L2_FIELD_TOP
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_irq_ts_done            ; -- Begin function saa7134_irq_ts_done
	.p2align	2
_saa7134_irq_ts_done:                   ; @saa7134_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	x22, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	mov	x21, x20
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _V4L2_FIELD_TOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_TOP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	tbnz	w22, #20, LBB0_4
	b	LBB0_6
LBB0_3:
	tbnz	w22, #20, LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_saa7134_buffer_finish
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_saa7134_buffer_next
LBB0_6:
	mov	x0, x19
	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	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_TOP,4,2             ; @V4L2_FIELD_TOP
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
.subsections_via_symbols
