	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_irq_vbi_done           ## -- Begin function saa7134_irq_vbi_done
	.p2align	4, 0x90
_saa7134_irq_vbi_done:                  ## @saa7134_irq_vbi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_spin_lock
	leaq	8(%rbx), %r14
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testb	$16, %r15b
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rax)
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_saa7134_buffer_finish
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_saa7134_buffer_next
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_vbi_done           ; -- Begin function saa7134_irq_vbi_done
	.p2align	2
_saa7134_irq_vbi_done:                  ; @saa7134_irq_vbi_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	x21, x1
	mov	x19, x0
	bl	_spin_lock
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_5
; %bb.1:
	tbnz	w21, #4, LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_saa7134_buffer_finish
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
.subsections_via_symbols
