	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_input
_vidioc_enum_input:                     ## @vidioc_enum_input
	.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
	movl	(%rdx), %r14d
	movq	_HDPVR_VIDEO_INPUTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdx)
	movl	16(%rdx), %edi
	movq	_iname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_HDPVR_RCA_BACK@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	_HDPVR_RCA_FRONT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_HDPVR_SPDIF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	xorl	%eax, %eax
	testq	%r14, %r14
	movq	_V4L2_IN_CAP_STD@GOTPCREL(%rip), %rcx
	cmoveq	_V4L2_IN_CAP_DV_TIMINGS@GOTPCREL(%rip), %rcx
	movl	%edx, 4(%rbx)
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovel	%eax, %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDPVR_VIDEO_INPUTS,4,2         ## @HDPVR_VIDEO_INPUTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ## @iname
	.comm	_HDPVR_RCA_FRONT,4,2            ## @HDPVR_RCA_FRONT
	.comm	_HDPVR_RCA_BACK,4,2             ## @HDPVR_RCA_BACK
	.comm	_HDPVR_SPDIF,4,2                ## @HDPVR_SPDIF
	.comm	_V4L2_IN_CAP_STD,4,2            ## @V4L2_IN_CAP_STD
	.comm	_V4L2_IN_CAP_DV_TIMINGS,4,2     ## @V4L2_IN_CAP_DV_TIMINGS
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_input
_vidioc_enum_input:                     ; @vidioc_enum_input
	.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
	ldr	w20, [x2]
Lloh0:
	adrp	x8, _HDPVR_VIDEO_INPUTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDPVR_VIDEO_INPUTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x2, #20]
	ldr	w0, [x2, #16]
Lloh6:
	adrp	x8, _iname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iname@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8, x20, lsl #2]
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
Lloh9:
	adrp	x8, _HDPVR_RCA_FRONT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDPVR_RCA_FRONT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh12:
	adrp	x10, _HDPVR_RCA_BACK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HDPVR_RCA_BACK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w9, w10
Lloh15:
	adrp	x11, _HDPVR_SPDIF@GOTPAGE
Lloh16:
	ldr	x11, [x11, _HDPVR_SPDIF@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh17:
	ldr	w10, [x11]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _V4L2_IN_CAP_STD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_IN_CAP_STD@GOTPAGEOFF]
	str	w8, [x19, #4]
Lloh20:
	adrp	x8, _V4L2_IN_CAP_DV_TIMINGS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_IN_CAP_DV_TIMINGS@GOTPAGEOFF]
Lloh22:
	adrp	x10, _V4L2_STD_ALL@GOTPAGE
Lloh23:
	ldr	x10, [x10, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w20, #0
	csel	w10, wzr, w10, eq
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	stp	w10, w8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	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	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HDPVR_VIDEO_INPUTS,4,2         ; @HDPVR_VIDEO_INPUTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ; @iname
	.comm	_HDPVR_RCA_FRONT,4,2            ; @HDPVR_RCA_FRONT
	.comm	_HDPVR_RCA_BACK,4,2             ; @HDPVR_RCA_BACK
	.comm	_HDPVR_SPDIF,4,2                ; @HDPVR_SPDIF
	.comm	_V4L2_IN_CAP_STD,4,2            ; @V4L2_IN_CAP_STD
	.comm	_V4L2_IN_CAP_DV_TIMINGS,4,2     ; @V4L2_IN_CAP_DV_TIMINGS
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
