	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_enum_output             ## -- Begin function vidioc_enum_output
	.p2align	4, 0x90
_vidioc_enum_output:                    ## @vidioc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jae	LBB0_1
## %bb.2:
	movq	_V4L2_OUTPUT_TYPE_ANALOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %ecx
	xorl	%r14d, %r14d
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_9
## %bb.4:
	movl	16(%r15), %edi
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	cmpl	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_vivid_audio_outputs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, 8(%r15)
LBB0_6:
	movq	_V4L2_OUT_CAP_STD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_7:
	movl	16(%r15), %edi
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_V4L2_OUT_CAP_DV_TIMINGS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_OUTPUT_TYPE_ANALOG,4,2    ## @V4L2_OUTPUT_TYPE_ANALOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S-Video %u"

	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_vivid_audio_outputs,4,2        ## @vivid_audio_outputs
	.comm	_V4L2_OUT_CAP_STD,4,2           ## @V4L2_OUT_CAP_STD
L_.str.1:                               ## @.str.1
	.asciz	"HDMI %u"

	.comm	_V4L2_OUT_CAP_DV_TIMINGS,4,2    ## @V4L2_OUT_CAP_DV_TIMINGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_enum_output             ; -- Begin function vidioc_enum_output
	.p2align	2
_vidioc_enum_output:                    ; @vidioc_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
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, _V4L2_OUTPUT_TYPE_ANALOG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_OUTPUT_TYPE_ANALOG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x19, #24]
	ldr	x9, [x0, #8]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w9, #128
	b.ne	LBB0_9
; %bb.3:
	ldr	w0, [x19, #16]
	ldr	x9, [x20, #16]
	ldr	w3, [x9, x8, lsl #2]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh5:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _vivid_audio_outputs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vivid_audio_outputs@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	mov	w8, #-1
	lsl	w8, w8, w0
	mvn	w8, w8
	str	w8, [x19, #8]
LBB0_5:
	mov	w0, #0
Lloh11:
	adrp	x8, _V4L2_OUT_CAP_STD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_OUT_CAP_STD@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #16]
	ldr	x9, [x20, #16]
	ldr	w3, [x9, x8, lsl #2]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	w0, #0
Lloh18:
	adrp	x8, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_OUTPUT_TYPE_ANALOG,4,2    ; @V4L2_OUTPUT_TYPE_ANALOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S-Video %u"

	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_vivid_audio_outputs,4,2        ; @vivid_audio_outputs
	.comm	_V4L2_OUT_CAP_STD,4,2           ; @V4L2_OUT_CAP_STD
l_.str.1:                               ; @.str.1
	.asciz	"HDMI %u"

	.comm	_V4L2_OUT_CAP_DV_TIMINGS,4,2    ; @V4L2_OUT_CAP_DV_TIMINGS
.subsections_via_symbols
