	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_display_release
_vpbe_display_release:                  ## @vpbe_display_release
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movq	8(%r14), %r12
	movq	16(%r14), %rdx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	callq	_v4l2_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	*8(%r12)
	decl	24(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	movq	_PIXFMT_NV12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	__vpbe_display_get_other_win_layer
	movq	%rax, %r13
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	*8(%r12)
	movl	8(%r13), %esi
	movq	%r12, %rdi
	callq	*(%r12)
LBB0_3:
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	*8(%r12)
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	*(%r12)
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__vb2_fop_release
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	$0, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpbe_display_release\n"

	.comm	_PIXFMT_NV12,8,3                ## @PIXFMT_NV12
	.no_dead_strip	_vpbe_display_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpbe_display_release
_vpbe_display_release:                  ; @vpbe_display_release
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldp	x22, x2, [x19, #8]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	bl	_v4l2_dbg
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	ldr	w1, [x20, #8]
	mov	x0, x22
	blr	x8
	ldr	w8, [x20, #24]
	subs	w8, w8, #1
	str	w8, [x20, #24]
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x9, _PIXFMT_NV12@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PIXFMT_NV12@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	__vpbe_display_get_other_win_layer
	mov	x23, x0
	ldr	x8, [x22, #8]
	ldr	w1, [x0, #8]
	mov	x0, x22
	blr	x8
	ldr	x8, [x22]
	ldr	w1, [x23, #8]
	mov	x0, x22
	blr	x8
LBB0_3:
	ldr	x8, [x22, #8]
	ldr	w1, [x20, #8]
	mov	x0, x22
	blr	x8
	ldr	x8, [x22]
	ldr	w1, [x20, #8]
	mov	x0, x22
	blr	x8
LBB0_4:
	mov	x0, x21
	mov	x1, #0
	bl	__vb2_fop_release
	mov	x0, x20
	bl	_mutex_unlock
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpbe_display_release\n"

	.comm	_PIXFMT_NV12,8,3                ; @PIXFMT_NV12
	.no_dead_strip	_vpbe_display_release
.subsections_via_symbols
