	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tea5764_i2c_probe
_tea5764_i2c_probe:                     ## @tea5764_i2c_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	64(%rax), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	56(%r12), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_tea5764_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 64(%r12)
	movl	56(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
	jmp	LBB0_13
LBB0_6:
	movq	%r12, %r15
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_mutex_init
	movq	%r13, 48(%r12)
	movq	%r12, %rdi
	callq	_tea5764_i2c_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	32(%r12), %rsi
	movl	40(%r12), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	32(%r12), %rax
	movq	_TEA5764_CHIPID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	$4095, %eax                     ## imm = 0xFFF
	andl	40(%r12), %eax
	movq	_TEA5764_MANID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.10:
	movq	_tea5764_radio_template@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 16(%r12)
	movups	(%rax), %xmm0
	movups	%xmm0, (%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_video_set_drvdata
	movq	%r15, 16(%r12)
	movq	%r14, 8(%r12)
	movq	_V4L2_CAP_TUNER@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_RADIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	callq	_tea5764_i2c_read
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_tea5764_set_audout_mode
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_tea5764_mute
	movq	%r12, %rdi
	callq	_tea5764_power_down
	movq	_VFL_TYPE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_radio_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_11
## %bb.15:
	leaq	L_.str.6(%rip), %rdi
	callq	_PINFO
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	callq	_PWARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_ctrl_handler_free
	movq	%r14, %rdi
	callq	_v4l2_device_unregister
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	_PWARN
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"could not register v4l2_device\n"

	.comm	_tea5764_ctrl_ops,4,2           ## @tea5764_ctrl_ops
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ## @V4L2_CID_AUDIO_MUTE
L_.str.2:                               ## @.str.2
	.asciz	"Could not register controls\n"

L_.str.3:                               ## @.str.3
	.asciz	"chipid = %04X, manid = %04X"

	.comm	_TEA5764_CHIPID,8,3             ## @TEA5764_CHIPID
	.comm	_TEA5764_MANID,4,2              ## @TEA5764_MANID
L_.str.4:                               ## @.str.4
	.asciz	"This chip is not a TEA5764!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tea5764_radio_template,24,3    ## @tea5764_radio_template
	.comm	_V4L2_CAP_TUNER,4,2             ## @V4L2_CAP_TUNER
	.comm	_V4L2_CAP_RADIO,4,2             ## @V4L2_CAP_RADIO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_VFL_TYPE_RADIO,4,2             ## @VFL_TYPE_RADIO
	.comm	_radio_nr,4,2                   ## @radio_nr
L_.str.5:                               ## @.str.5
	.asciz	"Could not register video device!"

L_.str.6:                               ## @.str.6
	.asciz	"registered."

	.no_dead_strip	_tea5764_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tea5764_i2c_probe
_tea5764_i2c_probe:                     ; @tea5764_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PDEBUG
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x20, x0, #64
	mov	x0, x22
	mov	x1, x20
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_5
; %bb.2:
	add	x21, x19, #56
	mov	x0, x21
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh5:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, _tea5764_ctrl_ops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _tea5764_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	str	x21, [x19, #64]
	ldr	w23, [x19, #56]
	cbz	w23, LBB0_6
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	b	LBB0_12
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_5:
	mov	x23, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	b	LBB0_13
LBB0_6:
	add	x24, x19, #24
	mov	x0, x24
	bl	_mutex_init
	str	x22, [x19, #48]
	mov	x0, x19
	bl	_tea5764_i2c_read
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #40]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_PDEBUG
	ldr	x8, [x19, #32]
Lloh19:
	adrp	x9, _TEA5764_CHIPID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TEA5764_CHIPID@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x19, #40]
	and	w8, w8, #0xfff
Lloh22:
	adrp	x9, _TEA5764_MANID@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TEA5764_MANID@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
Lloh25:
	adrp	x8, _tea5764_radio_template@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tea5764_radio_template@GOTPAGEOFF]
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [x19, #16]
	str	q0, [x19]
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x19
	mov	x1, x19
	bl	_video_set_drvdata
	stp	x20, x24, [x19, #8]
Lloh27:
	adrp	x8, _V4L2_CAP_TUNER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_CAP_TUNER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _V4L2_CAP_RADIO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _V4L2_CAP_RADIO@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_tea5764_i2c_read
Lloh33:
	adrp	x8, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tea5764_set_audout_mode
	mov	x0, x19
	mov	w1, #1
	bl	_tea5764_mute
	mov	x0, x19
	bl	_tea5764_power_down
Lloh36:
	adrp	x8, _VFL_TYPE_RADIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VFL_TYPE_RADIO@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _radio_nr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _radio_nr@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_video_register_device
	tbnz	w0, #31, LBB0_15
; %bb.10:
Lloh42:
	adrp	x0, l_.str.6@PAGE
Lloh43:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_PINFO
	mov	w23, #0
	b	LBB0_14
LBB0_11:
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_PWARN
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	mov	x23, x0
Lloh49:
	adrp	x0, l_.str.5@PAGE
Lloh50:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_PWARN
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"could not register v4l2_device\n"

	.comm	_tea5764_ctrl_ops,4,2           ; @tea5764_ctrl_ops
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ; @V4L2_CID_AUDIO_MUTE
l_.str.2:                               ; @.str.2
	.asciz	"Could not register controls\n"

l_.str.3:                               ; @.str.3
	.asciz	"chipid = %04X, manid = %04X"

	.comm	_TEA5764_CHIPID,8,3             ; @TEA5764_CHIPID
	.comm	_TEA5764_MANID,4,2              ; @TEA5764_MANID
l_.str.4:                               ; @.str.4
	.asciz	"This chip is not a TEA5764!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tea5764_radio_template,24,3    ; @tea5764_radio_template
	.comm	_V4L2_CAP_TUNER,4,2             ; @V4L2_CAP_TUNER
	.comm	_V4L2_CAP_RADIO,4,2             ; @V4L2_CAP_RADIO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_VFL_TYPE_RADIO,4,2             ; @VFL_TYPE_RADIO
	.comm	_radio_nr,4,2                   ; @radio_nr
l_.str.5:                               ; @.str.5
	.asciz	"Could not register video device!"

l_.str.6:                               ; @.str.6
	.asciz	"registered."

	.no_dead_strip	_tea5764_i2c_probe
.subsections_via_symbols
