	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_g_tuner
_cxusb_medion_g_tuner:                  ## @cxusb_medion_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	%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
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_video_devdata
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_TUNER_ANALOG_TV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movl	8(%r13), %edi
	movq	_g_tuner@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rsi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	4(%r13), %edi
	movl	(%r12), %edx
	movq	%r15, %rsi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	$0, 16(%r15)
	movl	(%r13), %edi
	movl	(%r12), %edx
	movq	%r15, %rsi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	8(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VFL_TYPE_GRABBER,8,3           ## @VFL_TYPE_GRABBER
	.comm	_V4L2_TUNER_ANALOG_TV,4,2       ## @V4L2_TUNER_ANALOG_TV
	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
	.comm	_g_tuner,4,2                    ## @g_tuner
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TV tuner"

L_.str.1:                               ## @.str.1
	.asciz	"Radio tuner"

	.no_dead_strip	_cxusb_medion_g_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_g_tuner
_cxusb_medion_g_tuner:                  ; @cxusb_medion_g_tuner
	.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
	mov	x19, x2
	mov	x20, x0
	bl	_video_drvdata
	ldr	x22, [x0]
	mov	x0, x20
	bl	_video_devdata
	ldr	x8, [x19]
	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	x20, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _VFL_TYPE_GRABBER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VFL_TYPE_GRABBER@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _V4L2_TUNER_ANALOG_TV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_TUNER_ANALOG_TV@GOTPAGEOFF]
Lloh7:
	adrp	x11, _V4L2_TUNER_RADIO@GOTPAGE
Lloh8:
	ldr	x11, [x11, _V4L2_TUNER_RADIO@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	ldr	w0, [x22, #8]
Lloh9:
	adrp	x23, _g_tuner@GOTPAGE
Lloh10:
	ldr	x23, [x23, _g_tuner@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x1, x19
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x22, #4]
	ldr	w2, [x23]
	mov	x1, x19
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_6
; %bb.4:
	str	xzr, [x19, #16]
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	x1, x19
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x10, l_.str.1@PAGE
Lloh12:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh13:
	adrp	x11, l_.str@PAGE
Lloh14:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VFL_TYPE_GRABBER,8,3           ; @VFL_TYPE_GRABBER
	.comm	_V4L2_TUNER_ANALOG_TV,4,2       ; @V4L2_TUNER_ANALOG_TV
	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
	.comm	_g_tuner,4,2                    ; @g_tuner
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TV tuner"

l_.str.1:                               ; @.str.1
	.asciz	"Radio tuner"

	.no_dead_strip	_cxusb_medion_g_tuner
.subsections_via_symbols
