	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_buffer_finish          ## -- Begin function saa7146_buffer_finish
	.p2align	4, 0x90
_saa7146_buffer_finish:                 ## @saa7146_buffer_finish
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_assert_spin_locked
	movslq	%r14d, %rdi
	callq	_DEB_EE
	movq	(%rbx), %rdi
	callq	_DEB_EE
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	%r14d, (%rdi)
	addq	$8, %rdi
	callq	_do_gettimeofday
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_wake_up
	movq	$0, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DEB_D                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"aiii. no current buffer\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_buffer_finish          ; -- Begin function saa7146_buffer_finish
	.p2align	2
_saa7146_buffer_finish:                 ; @saa7146_buffer_finish
	.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	x20, x2
	mov	x19, x1
	bl	_assert_spin_locked
	sxtw	x0, w20
	bl	_DEB_EE
	ldr	x0, [x19]
	bl	_DEB_EE
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	str	w20, [x0], #8
	bl	_do_gettimeofday
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_wake_up
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DEB_D
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"aiii. no current buffer\n"

.subsections_via_symbols
