	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_set_osd_display_params
_vpbe_set_osd_display_params:           ## @vpbe_set_osd_display_params
	.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	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	16(%rdi), %r12
	movq	16(%rsi), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	4(%rbx), %esi
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	*8(%r12)
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*(%r12)
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	_PIXFMT_NV12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	__vpbe_display_get_other_win_layer
	movq	%rax, %rbx
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	*(%r12)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	$1, (%rbx)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_v4l2_err
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in enabling osd window layer 0\n"

	.comm	_PIXFMT_NV12,8,3                ## @PIXFMT_NV12
L_.str.1:                               ## @.str.1
	.asciz	"Error in enabling osd window layer 1\n"

	.no_dead_strip	_vpbe_set_osd_display_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpbe_set_osd_display_params
_vpbe_set_osd_display_params:           ; @vpbe_set_osd_display_params
	.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	x22, x0
	ldp	x19, x20, [x0, #8]
	ldr	x0, [x1, #16]
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x2, x0
	ldr	x8, [x20, #8]
	ldr	w1, [x21, #4]
	ldr	w3, [x22]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20]
	ldr	w1, [x21, #4]
	mov	x0, x20
	mov	w2, #0
	blr	x8
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _PIXFMT_NV12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIXFMT_NV12@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	__vpbe_display_get_other_win_layer
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w1, [x0, #4]
	mov	w22, #1
	mov	x0, x20
	mov	w2, #1
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	w0, #0
	str	w22, [x21]
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_v4l2_err
	mov	w0, #-1
LBB0_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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in enabling osd window layer 0\n"

	.comm	_PIXFMT_NV12,8,3                ; @PIXFMT_NV12
l_.str.1:                               ; @.str.1
	.asciz	"Error in enabling osd window layer 1\n"

	.no_dead_strip	_vpbe_set_osd_display_params
.subsections_via_symbols
