	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_enum_fmt
_video_enum_fmt:                        ## @video_enum_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	(%r14), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_1
## %bb.2:
	movl	8(%r14), %r8d
	movl	8(%rax), %r9d
	cmpl	%r9d, %r8d
	jge	LBB0_1
## %bb.3:
	movl	$-1, %esi
	testl	%r9d, %r9d
	jle	LBB0_4
## %bb.5:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rax), %rdx
	movq	(%rdx,%rcx,8), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rdx,%rdi,8), %rbx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rcx, %rdi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%edi, %edx
	xorl	%edi, %edi
	cmpq	%rcx, %rdx
	sete	%dil
	addl	%edi, %esi
	cmpl	%r8d, %esi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%r9, %rcx
	jne	LBB0_6
	jmp	LBB0_14
LBB0_4:
	xorl	%r9d, %r9d
LBB0_14:
	cmpl	%r8d, %esi
	jge	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movl	%ecx, %r9d
LBB0_16:
	movq	16(%rax), %rax
	movl	%r9d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_video_enum_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_enum_fmt
_video_enum_fmt:                        ; @video_enum_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	ldr	w8, [x19, #8]
	ldr	w9, [x0, #8]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.2:
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x11, #0
	mov	w10, #-1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x12, #0
	cbz	x11, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x0, #16]
	ldr	x14, [x13, x11, lsl #3]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13, x12, lsl #3]
	cmp	x14, x15
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #1
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, x11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, w12, uxtw
	cinc	w10, w10, eq
	cmp	w10, w8
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	cmp	x11, x9
	b.ne	LBB0_4
	b	LBB0_12
LBB0_11:
	mov	w9, #0
	mov	w10, #-1
LBB0_12:
	cmp	w10, w8
	b.ge	LBB0_16
LBB0_13:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_14:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x9, x11
LBB0_16:
	mov	w8, #0
	ldr	x10, [x0, #16]
	ldr	x9, [x10, w9, uxtw #3]
	str	x9, [x19, #16]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_video_enum_fmt
.subsections_via_symbols
