	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_dma_free               ## -- Begin function saa7146_dma_free
	.p2align	4, 0x90
_saa7146_dma_free:                      ## @saa7146_dma_free
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_videobuf_to_dma
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_DEB_EE
	xorl	%eax, %eax
	callq	_in_interrupt
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_videobuf_waiton
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_videobuf_dma_unmap
	movq	%r14, %rdi
	callq	_videobuf_dma_free
	movq	_VIDEOBUF_NEEDS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev:%p, buf:%p\n"

	.comm	_VIDEOBUF_NEEDS_INIT,4,2        ## @VIDEOBUF_NEEDS_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_dma_free               ; -- Begin function saa7146_dma_free
	.p2align	2
_saa7146_dma_free:                      ; @saa7146_dma_free
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_videobuf_to_dma
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_DEB_EE
	bl	_in_interrupt
	bl	_BUG_ON
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_videobuf_waiton
	ldr	w0, [x20]
	mov	x1, x22
	bl	_videobuf_dma_unmap
	mov	x0, x22
	bl	_videobuf_dma_free
Lloh2:
	adrp	x8, _VIDEOBUF_NEEDS_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VIDEOBUF_NEEDS_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev:%p, buf:%p\n"

	.comm	_VIDEOBUF_NEEDS_INIT,4,2        ; @VIDEOBUF_NEEDS_INIT
.subsections_via_symbols
