	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_g_tuner
_cx18_g_tuner:                          ## @cx18_g_tuner
	.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
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %rbx
	movq	(%rsi), %r14
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_cx18_call_all
	movq	_CX18_F_I_RADIO_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	12(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_V4L2_TUNER_ANALOG_TV@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tuner,4,2                      ## @tuner
	.comm	_g_tuner,4,2                    ## @g_tuner
	.comm	_CX18_F_I_RADIO_USER,4,2        ## @CX18_F_I_RADIO_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx18 Radio Tuner"

	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
L_.str.1:                               ## @.str.1
	.asciz	"cx18 TV Tuner"

	.comm	_V4L2_TUNER_ANALOG_TV,4,2       ## @V4L2_TUNER_ANALOG_TV
	.no_dead_strip	_cx18_g_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_g_tuner
_cx18_g_tuner:                          ; @cx18_g_tuner
	.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	x8, [x2]
	cbz	x8, 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	x20, [x1]
Lloh3:
	adrp	x8, _tuner@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _g_tuner@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_tuner@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_cx18_call_all
Lloh9:
	adrp	x8, _CX18_F_I_RADIO_USER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX18_F_I_RADIO_USER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	mov	x8, x0
	ldr	w0, [x19, #12]
	cbz	x8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
Lloh14:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
Lloh18:
	adrp	x8, _V4L2_TUNER_ANALOG_TV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_TUNER_ANALOG_TV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_6:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tuner,4,2                      ; @tuner
	.comm	_g_tuner,4,2                    ; @g_tuner
	.comm	_CX18_F_I_RADIO_USER,4,2        ; @CX18_F_I_RADIO_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx18 Radio Tuner"

	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
l_.str.1:                               ; @.str.1
	.asciz	"cx18 TV Tuner"

	.comm	_V4L2_TUNER_ANALOG_TV,4,2       ; @V4L2_TUNER_ANALOG_TV
	.no_dead_strip	_cx18_g_tuner
.subsections_via_symbols
