	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_tuner
_vidioc_g_tuner:                        ## @vidioc_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
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_9
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_CAP_RDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movabsq	$7421703488888, %rax            ## imm = 0x6C000000578
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_cadet_getstereo
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_9:
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_V4L2_TUNER_CAP_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movabsq	$113387136622720, %rax          ## imm = 0x672000002080
	movq	%rax, 8(%rbx)
	movl	$129, 16(%rbx)
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_3:
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rbx)
LBB0_7:
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movl	%ecx, 16(%rbx)
LBB0_10:
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ## @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ## @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_MODE_MONO,8,3       ## @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ## @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ## @V4L2_TUNER_SUB_RDS
L_.str.1:                               ## @.str.1
	.asciz	"AM"

	.comm	_V4L2_TUNER_CAP_LOW,4,2         ## @V4L2_TUNER_CAP_LOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_g_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vidioc_g_tuner
lCPI0_0:
	.long	8320                            ; 0x2080
	.long	26400                           ; 0x6720
lCPI0_1:
	.long	1400                            ; 0x578
	.long	1728                            ; 0x6c0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vidioc_g_tuner:                        ; @vidioc_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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x19, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh5:
	adrp	x8, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _V4L2_TUNER_CAP_RDS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_TUNER_CAP_RDS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19, #8]
	mov	x0, x20
	bl	_cadet_getstereo
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_9
; %bb.4:
Lloh13:
	adrp	x8, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #32]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh17:
	adrp	x8, _V4L2_TUNER_CAP_LOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_TUNER_CAP_LOW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	mov	w8, #129
	str	w8, [x19, #16]
Lloh22:
	adrp	x8, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	b	LBB0_10
LBB0_6:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
Lloh28:
	adrp	x8, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_9:
Lloh30:
	adrp	x8, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x19, #16]
LBB0_10:
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x19, #20]
LBB0_11:
	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 AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ; @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ; @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_MODE_MONO,8,3       ; @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ; @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ; @V4L2_TUNER_SUB_RDS
l_.str.1:                               ; @.str.1
	.asciz	"AM"

	.comm	_V4L2_TUNER_CAP_LOW,4,2         ; @V4L2_TUNER_CAP_LOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_g_tuner
.subsections_via_symbols
