	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_release_vrfb         ## -- Begin function omap_vout_release_vrfb
	.p2align	4, 0x90
_omap_vout_release_vrfb:                ## @omap_vout_release_vrfb
	.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	%rdi, %r15
	movq	_VRFB_NUM_BUFS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	callq	_omap_vrfb_release_ctx
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	movq	_DMA_CHAN_ALLOTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_DMA_CHAN_NOT_ALLOTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	12(%r15), %edi
	callq	_kfree
	movl	8(%r15), %edi
	callq	_dmaengine_terminate_sync
	movl	8(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_release_channel            ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VRFB_NUM_BUFS,4,2              ## @VRFB_NUM_BUFS
	.comm	_DMA_CHAN_ALLOTED,8,3           ## @DMA_CHAN_ALLOTED
	.comm	_DMA_CHAN_NOT_ALLOTED,8,3       ## @DMA_CHAN_NOT_ALLOTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_release_vrfb         ; -- Begin function omap_vout_release_vrfb
	.p2align	2
_omap_vout_release_vrfb:                ; @omap_vout_release_vrfb
	.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, x0
Lloh0:
	adrp	x20, _VRFB_NUM_BUFS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VRFB_NUM_BUFS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_omap_vrfb_release_ctx
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _DMA_CHAN_ALLOTED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_CHAN_ALLOTED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _DMA_CHAN_NOT_ALLOTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_CHAN_NOT_ALLOTED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x19, #12]
	bl	_kfree
	ldr	w0, [x19, #8]
	bl	_dmaengine_terminate_sync
	ldr	w0, [x19, #8]
	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	_dma_release_channel
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VRFB_NUM_BUFS,4,2              ; @VRFB_NUM_BUFS
	.comm	_DMA_CHAN_ALLOTED,8,3           ; @DMA_CHAN_ALLOTED
	.comm	_DMA_CHAN_NOT_ALLOTED,8,3       ; @DMA_CHAN_NOT_ALLOTED
.subsections_via_symbols
