	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_get_audio_input           ## -- Begin function ivtv_get_audio_input
	.p2align	4, 0x90
_ivtv_get_audio_input:                  ## @ivtv_get_audio_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
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	cmpl	%r12d, (%rbx)
	jle	LBB0_1
## %bb.2:
	movslq	%r12d, %rbx
	movl	8(%r15), %edi
	movslq	(%r13,%rbx,4), %rax
	leaq	_reltable.ivtv_get_audio_input(%rip), %rcx
	movslq	-4(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	%ebx, (%r15)
	movq	_V4L2_AUDCAP_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.ivtv_get_audio_input
_reltable.ivtv_get_audio_input:
	.long	L_.str-_reltable.ivtv_get_audio_input
	.long	L_.str.1-_reltable.ivtv_get_audio_input
	.long	L_.str.2-_reltable.ivtv_get_audio_input

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

L_.str.1:                               ## @.str.1
	.asciz	"Line In 1"

L_.str.2:                               ## @.str.2
	.asciz	"Line In 2"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_AUDCAP_STEREO,4,2         ## @V4L2_AUDCAP_STEREO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_get_audio_input           ; -- Begin function ivtv_get_audio_input
	.p2align	2
_ivtv_get_audio_input:                  ; @ivtv_get_audio_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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	ldrsw	x8, [x22, w20, sxtw #2]
Lloh0:
	adrp	x9, _ivtv_get_audio_input.input_strs@PAGE
Lloh1:
	add	x9, x9, _ivtv_get_audio_input.input_strs@PAGEOFF
	add	x8, x9, x8, lsl #3
	ldur	x1, [x8, #-8]
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
	str	w20, [x19]
Lloh2:
	adrp	x8, _V4L2_AUDCAP_STEREO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_AUDCAP_STEREO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @ivtv_get_audio_input.input_strs
_ivtv_get_audio_input.input_strs:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

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

l_.str.1:                               ; @.str.1
	.asciz	"Line In 1"

l_.str.2:                               ; @.str.2
	.asciz	"Line In 2"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_AUDCAP_STEREO,4,2         ; @V4L2_AUDCAP_STEREO
.subsections_via_symbols
