	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_enum_output
_vpif_enum_output:                      ## @vpif_enum_output
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_vpif_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rdx), %rcx
	cmpq	(%rax), %rcx
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movl	16(%rdx), %edi
	movq	8(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	callq	_strcpy
	movq	_V4L2_OUTPUT_TYPE_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_DM646X_V4L2_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_dev,8,3                   ## @vpif_dev
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid output index\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_OUTPUT_TYPE_ANALOG,4,2    ## @V4L2_OUTPUT_TYPE_ANALOG
	.comm	_DM646X_V4L2_STD,4,2            ## @DM646X_V4L2_STD
	.no_dead_strip	_vpif_enum_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_enum_output
_vpif_enum_output:                      ; @vpif_enum_output
	.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
Lloh0:
	adrp	x8, _vpif_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpif_dev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x2]
	ldr	x10, [x8]
	cmp	x9, x10
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x2
	ldr	w0, [x2, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x9, lsl #2]
	bl	_strcpy
	mov	w0, #0
Lloh3:
	adrp	x8, _V4L2_OUTPUT_TYPE_ANALOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_OUTPUT_TYPE_ANALOG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DM646X_V4L2_STD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DM646X_V4L2_STD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _debug@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_dev,8,3                   ; @vpif_dev
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid output index\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_OUTPUT_TYPE_ANALOG,4,2    ; @V4L2_OUTPUT_TYPE_ANALOG
	.comm	_DM646X_V4L2_STD,4,2            ; @DM646X_V4L2_STD
	.no_dead_strip	_vpif_enum_output
.subsections_via_symbols
