	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %ebx
	movq	_MAX_CX231XX_INPUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	(%rsi), %r12
	movl	%ebx, %edi
	callq	_INPUT
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movl	%ebx, (%r14)
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	12(%r14), %r15d
	movq	_iname@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %edi
	callq	_INPUT
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %esi
	movl	%r15d, %edi
	callq	_strcpy
	movq	_CX231XX_VMUX_TELEVISION@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_INPUT
	cmpq	(%rax), %r15
	je	LBB0_5
## %bb.4:
	movq	_CX231XX_VMUX_CABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_INPUT
	cmpq	(%rax), %r15
	jne	LBB0_6
LBB0_5:
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_6:
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CX231XX_INPUT,4,2          ## @MAX_CX231XX_INPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ## @iname
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ## @CX231XX_VMUX_TELEVISION
	.comm	_CX231XX_VMUX_CABLE,8,3         ## @CX231XX_VMUX_CABLE
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w20, [x2]
Lloh0:
	adrp	x8, _MAX_CX231XX_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CX231XX_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.hs	LBB0_6
; %bb.1:
	mov	x19, x2
	ldr	x22, [x1]
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	str	w20, [x19]
Lloh3:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w21, [x19, #12]
Lloh6:
	adrp	x8, _iname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iname@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
	ldr	w1, [x23, x8, lsl #2]
	mov	x0, x21
	bl	_strcpy
Lloh9:
	adrp	x8, _CX231XX_VMUX_TELEVISION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX231XX_VMUX_TELEVISION@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
	cmp	x21, x8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _CX231XX_VMUX_CABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CX231XX_VMUX_CABLE@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
	cmp	x21, x8
	b.ne	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
	mov	w0, #0
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CX231XX_INPUT,4,2          ; @MAX_CX231XX_INPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ; @iname
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ; @CX231XX_VMUX_TELEVISION
	.comm	_CX231XX_VMUX_CABLE,8,3         ; @CX231XX_VMUX_CABLE
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
