	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_v4l2_vidioc_s_tuner
_fm_v4l2_vidioc_s_tuner:                ## @fm_v4l2_vidioc_s_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_2:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_FM_STEREO_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_FM_MONO_MODE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rbx)
	jne	LBB0_6
## %bb.7:
	movq	_FM_RDS_DISABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_FM_RDS_ENABLE@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rax), %r12d
	movl	(%rcx), %r15d
	movq	_FM_MODE_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, (%r14)
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_fmc_set_mode
	testl	%eax, %eax
	js	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_fmc_set_stereo_mono
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fmc_set_rds_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_15:
	callq	_fmerr
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ## @V4L2_TUNER_MODE_STEREO
	.comm	_FM_STEREO_MODE,4,2             ## @FM_STEREO_MODE
	.comm	_FM_MONO_MODE,4,2               ## @FM_MONO_MODE
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ## @V4L2_TUNER_SUB_RDS
	.comm	_FM_RDS_ENABLE,4,2              ## @FM_RDS_ENABLE
	.comm	_FM_RDS_DISABLE,4,2             ## @FM_RDS_DISABLE
	.comm	_FM_MODE_RX,8,3                 ## @FM_MODE_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set RX mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to set RX stereo/mono mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set RX RDS mode\n"

	.no_dead_strip	_fm_v4l2_vidioc_s_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_s_tuner
_fm_v4l2_vidioc_s_tuner:                ; @fm_v4l2_vidioc_s_tuner
	.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	x20, x2
	bl	_video_drvdata
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_2:
	mov	x19, x0
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _FM_STEREO_MODE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FM_STEREO_MODE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _FM_MONO_MODE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FM_MONO_MODE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w22, [x8]
	ldr	w8, [x20, #16]
Lloh10:
	adrp	x9, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _FM_RDS_ENABLE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FM_RDS_ENABLE@GOTPAGEOFF]
Lloh15:
	adrp	x11, _FM_RDS_DISABLE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _FM_RDS_DISABLE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w21, [x8]
	ldr	x8, [x0]
Lloh17:
	adrp	x9, _FM_MODE_RX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FM_MODE_RX@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x9]
	cmp	x8, x1
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_fmc_set_mode
	tbnz	w0, #31, LBB0_8
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	bl	_fmc_set_stereo_mono
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_fmc_set_rds_mode
	mov	x20, x0
	tbz	w0, #31, LBB0_10
; %bb.6:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x20, x0
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x20, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_fmerr
LBB0_10:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ; @V4L2_TUNER_MODE_STEREO
	.comm	_FM_STEREO_MODE,4,2             ; @FM_STEREO_MODE
	.comm	_FM_MONO_MODE,4,2               ; @FM_MONO_MODE
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ; @V4L2_TUNER_SUB_RDS
	.comm	_FM_RDS_ENABLE,4,2              ; @FM_RDS_ENABLE
	.comm	_FM_RDS_DISABLE,4,2             ; @FM_RDS_DISABLE
	.comm	_FM_MODE_RX,8,3                 ; @FM_MODE_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set RX mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to set RX stereo/mono mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set RX RDS mode\n"

	.no_dead_strip	_fm_v4l2_vidioc_s_tuner
.subsections_via_symbols
