	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_fmt_vid_cap
_vidioc_enum_fmt_vid_cap:               ## @vidioc_enum_fmt_vid_cap
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_video_drvdata
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.1:
	movq	%rax, %r12
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$1, %rbx
	jle	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r13, %rbx
	movl	%ecx, %r15d
	decq	%r13
	movq	8(%r12), %rax
	movl	%r13d, %edx
	movq	(%rax,%rdx,8), %rax
	movslq	%ecx, %rcx
	movq	%rax, -112(%rbp,%rcx,8)
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdx
	incq	%rcx
	cmpq	%rax, -112(%rbp,%rdx,8)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r15), %edx
	cmpl	%ecx, %edx
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, (%r14)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	%r15d, %ecx
	cmpl	%eax, %r15d
	jl	LBB0_6
	jmp	LBB0_9
LBB0_10:
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.11:
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_enum_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_fmt_vid_cap
_vidioc_enum_fmt_vid_cap:               ; @vidioc_enum_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_video_drvdata
	ldr	w21, [x0]
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x0
	mov	w24, #0
	add	x22, sp, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, #1
	b.le	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x10, #0
	mov	x23, x21
	mov	w8, w24
	sub	x21, x21, #1
	ldr	x9, [x20, #8]
	ldr	x9, [x9, w21, uxtw #3]
	str	x9, [x22, w24, sxtw #3]
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x22, x10, lsl #3]
	add	x10, x10, #1
	cmp	x11, x9
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w8, #1
	cmp	w11, w10
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x19]
	cmp	w10, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w8, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.lt	LBB0_3
	b	LBB0_11
LBB0_9:
	cmp	w23, #0
	b.le	LBB0_11
; %bb.10:
	mov	w0, #0
	str	x9, [x19, #8]
	b	LBB0_12
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_enum_fmt_vid_cap
.subsections_via_symbols
