	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_enum_input             ## -- Begin function saa7164_enum_input
	.p2align	4, 0x90
_saa7164_enum_input:                    ## @saa7164_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdx), %rax
	cmpq	$7, %rax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	movq	%rdx, %r12
	movl	12(%rdx), %edi
	leaq	_reltable.saa7164_enum_input(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movl	$4, %edx
	callq	_strscpy
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_saa7164_tvnorms@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %eax
	orl	%eax, 4(%r12)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.saa7164_enum_input
_reltable.saa7164_enum_input:
	.long	L_.str-_reltable.saa7164_enum_input
	.long	L_.str.1-_reltable.saa7164_enum_input
	.long	L_.str.2-_reltable.saa7164_enum_input
	.long	L_.str.3-_reltable.saa7164_enum_input
	.long	L_.str.4-_reltable.saa7164_enum_input
	.long	L_.str.5-_reltable.saa7164_enum_input
	.long	L_.str.6-_reltable.saa7164_enum_input

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner"

L_.str.1:                               ## @.str.1
	.asciz	"composite"

L_.str.2:                               ## @.str.2
	.asciz	"svideo"

L_.str.3:                               ## @.str.3
	.asciz	"aux"

L_.str.4:                               ## @.str.4
	.asciz	"composite 2"

L_.str.5:                               ## @.str.5
	.asciz	"svideo 2"

L_.str.6:                               ## @.str.6
	.asciz	"aux 2"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_saa7164_tvnorms,8,3            ## @saa7164_tvnorms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_enum_input             ; -- Begin function saa7164_enum_input
	.p2align	2
_saa7164_enum_input:                    ; @saa7164_enum_input
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldrsw	x8, [x2]
	cmp	w8, #7
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x2
	ldr	w0, [x2, #12]
Lloh3:
	adrp	x9, _saa7164_enum_input.inputs@PAGE
Lloh4:
	add	x9, x9, _saa7164_enum_input.inputs@PAGEOFF
	ldr	x1, [x9, x8, lsl #3]
	mov	w2, #4
	bl	_strscpy
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh7:
	adrp	x10, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh8:
	ldr	x10, [x10, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh9:
	adrp	x20, _saa7164_tvnorms@GOTPAGE
Lloh10:
	ldr	x20, [x20, _saa7164_tvnorms@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x21, lsl #2]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @saa7164_enum_input.inputs
_saa7164_enum_input.inputs:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner"

l_.str.1:                               ; @.str.1
	.asciz	"composite"

l_.str.2:                               ; @.str.2
	.asciz	"svideo"

l_.str.3:                               ; @.str.3
	.asciz	"aux"

l_.str.4:                               ; @.str.4
	.asciz	"composite 2"

l_.str.5:                               ; @.str.5
	.asciz	"svideo 2"

l_.str.6:                               ; @.str.6
	.asciz	"aux 2"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_saa7164_tvnorms,8,3            ; @saa7164_tvnorms
.subsections_via_symbols
