	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_v4l2_init_video_device      ## -- Begin function fm_v4l2_init_video_device
	.p2align	4, 0x90
_fm_v4l2_init_video_device:             ## @fm_v4l2_init_video_device
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	4(%rdi), %r15
	movl	4(%rdi), %edi
	movq	_FM_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_mutex_init
	movq	_fm_viddev_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movq	_gradio_dev@GOTPCREL(%rip), %rbx
	movups	%xmm0, (%rbx)
	movq	16(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_video_set_drvdata
	movq	%r13, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	_VFL_TYPE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_video_register_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
	leaq	L_.str(%rip), %rdi
	callq	_fmerr
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, 8(%r14)
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_v4l2_ctrl_handler_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_V4L2_CID_AUDIO_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FM_RX_VOLUME_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FM_RX_VOLUME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, (%rsp)
	movq	_fm_ctrl_ops@GOTPCREL(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_TUNE_PREEMPHASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_PREEMPHASIS_75_uS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	movl	%ecx, %r9d
	callq	_v4l2_ctrl_new_std_menu
	movq	_V4L2_CID_TUNE_POWER_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FM_PWR_LVL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FM_PWR_LVL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_TUNE_ANTENNA_CAPACITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_fmerr
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	8(%r14), %rdi
	callq	_video_unregister_device
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_DRV_NAME,4,2                ## @FM_DRV_NAME
	.comm	_gradio_dev,24,3                ## @gradio_dev
	.comm	_fm_viddev_template,24,3        ## @fm_viddev_template
	.comm	_VFL_TYPE_RADIO,4,2             ## @VFL_TYPE_RADIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not register video device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"(fmdev): Can't init ctrl handler\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_fm_ctrl_ops,4,2                ## @fm_ctrl_ops
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ## @V4L2_CID_AUDIO_VOLUME
	.comm	_FM_RX_VOLUME_MIN,4,2           ## @FM_RX_VOLUME_MIN
	.comm	_FM_RX_VOLUME_MAX,4,2           ## @FM_RX_VOLUME_MAX
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ## @V4L2_CID_AUDIO_MUTE
	.comm	_V4L2_CID_TUNE_PREEMPHASIS,4,2  ## @V4L2_CID_TUNE_PREEMPHASIS
	.comm	_V4L2_PREEMPHASIS_75_uS,4,2     ## @V4L2_PREEMPHASIS_75_uS
	.comm	_V4L2_CID_TUNE_POWER_LEVEL,4,2  ## @V4L2_CID_TUNE_POWER_LEVEL
	.comm	_FM_PWR_LVL_LOW,4,2             ## @FM_PWR_LVL_LOW
	.comm	_FM_PWR_LVL_HIGH,4,2            ## @FM_PWR_LVL_HIGH
	.comm	_V4L2_CID_TUNE_ANTENNA_CAPACITOR,4,2 ## @V4L2_CID_TUNE_ANTENNA_CAPACITOR
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_v4l2_init_video_device      ; -- Begin function fm_v4l2_init_video_device
	.p2align	2
_fm_v4l2_init_video_device:             ; @fm_v4l2_init_video_device
	.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, x1
	mov	x19, x0
	mov	x20, x0
	ldr	w0, [x20, #4]!
Lloh0:
	adrp	x8, _FM_DRV_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_DRV_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
	mov	x0, #0
	mov	x1, x20
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x23, x19, #16
	mov	x0, x23
	bl	_mutex_init
Lloh3:
	adrp	x8, _fm_viddev_template@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fm_viddev_template@GOTPAGEOFF]
	ldr	q0, [x8]
Lloh5:
	adrp	x22, _gradio_dev@GOTPAGE
Lloh6:
	ldr	x22, [x22, _gradio_dev@GOTPAGEOFF]
	str	q0, [x22]
	ldr	x8, [x8, #16]
	str	x8, [x22, #16]
	mov	x0, x22
	mov	x1, x19
	bl	_video_set_drvdata
	stp	x20, x23, [x22, #8]
Lloh7:
	adrp	x8, _VFL_TYPE_RADIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VFL_TYPE_RADIO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_video_register_device
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_v4l2_device_unregister
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	str	x22, [x19, #8]
	str	x19, [x22]
	mov	x0, x19
	mov	w1, #5
	bl	_v4l2_ctrl_handler_init
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _FM_RX_VOLUME_MIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FM_RX_VOLUME_MIN@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _FM_RX_VOLUME_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FM_RX_VOLUME_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
Lloh23:
	adrp	x20, _fm_ctrl_ops@GOTPAGE
Lloh24:
	ldr	x20, [x20, _fm_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	w5, #1
	mov	x6, x4
	bl	_v4l2_ctrl_new_std
Lloh25:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
Lloh28:
	adrp	x8, _V4L2_CID_TUNE_PREEMPHASIS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_CID_TUNE_PREEMPHASIS@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _V4L2_PREEMPHASIS_75_uS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_PREEMPHASIS_75_uS@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	x5, x3
	bl	_v4l2_ctrl_new_std_menu
Lloh34:
	adrp	x8, _V4L2_CID_TUNE_POWER_LEVEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V4L2_CID_TUNE_POWER_LEVEL@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _FM_PWR_LVL_LOW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FM_PWR_LVL_LOW@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x8, _FM_PWR_LVL_HIGH@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FM_PWR_LVL_HIGH@GOTPAGEOFF]
Lloh42:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w5, #1
	mov	x6, x4
	bl	_v4l2_ctrl_new_std
Lloh43:
	adrp	x8, _V4L2_CID_TUNE_ANTENNA_CAPACITOR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _V4L2_CID_TUNE_ANTENNA_CAPACITOR@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #255
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_4
; %bb.7:
	mov	x8, x0
	mov	w0, #0
Lloh46:
	adrp	x9, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_4
LBB0_8:
Lloh49:
	adrp	x0, l_.str.1@PAGE
Lloh50:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fmerr
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	ldr	x0, [x19, #8]
	bl	_video_unregister_device
	mov	x0, x20
	bl	_v4l2_device_unregister
Lloh51:
	adrp	x8, _EBUSY@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_DRV_NAME,4,2                ; @FM_DRV_NAME
	.comm	_gradio_dev,24,3                ; @gradio_dev
	.comm	_fm_viddev_template,24,3        ; @fm_viddev_template
	.comm	_VFL_TYPE_RADIO,4,2             ; @VFL_TYPE_RADIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not register video device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"(fmdev): Can't init ctrl handler\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_fm_ctrl_ops,4,2                ; @fm_ctrl_ops
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ; @V4L2_CID_AUDIO_VOLUME
	.comm	_FM_RX_VOLUME_MIN,4,2           ; @FM_RX_VOLUME_MIN
	.comm	_FM_RX_VOLUME_MAX,4,2           ; @FM_RX_VOLUME_MAX
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ; @V4L2_CID_AUDIO_MUTE
	.comm	_V4L2_CID_TUNE_PREEMPHASIS,4,2  ; @V4L2_CID_TUNE_PREEMPHASIS
	.comm	_V4L2_PREEMPHASIS_75_uS,4,2     ; @V4L2_PREEMPHASIS_75_uS
	.comm	_V4L2_CID_TUNE_POWER_LEVEL,4,2  ; @V4L2_CID_TUNE_POWER_LEVEL
	.comm	_FM_PWR_LVL_LOW,4,2             ; @FM_PWR_LVL_LOW
	.comm	_FM_PWR_LVL_HIGH,4,2            ; @FM_PWR_LVL_HIGH
	.comm	_V4L2_CID_TUNE_ANTENNA_CAPACITOR,4,2 ; @V4L2_CID_TUNE_ANTENNA_CAPACITOR
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
.subsections_via_symbols
