	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_v4l2_vidioc_g_tuner
_fm_v4l2_vidioc_g_tuner:                ## @fm_v4l2_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_FM_MODE_RX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_fm_rx_get_band_freq_range
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_fm_rx_get_stereo_mono
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_fm_rx_get_rssi_level
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movl	48(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movl	-32(%rbp), %eax
	shll	$4, %eax
	movl	%eax, 8(%r14)
	movl	-28(%rbp), %eax
	shll	$4, %eax
	movl	%eax, 12(%r14)
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	8(%rbx), %rsi
	movq	_FM_RDS_ENABLE@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	movl	$0, %edx
	cmpq	(%rdi), %rsi
	jne	LBB0_10
## %bb.9:
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_10:
	orl	%edx, %ecx
	movl	%ecx, 16(%r14)
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rcx
	movq	_V4L2_TUNER_CAP_RDS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_V4L2_TUNER_CAP_LOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_V4L2_TUNER_CAP_HWSEEK_WRAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 20(%r14)
	cmpl	$0, -24(%rbp)
	jne	LBB0_11
## %bb.12:
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r14)
	movl	-20(%rbp), %ecx
	movl	%ecx, %edx
	shll	$8, %edx
	addl	%edx, %ecx
	addl	$32896, %ecx                    ## imm = 0x8080
	movl	%ecx, 24(%r14)
	movq	$0, 32(%r14)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FM_MODE_RX,8,3                 ## @FM_MODE_RX
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_FM_RDS_ENABLE,8,3              ## @FM_RDS_ENABLE
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ## @V4L2_TUNER_SUB_RDS
	.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_CAP_LOW,4,2         ## @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_HWSEEK_BOUNDED,4,2 ## @V4L2_TUNER_CAP_HWSEEK_BOUNDED
	.comm	_V4L2_TUNER_CAP_HWSEEK_WRAP,4,2 ## @V4L2_TUNER_CAP_HWSEEK_WRAP
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.no_dead_strip	_fm_v4l2_vidioc_g_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm_v4l2_vidioc_g_tuner
_fm_v4l2_vidioc_g_tuner:                ; @fm_v4l2_vidioc_g_tuner
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _FM_MODE_RX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FM_MODE_RX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_fm_rx_get_band_freq_range
	cbnz	w0, LBB0_9
; %bb.4:
	add	x1, sp, #4
	mov	x0, x20
	bl	_fm_rx_get_stereo_mono
	cbnz	w0, LBB0_9
; %bb.5:
	mov	x1, sp
	mov	x0, x20
	bl	_fm_rx_get_rssi_level
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w0, [x19, #48]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
Lloh7:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldp	w9, w8, [sp, #8]
	lsl	w8, w8, #4
	lsl	w9, w9, #4
	stp	w8, w9, [x19, #8]
Lloh10:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x20, #8]
Lloh16:
	adrp	x10, _FM_RDS_ENABLE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FM_RDS_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x11, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh20:
	ldr	x11, [x11, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _V4L2_TUNER_CAP_RDS@GOTPAGE
Lloh26:
	ldr	x10, [x10, _V4L2_TUNER_CAP_RDS@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh28:
	adrp	x10, _V4L2_TUNER_CAP_LOW@GOTPAGE
Lloh29:
	ldr	x10, [x10, _V4L2_TUNER_CAP_LOW@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
Lloh31:
	adrp	x11, _V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPAGE
Lloh32:
	ldr	x11, [x11, _V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh33:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh34:
	adrp	x10, _V4L2_TUNER_CAP_HWSEEK_WRAP@GOTPAGE
Lloh35:
	ldr	x10, [x10, _V4L2_TUNER_CAP_HWSEEK_WRAP@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w8, w9, [x19, #16]
	ldr	w8, [sp, #4]
Lloh37:
	adrp	x9, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh39:
	adrp	x10, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh40:
	ldr	x10, [x10, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	w8, [sp]
	add	w8, w8, w8, lsl #8
	mov	w9, #32896
	add	w8, w8, w9
	str	w8, [x19, #24]
	str	xzr, [x19, #32]
	b	LBB0_9
LBB0_7:
Lloh41:
	adrp	x8, _EPERM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FM_MODE_RX,8,3                 ; @FM_MODE_RX
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_FM_RDS_ENABLE,8,3              ; @FM_RDS_ENABLE
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ; @V4L2_TUNER_SUB_RDS
	.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_CAP_LOW,4,2         ; @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_HWSEEK_BOUNDED,4,2 ; @V4L2_TUNER_CAP_HWSEEK_BOUNDED
	.comm	_V4L2_TUNER_CAP_HWSEEK_WRAP,4,2 ; @V4L2_TUNER_CAP_HWSEEK_WRAP
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.no_dead_strip	_fm_v4l2_vidioc_g_tuner
.subsections_via_symbols
