	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_create
_tda998x_create:                        ## @tda998x_create
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$144, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	leaq	140(%r13), %rdi
	callq	_mutex_init
	leaq	136(%r13), %rdi
	callq	_mutex_init
	leaq	132(%r13), %rdi
	callq	_mutex_init
	leaq	40(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	128(%r13), %rdi
	callq	_init_waitqueue_head
	leaq	124(%r13), %rdi
	movq	_tda998x_edid_delay_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	120(%r13), %rdi
	movq	_tda998x_detect_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	$2, %edi
	callq	_VIP_CNTRL_0_SWAP_A
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_VIP_CNTRL_0_SWAP_B
	orl	%ebx, %eax
	movl	%eax, (%r13)
	xorl	%edi, %edi
	callq	_VIP_CNTRL_1_SWAP_C
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_VIP_CNTRL_1_SWAP_D
	orl	%ebx, %eax
	movl	%eax, 4(%r13)
	movl	$4, %edi
	callq	_VIP_CNTRL_2_SWAP_E
	movl	%eax, %ebx
	movl	$5, %edi
	callq	_VIP_CNTRL_2_SWAP_F
	orl	%ebx, %eax
	movl	%eax, 8(%r13)
	movl	(%r15), %eax
	andl	$3, %eax
	orl	$52, %eax
	movl	%eax, 12(%r13)
	movl	$255, 16(%r13)
	movq	%r15, 112(%r13)
	movq	_REG_CEC_ENAMODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CEC_ENAMODS_EN_RXSENS@GOTPCREL(%rip), %rax
	movq	_CEC_ENAMODS_EN_HDMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_cec_write
	movq	%r13, %rdi
	callq	_tda998x_reset
	movq	_REG_VERSION_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_reg_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_REG_VERSION_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_reg_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	shll	$8, %r12d
	andl	$-49, %ebx
	orl	%r12d, %ebx
	movl	%ebx, 20(%r13)
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	jae	LBB0_7
## %bb.8:
	cltq
	leaq	l_reltable.tda998x_create(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_REG_DDC_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_reg_write
	movq	_REG_TX3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$39, %edx
	callq	_reg_write
	cmpl	$130, 20(%r13)
	jne	LBB0_10
## %bb.9:
	movq	_REG_I2C_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_MASTER_DIS_MM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_reg_set
LBB0_10:
	movq	_REG_CEC_FRO_IM_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CEC_FRO_IM_CLK_CTRL_GHOST_DIS@GOTPCREL(%rip), %rax
	movq	_CEC_FRO_IM_CLK_CTRL_IMCLK_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_cec_write
	movq	_REG_CEC_RXSHPDINTENA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cec_write
	movq	_REG_CEC_RXSHPDINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cec_read
	movq	_REG_INT_FLAGS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_reg_read
	movq	_REG_INT_FLAGS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_reg_read
	movq	_REG_INT_FLAGS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_reg_read
	cmpl	$0, 4(%r15)
	je	LBB0_13
## %bb.11:
	leaq	108(%r13), %rdi
	callq	_init_waitqueue_head
	movl	4(%r15), %edi
	callq	_irq_get_irq_data
	movl	%eax, %edi
	callq	_irqd_get_trigger_type
	movq	%rax, 64(%r13)
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	orq	(%rcx), %rax
	orq	(%rdx), %rax
	movl	4(%r15), %edi
	movq	_tda998x_irq_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.6(%rip), %r8
	xorl	%esi, %esi
	movq	%rax, %rcx
	movq	%r13, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.30:
	movl	%eax, %ebx
	movl	4(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_29
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_29
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_29
LBB0_7:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_29
LBB0_12:
	movl	(%r12), %esi
	movq	_CEC_RXSHPDLEV_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_cec_write
LBB0_13:
	movq	%r14, %rdi
	callq	_cec_notifier_get
	movl	%eax, 104(%r13)
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	leaq	64(%r13), %r12
	movq	%r14, 96(%r13)
	movq	%r13, 88(%r13)
	movq	_tda998x_cec_hook_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r13)
	movq	_tda998x_cec_hook_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r13)
	movq	_tda998x_cec_hook_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r13)
	movq	_tda998x_cec_hook_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	leaq	-80(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-64(%rbp), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	12(%r13), %eax
	movl	%eax, -80(%rbp)
	movq	%r12, -72(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -76(%rbp)
	movl	16(%r15), %edi
	leaq	-80(%rbp), %rsi
	callq	_i2c_new_device
	movl	%eax, 56(%r13)
	testl	%eax, %eax
	je	LBB0_16
## %bb.19:
	movq	_REG_INT_FLAGS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_FLAGS_2_EDID_BLK_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_reg_set
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movswl	-42(%rbp), %eax
	movl	%eax, (%r13)
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, 4(%r13)
	movl	%eax, 8(%r13)
LBB0_22:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_tda998x_get_audio_ports
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.23:
	movq	48(%r13), %rax
	movq	_AUDIO_ROUTE_I2S@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_25
## %bb.24:
	movq	_AUDIO_ROUTE_SPDIF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_28
LBB0_25:
	addq	$8, %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_tda998x_audio_codec_init
	jmp	LBB0_28
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_tda998x_destroy
LBB0_29:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.27:
	movq	%r13, %rdi
	callq	_tda998x_set_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_28:
	movq	%r13, %rdi
	addq	$24, %rdi
	movq	_tda998x_bridge_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	callq	_drm_bridge_add
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tda998x_edid_delay_done,4,2    ## @tda998x_edid_delay_done
	.comm	_tda998x_detect_work,4,2        ## @tda998x_detect_work
	.comm	_REG_CEC_ENAMODS,4,2            ## @REG_CEC_ENAMODS
	.comm	_CEC_ENAMODS_EN_RXSENS,4,2      ## @CEC_ENAMODS_EN_RXSENS
	.comm	_CEC_ENAMODS_EN_HDMI,4,2        ## @CEC_ENAMODS_EN_HDMI
	.comm	_REG_VERSION_LSB,4,2            ## @REG_VERSION_LSB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read version: %d\n"

	.comm	_REG_VERSION_MSB,4,2            ## @REG_VERSION_MSB
L_.str.1:                               ## @.str.1
	.asciz	"found TDA9989 n2"

L_.str.2:                               ## @.str.2
	.asciz	"found TDA19989"

L_.str.3:                               ## @.str.3
	.asciz	"found TDA19989 n2"

L_.str.4:                               ## @.str.4
	.asciz	"found TDA19988"

L_.str.5:                               ## @.str.5
	.asciz	"found unsupported device: %04x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_REG_DDC_DISABLE,4,2            ## @REG_DDC_DISABLE
	.comm	_REG_TX3,4,2                    ## @REG_TX3
	.comm	_REG_I2C_MASTER,4,2             ## @REG_I2C_MASTER
	.comm	_I2C_MASTER_DIS_MM,4,2          ## @I2C_MASTER_DIS_MM
	.comm	_REG_CEC_FRO_IM_CLK_CTRL,4,2    ## @REG_CEC_FRO_IM_CLK_CTRL
	.comm	_CEC_FRO_IM_CLK_CTRL_GHOST_DIS,4,2 ## @CEC_FRO_IM_CLK_CTRL_GHOST_DIS
	.comm	_CEC_FRO_IM_CLK_CTRL_IMCLK_SEL,4,2 ## @CEC_FRO_IM_CLK_CTRL_IMCLK_SEL
	.comm	_REG_CEC_RXSHPDINTENA,4,2       ## @REG_CEC_RXSHPDINTENA
	.comm	_REG_CEC_RXSHPDINT,4,2          ## @REG_CEC_RXSHPDINT
	.comm	_REG_INT_FLAGS_0,4,2            ## @REG_INT_FLAGS_0
	.comm	_REG_INT_FLAGS_1,4,2            ## @REG_INT_FLAGS_1
	.comm	_REG_INT_FLAGS_2,4,2            ## @REG_INT_FLAGS_2
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_tda998x_irq_thread,4,2         ## @tda998x_irq_thread
L_.str.6:                               ## @.str.6
	.asciz	"tda998x"

L_.str.7:                               ## @.str.7
	.asciz	"failed to request IRQ#%u: %d\n"

	.comm	_CEC_RXSHPDLEV_HPD,4,2          ## @CEC_RXSHPDLEV_HPD
	.comm	_tda998x_cec_hook_init,4,2      ## @tda998x_cec_hook_init
	.comm	_tda998x_cec_hook_exit,4,2      ## @tda998x_cec_hook_exit
	.comm	_tda998x_cec_hook_open,4,2      ## @tda998x_cec_hook_open
	.comm	_tda998x_cec_hook_release,4,2   ## @tda998x_cec_hook_release
L_.str.8:                               ## @.str.8
	.asciz	"tda9950"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_INT_FLAGS_2_EDID_BLK_RD,4,2    ## @INT_FLAGS_2_EDID_BLK_RD
L_.str.9:                               ## @.str.9
	.asciz	"video-ports"

	.comm	_AUDIO_ROUTE_I2S,8,3            ## @AUDIO_ROUTE_I2S
	.comm	_AUDIO_ROUTE_SPDIF,8,3          ## @AUDIO_ROUTE_SPDIF
	.comm	_tda998x_bridge_funcs,4,2       ## @tda998x_bridge_funcs
	.no_dead_strip	_tda998x_create
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.tda998x_create
l_reltable.tda998x_create:
	.long	L_.str.1-l_reltable.tda998x_create
	.long	L_.str.3-l_reltable.tda998x_create
	.long	L_.str.2-l_reltable.tda998x_create
	.long	L_.str.4-l_reltable.tda998x_create

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_create
_tda998x_create:                        ; @tda998x_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_to_i2c_client
	mov	x23, x0
	mov	x21, x0
	ldr	x22, [x21, #8]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #144
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	add	x0, x20, #140
	bl	_mutex_init
	add	x0, x20, #136
	bl	_mutex_init
	add	x0, x20, #132
	bl	_mutex_init
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	add	x0, x20, #128
	bl	_init_waitqueue_head
	add	x0, x20, #124
Lloh3:
	adrp	x8, _tda998x_edid_delay_done@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tda998x_edid_delay_done@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x20, #120
Lloh6:
	adrp	x8, _tda998x_detect_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tda998x_detect_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	w0, #2
	bl	_VIP_CNTRL_0_SWAP_A
	mov	x24, x0
	mov	w0, #3
	bl	_VIP_CNTRL_0_SWAP_B
	orr	w8, w0, w24
	str	w8, [x20]
	mov	w0, #0
	bl	_VIP_CNTRL_1_SWAP_C
	mov	x24, x0
	mov	w0, #1
	bl	_VIP_CNTRL_1_SWAP_D
	orr	w8, w0, w24
	str	w8, [x20, #4]
	mov	w0, #4
	bl	_VIP_CNTRL_2_SWAP_E
	mov	x24, x0
	mov	w0, #5
	bl	_VIP_CNTRL_2_SWAP_F
	orr	w8, w0, w24
	str	w8, [x20, #8]
	ldr	w8, [x23]
	mov	w9, #52
	bfxil	w9, w8, #0, #2
	mov	w8, #255
	stp	w9, w8, [x20, #12]
	str	x23, [x20, #112]
Lloh9:
	adrp	x8, _REG_CEC_ENAMODS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_CEC_ENAMODS@GOTPAGEOFF]
Lloh11:
	adrp	x9, _CEC_ENAMODS_EN_RXSENS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CEC_ENAMODS_EN_RXSENS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _CEC_ENAMODS_EN_HDMI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CEC_ENAMODS_EN_HDMI@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_cec_write
	mov	x0, x20
	bl	_tda998x_reset
Lloh18:
	adrp	x8, _REG_VERSION_LSB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_VERSION_LSB@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_reg_read
	mov	x24, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh21:
	adrp	x8, _REG_VERSION_MSB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_VERSION_MSB@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_reg_read
	mov	x25, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	and	w8, w24, #0xffffffcf
	orr	w2, w8, w25, lsl #8
	str	w2, [x20, #20]
	sub	w8, w2, #128
	cmp	w8, #4
	b.hs	LBB0_12
; %bb.4:
Lloh24:
	adrp	x9, l_switch.table.tda998x_create@PAGE
Lloh25:
	add	x9, x9, l_switch.table.tda998x_create@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	mov	x0, x19
	bl	_dev_info
Lloh26:
	adrp	x8, _REG_DDC_DISABLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_DDC_DISABLE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_reg_write
Lloh29:
	adrp	x8, _REG_TX3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REG_TX3@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #39
	bl	_reg_write
	ldr	w8, [x20, #20]
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.5:
Lloh32:
	adrp	x8, _REG_I2C_MASTER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_I2C_MASTER@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _I2C_MASTER_DIS_MM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I2C_MASTER_DIS_MM@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_reg_set
LBB0_6:
Lloh38:
	adrp	x8, _REG_CEC_FRO_IM_CLK_CTRL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_CEC_FRO_IM_CLK_CTRL@GOTPAGEOFF]
Lloh40:
	adrp	x9, _CEC_FRO_IM_CLK_CTRL_GHOST_DIS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CEC_FRO_IM_CLK_CTRL_GHOST_DIS@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	ldr	w8, [x9]
Lloh44:
	adrp	x9, _CEC_FRO_IM_CLK_CTRL_IMCLK_SEL@GOTPAGE
Lloh45:
	ldr	x9, [x9, _CEC_FRO_IM_CLK_CTRL_IMCLK_SEL@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_cec_write
Lloh47:
	adrp	x26, _REG_CEC_RXSHPDINTENA@GOTPAGE
Lloh48:
	ldr	x26, [x26, _REG_CEC_RXSHPDINTENA@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #0
	bl	_cec_write
Lloh49:
	adrp	x8, _REG_CEC_RXSHPDINT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REG_CEC_RXSHPDINT@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cec_read
Lloh52:
	adrp	x8, _REG_INT_FLAGS_0@GOTPAGE
Lloh53:
	ldr	x8, [x8, _REG_INT_FLAGS_0@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_reg_read
Lloh55:
	adrp	x8, _REG_INT_FLAGS_1@GOTPAGE
Lloh56:
	ldr	x8, [x8, _REG_INT_FLAGS_1@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_reg_read
Lloh58:
	adrp	x25, _REG_INT_FLAGS_2@GOTPAGE
Lloh59:
	ldr	x25, [x25, _REG_INT_FLAGS_2@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_16
; %bb.7:
	add	x0, x20, #108
	bl	_init_waitqueue_head
	ldr	w0, [x23, #4]
	bl	_irq_get_irq_data
	bl	_irqd_get_trigger_type
	str	x0, [x20, #64]
Lloh60:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh61:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
Lloh63:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh64:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	orr	x8, x8, x0
	orr	x3, x8, x9
	ldr	w0, [x23, #4]
Lloh66:
	adrp	x8, _tda998x_irq_thread@GOTPAGE
Lloh67:
	ldr	x8, [x8, _tda998x_irq_thread@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
Lloh69:
	adrp	x4, l_.str.6@PAGE
Lloh70:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	cbz	w0, LBB0_15
; %bb.8:
	mov	x24, x0
	ldr	w2, [x23, #4]
	str	x24, [sp]
Lloh71:
	adrp	x1, l_.str.7@PAGE
Lloh72:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_9:
Lloh73:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh75:
	adrp	x1, l_.str@PAGE
Lloh76:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_dev_err
	b	LBB0_14
LBB0_11:
Lloh77:
	adrp	x1, l_.str@PAGE
Lloh78:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	bl	_dev_err
	mov	x24, x25
	b	LBB0_14
LBB0_12:
Lloh79:
	adrp	x1, l_.str.5@PAGE
Lloh80:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh81:
	adrp	x8, _ENXIO@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	w1, [x26]
Lloh83:
	adrp	x8, _CEC_RXSHPDLEV_HPD@GOTPAGE
Lloh84:
	ldr	x8, [x8, _CEC_RXSHPDLEV_HPD@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_cec_write
LBB0_16:
	mov	x0, x19
	bl	_cec_notifier_get
	str	w0, [x20, #104]
	cbz	w0, LBB0_25
; %bb.17:
	add	x24, x20, #64
	stp	x20, x19, [x20, #88]
Lloh86:
	adrp	x8, _tda998x_cec_hook_init@GOTPAGE
Lloh87:
	ldr	x8, [x8, _tda998x_cec_hook_init@GOTPAGEOFF]
Lloh88:
	adrp	x9, _tda998x_cec_hook_exit@GOTPAGE
Lloh89:
	ldr	x9, [x9, _tda998x_cec_hook_exit@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
Lloh91:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #80]
Lloh92:
	adrp	x8, _tda998x_cec_hook_open@GOTPAGE
Lloh93:
	ldr	x8, [x8, _tda998x_cec_hook_open@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
Lloh95:
	adrp	x9, _tda998x_cec_hook_release@GOTPAGE
Lloh96:
	ldr	x9, [x9, _tda998x_cec_hook_release@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #72]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #40]
Lloh98:
	adrp	x1, l_.str.8@PAGE
Lloh99:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	ldr	w8, [x20, #12]
	str	x24, [sp, #32]
	ldr	w9, [x23, #4]
	stp	w8, w9, [sp, #24]
	ldr	w0, [x23, #16]
	add	x1, sp, #24
	bl	_i2c_new_device
	str	w0, [x20, #56]
	cbz	w0, LBB0_26
; %bb.18:
	ldr	w1, [x25]
Lloh100:
	adrp	x8, _INT_FLAGS_2_EDID_BLK_RD@GOTPAGE
Lloh101:
	ldr	x8, [x8, _INT_FLAGS_2_EDID_BLK_RD@GOTPAGEOFF]
Lloh102:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_reg_set
	cbz	x22, LBB0_29
; %bb.19:
Lloh103:
	adrp	x1, l_.str.9@PAGE
Lloh104:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #20
	mov	x0, x22
	bl	_of_property_read_u32
	cbnz	w0, LBB0_21
; %bb.20:
	ldrsh	w8, [sp, #22]
	str	w8, [x20]
	ldr	w8, [sp, #20]
	asr	w9, w8, #8
	stp	w9, w8, [x20, #4]
LBB0_21:
	mov	x0, x20
	mov	x1, x22
	bl	_tda998x_get_audio_ports
	mov	x24, x0
	cbnz	w0, LBB0_28
; %bb.22:
	ldr	x8, [x20, #48]
Lloh105:
	adrp	x9, _AUDIO_ROUTE_I2S@GOTPAGE
Lloh106:
	ldr	x9, [x9, _AUDIO_ROUTE_I2S@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbnz	x9, LBB0_24
; %bb.23:
Lloh108:
	adrp	x9, _AUDIO_ROUTE_SPDIF@GOTPAGE
Lloh109:
	ldr	x9, [x9, _AUDIO_ROUTE_SPDIF@GOTPAGEOFF]
Lloh110:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_31
LBB0_24:
	mov	x0, x20
	mov	x1, x21
	bl	_tda998x_audio_codec_init
	b	LBB0_31
LBB0_25:
Lloh111:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh112:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh113:
	adrp	x8, _ENODEV@GOTPAGE
Lloh114:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_28:
	mov	x0, x19
	bl	_tda998x_destroy
	b	LBB0_14
LBB0_29:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_tda998x_set_config
	mov	x24, x0
	cbnz	w0, LBB0_28
LBB0_31:
	add	x0, x20, #24
Lloh115:
	adrp	x8, _tda998x_bridge_funcs@GOTPAGE
Lloh116:
	ldr	x8, [x8, _tda998x_bridge_funcs@GOTPAGEOFF]
	str	x8, [x20, #32]
	bl	_drm_bridge_add
	mov	w24, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh90
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh115, Lloh116
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tda998x_edid_delay_done,4,2    ; @tda998x_edid_delay_done
	.comm	_tda998x_detect_work,4,2        ; @tda998x_detect_work
	.comm	_REG_CEC_ENAMODS,4,2            ; @REG_CEC_ENAMODS
	.comm	_CEC_ENAMODS_EN_RXSENS,4,2      ; @CEC_ENAMODS_EN_RXSENS
	.comm	_CEC_ENAMODS_EN_HDMI,4,2        ; @CEC_ENAMODS_EN_HDMI
	.comm	_REG_VERSION_LSB,4,2            ; @REG_VERSION_LSB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read version: %d\n"

	.comm	_REG_VERSION_MSB,4,2            ; @REG_VERSION_MSB
l_.str.1:                               ; @.str.1
	.asciz	"found TDA9989 n2"

l_.str.2:                               ; @.str.2
	.asciz	"found TDA19989"

l_.str.3:                               ; @.str.3
	.asciz	"found TDA19989 n2"

l_.str.4:                               ; @.str.4
	.asciz	"found TDA19988"

l_.str.5:                               ; @.str.5
	.asciz	"found unsupported device: %04x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_REG_DDC_DISABLE,4,2            ; @REG_DDC_DISABLE
	.comm	_REG_TX3,4,2                    ; @REG_TX3
	.comm	_REG_I2C_MASTER,4,2             ; @REG_I2C_MASTER
	.comm	_I2C_MASTER_DIS_MM,4,2          ; @I2C_MASTER_DIS_MM
	.comm	_REG_CEC_FRO_IM_CLK_CTRL,4,2    ; @REG_CEC_FRO_IM_CLK_CTRL
	.comm	_CEC_FRO_IM_CLK_CTRL_GHOST_DIS,4,2 ; @CEC_FRO_IM_CLK_CTRL_GHOST_DIS
	.comm	_CEC_FRO_IM_CLK_CTRL_IMCLK_SEL,4,2 ; @CEC_FRO_IM_CLK_CTRL_IMCLK_SEL
	.comm	_REG_CEC_RXSHPDINTENA,4,2       ; @REG_CEC_RXSHPDINTENA
	.comm	_REG_CEC_RXSHPDINT,4,2          ; @REG_CEC_RXSHPDINT
	.comm	_REG_INT_FLAGS_0,4,2            ; @REG_INT_FLAGS_0
	.comm	_REG_INT_FLAGS_1,4,2            ; @REG_INT_FLAGS_1
	.comm	_REG_INT_FLAGS_2,4,2            ; @REG_INT_FLAGS_2
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_tda998x_irq_thread,4,2         ; @tda998x_irq_thread
l_.str.6:                               ; @.str.6
	.asciz	"tda998x"

l_.str.7:                               ; @.str.7
	.asciz	"failed to request IRQ#%u: %d\n"

	.comm	_CEC_RXSHPDLEV_HPD,4,2          ; @CEC_RXSHPDLEV_HPD
	.comm	_tda998x_cec_hook_init,4,2      ; @tda998x_cec_hook_init
	.comm	_tda998x_cec_hook_exit,4,2      ; @tda998x_cec_hook_exit
	.comm	_tda998x_cec_hook_open,4,2      ; @tda998x_cec_hook_open
	.comm	_tda998x_cec_hook_release,4,2   ; @tda998x_cec_hook_release
l_.str.8:                               ; @.str.8
	.asciz	"tda9950"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_INT_FLAGS_2_EDID_BLK_RD,4,2    ; @INT_FLAGS_2_EDID_BLK_RD
l_.str.9:                               ; @.str.9
	.asciz	"video-ports"

	.comm	_AUDIO_ROUTE_I2S,8,3            ; @AUDIO_ROUTE_I2S
	.comm	_AUDIO_ROUTE_SPDIF,8,3          ; @AUDIO_ROUTE_SPDIF
	.comm	_tda998x_bridge_funcs,4,2       ; @tda998x_bridge_funcs
	.no_dead_strip	_tda998x_create
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tda998x_create
l_switch.table.tda998x_create:
	.quad	l_.str.1
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.4

.subsections_via_symbols
