	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_v4l2_vidioc_s_modulator
_fm_v4l2_vidioc_s_modulator:            ## @fm_v4l2_vidioc_s_modulator
	.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
	callq	_video_drvdata
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rax, %r14
	movq	_FM_MODE_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, (%r14)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_fmc_set_mode
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_5:
	movl	8(%r15), %r12d
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	jne	LBB0_6
## %bb.7:
	movq	_FM_MONO_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_FM_STEREO_MODE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_FM_RDS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_FM_RDS_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_fm_tx_set_stereo_mono
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	testl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	cmovel	%r13d, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fm_tx_set_rds_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	callq	_fmerr
LBB0_13:
	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	_FM_MODE_TX,8,3                 ## @FM_MODE_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set TX mode\n"

	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_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
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set mono/stereo mode for TX\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set rds mode for TX\n"

	.no_dead_strip	_fm_v4l2_vidioc_s_modulator
.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_modulator
_fm_v4l2_vidioc_s_modulator:            ; @fm_v4l2_vidioc_s_modulator
	.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	x21, x2
	bl	_video_drvdata
	ldr	x8, [x21]
	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, [x0]
Lloh3:
	adrp	x9, _FM_MODE_TX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FM_MODE_TX@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x9]
	cmp	x8, x1
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_fmc_set_mode
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
	ldr	w21, [x21, #8]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FM_STEREO_MODE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FM_STEREO_MODE@GOTPAGEOFF]
Lloh13:
	adrp	x10, _FM_MONO_MODE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FM_MONO_MODE@GOTPAGEOFF]
	tst	w8, w21
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _FM_RDS_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FM_RDS_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
Lloh21:
	adrp	x8, _FM_RDS_DISABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FM_RDS_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_fm_tx_set_stereo_mono
	tbnz	w0, #31, LBB0_8
; %bb.6:
	tst	w22, w21
	csel	w1, w24, w23, eq
	mov	x0, x19
	bl	_fm_tx_set_rds_mode
	mov	x20, x0
	tbz	w0, #31, LBB0_10
; %bb.7:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x20, x0
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_fmerr
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FM_MODE_TX,8,3                 ; @FM_MODE_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set TX mode\n"

	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_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
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set mono/stereo mode for TX\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set rds mode for TX\n"

	.no_dead_strip	_fm_v4l2_vidioc_s_modulator
.subsections_via_symbols
