	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xvip_of_get_format             ## -- Begin function xvip_of_get_format
	.p2align	4, 0x90
_xvip_of_get_format:                    ## @xvip_of_get_format
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%eax, %eax
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movl	-44(%rbp), %eax
	movq	_XVIP_VF_MONO_SENSOR@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
LBB0_4:
	movq	_xvip_video_formats@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %r12
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jae	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r12
	movl	(%r12,%rbx), %eax
	cmpl	-44(%rbp), %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12,%rbx), %rcx
	cmpq	-64(%rbp), %rcx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r14), %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	movl	16(%r12,%rbx), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
LBB0_14:
	addq	%rbx, %r12
	jmp	LBB0_15
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_15:
	movq	%r12, %rax
	addq	$24, %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	"mono"

L_.str.1:                               ## @.str.1
	.asciz	"xlnx,video-format"

L_.str.2:                               ## @.str.2
	.asciz	"xlnx,video-width"

	.comm	_XVIP_VF_MONO_SENSOR,4,2        ## @XVIP_VF_MONO_SENSOR
L_.str.3:                               ## @.str.3
	.asciz	"xlnx,cfa-pattern"

	.comm	_xvip_video_formats,8,3         ## @xvip_video_formats
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xvip_of_get_format             ; -- Begin function xvip_of_get_format
	.p2align	2
_xvip_of_get_format:                    ; @xvip_of_get_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
	add	x8, sp, #20
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_14
; %bb.1:
	add	x8, sp, #8
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	w8, [sp, #20]
Lloh6:
	adrp	x20, _XVIP_VF_MONO_SENSOR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _XVIP_VF_MONO_SENSOR@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #24
	mov	x0, x19
	bl	_of_property_read_string
LBB0_4:
Lloh10:
	adrp	x21, _xvip_video_formats@GOTPAGE
Lloh11:
	ldr	x21, [x21, _xvip_video_formats@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_13
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x19, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	mov	x0, x19
	bl	_ARRAY_SIZE
	add	x22, x22, #24
	cmp	x23, w0, uxtw
	b.hs	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x21]
	ldr	w8, [x19, x22]
	ldr	w9, [sp, #20]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x19, x22
	ldr	x9, [x9, #8]
	ldr	x10, [sp, #8]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #24]
	add	x8, x19, x22
	ldr	w1, [x8, #16]
	bl	_strcmp
	cbnz	x0, LBB0_6
LBB0_12:
	add	x0, x19, x22
	b	LBB0_15
LBB0_13:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	bl	_ERR_PTR
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mono"

l_.str.1:                               ; @.str.1
	.asciz	"xlnx,video-format"

l_.str.2:                               ; @.str.2
	.asciz	"xlnx,video-width"

	.comm	_XVIP_VF_MONO_SENSOR,4,2        ; @XVIP_VF_MONO_SENSOR
l_.str.3:                               ; @.str.3
	.asciz	"xlnx,cfa-pattern"

	.comm	_xvip_video_formats,8,3         ; @xvip_video_formats
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
