	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radio_tea5777_init             ## -- Begin function radio_tea5777_init
	.p2align	4, 0x90
_radio_tea5777_init:                    ## @radio_tea5777_init
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_TEA5777_W_IFCE_SHIFT@GOTPCREL(%rip), %rax
	movq	_TEA5777_W_IFW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	movb	(%rax), %al
	btsq	%rax, %rdx
	movq	_TEA5777_W_INTEXT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rdx
	movq	_TEA5777_W_CHP0_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rdx
	movq	_TEA5777_W_SLEV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rdx
	movq	%rdx, (%rdi)
	movl	$1448000, 8(%rdi)               ## imm = 0x161840
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rdi)
	callq	_radio_tea5777_set_freq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	64(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	jmp	LBB0_6
LBB0_2:
	leaq	16(%rbx), %r15
	movq	_tea575x_radio@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, 48(%rbx)
	movups	%xmm1, 32(%rbx)
	movups	%xmm0, 16(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	leaq	88(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_init
	movl	56(%rbx), %edi
	movq	64(%rbx), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	%r12, 48(%rbx)
	movq	64(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	_V4L2_CAP_TUNER@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_RADIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_HW_FREQ_SEEK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	leaq	80(%rbx), %rax
	movq	%r14, 80(%rbx)
	movq	%rax, 32(%rbx)
	leaq	72(%rbx), %r14
	movq	%r14, 24(%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_tea575x_ctrl_ops@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	72(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	64(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r13d, %r12d
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	_VFL_TYPE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movq	64(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	24(%rbx), %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r14d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEA5777_W_IFCE_SHIFT,8,3       ## @TEA5777_W_IFCE_SHIFT
	.comm	_TEA5777_W_IFW_SHIFT,8,3        ## @TEA5777_W_IFW_SHIFT
	.comm	_TEA5777_W_INTEXT_SHIFT,8,3     ## @TEA5777_W_INTEXT_SHIFT
	.comm	_TEA5777_W_CHP0_SHIFT,8,3       ## @TEA5777_W_CHP0_SHIFT
	.comm	_TEA5777_W_SLEV_SHIFT,8,3       ## @TEA5777_W_SLEV_SHIFT
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't set initial freq (%d)\n"

	.comm	_tea575x_radio,48,3             ## @tea575x_radio
	.comm	_V4L2_CAP_TUNER,4,2             ## @V4L2_CAP_TUNER
	.comm	_V4L2_CAP_RADIO,4,2             ## @V4L2_CAP_RADIO
	.comm	_V4L2_CAP_HW_FREQ_SEEK,4,2      ## @V4L2_CAP_HW_FREQ_SEEK
	.comm	_tea575x_fops,8,3               ## @tea575x_fops
	.comm	_tea575x_ctrl_ops,4,2           ## @tea575x_ctrl_ops
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ## @V4L2_CID_AUDIO_MUTE
L_.str.1:                               ## @.str.1
	.asciz	"can't initialize controls\n"

	.comm	_VFL_TYPE_RADIO,4,2             ## @VFL_TYPE_RADIO
L_.str.2:                               ## @.str.2
	.asciz	"can't register video device!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radio_tea5777_init             ; -- Begin function radio_tea5777_init
	.p2align	2
_radio_tea5777_init:                    ; @radio_tea5777_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TEA5777_W_IFCE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEA5777_W_IFCE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
Lloh3:
	adrp	x10, _TEA5777_W_IFW_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TEA5777_W_IFW_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x10, x8
Lloh6:
	adrp	x10, _TEA5777_W_INTEXT_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TEA5777_W_INTEXT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh9:
	adrp	x10, _TEA5777_W_CHP0_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TEA5777_W_CHP0_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh12:
	adrp	x10, _TEA5777_W_SLEV_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TEA5777_W_SLEV_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x8, x9
	str	x8, [x0]
	mov	w8, #6208
	movk	w8, #22, lsl #16
	str	w8, [x0, #8]
Lloh15:
	adrp	x8, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #92]
	bl	_radio_tea5777_set_freq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x0, [x19, #64]
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
	b	LBB0_7
LBB0_2:
	add	x20, x19, #16
Lloh20:
	adrp	x8, _tea575x_radio@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tea575x_radio@GOTPAGEOFF]
	ldp	q1, q0, [x8, #16]
	ldr	q2, [x8]
	stp	q2, q1, [x19, #16]
	str	q0, [x19, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_video_set_drvdata
	add	x22, x19, #88
	mov	x0, x22
	bl	_mutex_init
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #64]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
	str	x22, [x19, #48]
	ldr	x8, [x19, #64]
	mov	x22, x19
	str	x21, [x22, #80]!
	stur	x8, [x22, #-40]
Lloh22:
	adrp	x8, _V4L2_CAP_TUNER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_CAP_TUNER@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _V4L2_CAP_RADIO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_CAP_RADIO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _V4L2_CAP_HW_FREQ_SEEK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _V4L2_CAP_HW_FREQ_SEEK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #16]
	str	x22, [x19, #32]
	sub	x21, x22, #8
	stur	x21, [x22, #-56]
	mov	x0, x21
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh31:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x1, _tea575x_ctrl_ops@GOTPAGE
Lloh35:
	ldr	x1, [x1, _tea575x_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	ldur	w22, [x22, #-8]
	cbz	w22, LBB0_4
; %bb.3:
	ldr	x0, [x19, #64]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_v4l2_err
	mov	x0, x21
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_setup
Lloh38:
	adrp	x8, _VFL_TYPE_RADIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VFL_TYPE_RADIO@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_video_register_device
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #64]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_v4l2_err
	ldr	x0, [x19, #24]
LBB0_6:
	bl	_v4l2_ctrl_handler_free
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_TEA5777_W_IFCE_SHIFT,8,3       ; @TEA5777_W_IFCE_SHIFT
	.comm	_TEA5777_W_IFW_SHIFT,8,3        ; @TEA5777_W_IFW_SHIFT
	.comm	_TEA5777_W_INTEXT_SHIFT,8,3     ; @TEA5777_W_INTEXT_SHIFT
	.comm	_TEA5777_W_CHP0_SHIFT,8,3       ; @TEA5777_W_CHP0_SHIFT
	.comm	_TEA5777_W_SLEV_SHIFT,8,3       ; @TEA5777_W_SLEV_SHIFT
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't set initial freq (%d)\n"

	.comm	_tea575x_radio,48,3             ; @tea575x_radio
	.comm	_V4L2_CAP_TUNER,4,2             ; @V4L2_CAP_TUNER
	.comm	_V4L2_CAP_RADIO,4,2             ; @V4L2_CAP_RADIO
	.comm	_V4L2_CAP_HW_FREQ_SEEK,4,2      ; @V4L2_CAP_HW_FREQ_SEEK
	.comm	_tea575x_fops,8,3               ; @tea575x_fops
	.comm	_tea575x_ctrl_ops,4,2           ; @tea575x_ctrl_ops
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ; @V4L2_CID_AUDIO_MUTE
l_.str.1:                               ; @.str.1
	.asciz	"can't initialize controls\n"

	.comm	_VFL_TYPE_RADIO,4,2             ; @VFL_TYPE_RADIO
l_.str.2:                               ; @.str.2
	.asciz	"can't register video device!\n"

.subsections_via_symbols
