	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_probe
_tc_probe:                              ## @tc_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, %r14
	leaq	4(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	%r12, 56(%rax)
	movl	(%r12), %edi
	leaq	96(%rax), %rcx
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_drm_of_find_panel_or_bridge
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_10
LBB0_3:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 88(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	88(%r15), %rdi
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
LBB0_6:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 80(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	80(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 72(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	72(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	movq	_tc_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 64(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	64(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_17:
	movq	%r12, %rdi
LBB0_18:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_20:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_24
LBB0_22:
	cmpl	$2, (%r15)
	jb	LBB0_24
## %bb.23:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_24:
	cmpl	$0, (%r14)
	jle	LBB0_29
## %bb.25:
	movq	64(%r15), %rdi
	movq	_INTCTL_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %esi
	movq	_tc_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.7(%rip), %r9
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_28
## %bb.26:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_27:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_28:
	movl	$1, 4(%r15)
LBB0_29:
	movq	64(%r15), %rdi
	movq	_TC_IDREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r15), %r12
	movq	%r12, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %ebx
	movq	56(%r15), %rdi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_18
LBB0_31:
	movl	(%r12), %edx
	movl	%edx, %eax
	orl	$2, %eax
	cmpl	$26115, %eax                    ## imm = 0x6603
	jne	LBB0_37
## %bb.32:
	xorl	%eax, %eax
	cmpl	$26113, %edx                    ## imm = 0x6601
	sete	%al
	movl	%eax, 12(%r15)
	cmpq	$0, 80(%r15)
	jne	LBB0_34
## %bb.33:
	movq	_ENBLCD0@GOTPCREL(%rip), %rax
	movq	_ENBBM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	64(%r15), %rdi
	movq	_ENBDSIRX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_SYSRSTENB@GOTPCREL(%rip), %r12
	movq	_ENBREG@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	movl	(%r12), %esi
	movq	_ENBHDCP@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	64(%r15), %rdi
	movl	(%r12), %esi
	movq	_ENBBM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ENBLCD0@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ENBDSIRX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	(%rbx), %ecx
	orl	(%r13), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
LBB0_34:
	movl	(%r15), %edi
	testl	%edi, %edi
	js	LBB0_41
## %bb.35:
	jne	LBB0_38
## %bb.36:
	movq	_INT_GP0_LCNT@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_37:
	movq	56(%r15), %rdi
	leaq	L_.str.10(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_38:
	movq	_INT_GP1_LCNT@GOTPCREL(%rip), %rax
LBB0_39:
	movl	(%rax), %ebx
	callq	_INT_GPIO_H
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_INT_GPIO_LC
	movl	%eax, %r13d
	movq	64(%r15), %r12
	movq	72(%r15), %rdi
	callq	_clk_get_rate
	cltq
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$37, %rdx
	addl	%eax, %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_regmap_write
	movq	64(%r15), %r12
	movq	_GPIOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	cmpl	$0, 4(%r15)
	je	LBB0_41
## %bb.40:
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	64(%r15), %rdi
	movq	_INTCTL_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	movl	%r13d, %ecx
	callq	_regmap_update_bits
LBB0_41:
	movq	%r15, %rdi
	callq	_tc_aux_link_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.42:
	leaq	32(%r15), %rdi
	leaq	L_.str.11(%rip), %rax
	movq	%rax, 32(%r15)
	movq	56(%r15), %rax
	movq	%rax, 48(%r15)
	movq	_tc_aux_transfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	callq	_drm_dp_aux_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.43:
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	_tc_bridge_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movl	4(%r14), %eax
	movl	%eax, 16(%r15)
	callq	_drm_bridge_add
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shutdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"ref"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get refclk: %d\n"

	.comm	_tc_regmap_config,4,2           ## @tc_regmap_config
L_.str.4:                               ## @.str.4
	.asciz	"Failed to initialize regmap: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"toshiba,hpd-pin"

L_.str.6:                               ## @.str.6
	.asciz	"failed to parse HPD number\n"

	.comm	_INTCTL_G,4,2                   ## @INTCTL_G
	.comm	_INT_SYSERR,4,2                 ## @INT_SYSERR
	.comm	_tc_irq_handler,4,2             ## @tc_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.7:                               ## @.str.7
	.asciz	"tc358767-irq"

L_.str.8:                               ## @.str.8
	.asciz	"failed to register dp interrupt\n"

	.comm	_TC_IDREG,4,2                   ## @TC_IDREG
L_.str.9:                               ## @.str.9
	.asciz	"can not read device ID: %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"invalid device ID: 0x%08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SYSRSTENB,4,2                  ## @SYSRSTENB
	.comm	_ENBLCD0,4,2                    ## @ENBLCD0
	.comm	_ENBBM,4,2                      ## @ENBBM
	.comm	_ENBDSIRX,4,2                   ## @ENBDSIRX
	.comm	_ENBREG,4,2                     ## @ENBREG
	.comm	_ENBHDCP,4,2                    ## @ENBHDCP
	.comm	_INT_GP0_LCNT,4,2               ## @INT_GP0_LCNT
	.comm	_INT_GP1_LCNT,4,2               ## @INT_GP1_LCNT
	.comm	_GPIOM,4,2                      ## @GPIOM
L_.str.11:                              ## @.str.11
	.asciz	"TC358767 AUX i2c adapter"

	.comm	_tc_aux_transfer,4,2            ## @tc_aux_transfer
	.comm	_tc_bridge_funcs,4,2            ## @tc_bridge_funcs
	.no_dead_strip	_tc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_probe
_tc_probe:                              ; @tc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	add	x21, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #56]
	ldr	w0, [x21]
	add	x3, x20, #96
	mov	w1, #2
	mov	w2, #0
	mov	x4, #0
	bl	_drm_of_find_panel_or_bridge
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #88]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #88]
	cbnz	x8, LBB0_7
; %bb.4:
	cbz	x0, LBB0_6
; %bb.5:
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
LBB0_6:
Lloh11:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #80]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #80]
	cbz	x8, LBB0_11
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	cbz	x0, LBB0_13
; %bb.12:
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
LBB0_13:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x0, [x20, #72]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x21
	bl	_dev_err
	b	LBB0_10
LBB0_16:
Lloh22:
	adrp	x1, _tc_regmap_config@GOTPAGE
Lloh23:
	ldr	x1, [x1, _tc_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x0, [x20, #64]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
LBB0_18:
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_10
LBB0_19:
	ldr	w0, [x21]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_21
; %bb.20:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20]
	b	LBB0_23
LBB0_21:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lo	LBB0_23
; %bb.22:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	w22, #0
	b	LBB0_10
LBB0_23:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.24:
	ldr	x0, [x20, #64]
Lloh33:
	adrp	x8, _INTCTL_G@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INTCTL_G@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _INT_SYSERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _INT_SYSERR@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_regmap_write
	ldr	w1, [x19]
Lloh39:
	adrp	x8, _tc_irq_handler@GOTPAGE
Lloh40:
	ldr	x8, [x8, _tc_irq_handler@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
Lloh42:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh44:
	ldr	w4, [x8]
Lloh45:
	adrp	x5, l_.str.7@PAGE
Lloh46:
	add	x5, x5, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_26
; %bb.25:
	mov	x22, x0
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_15
LBB0_26:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_27:
	ldr	x0, [x20, #64]
Lloh49:
	adrp	x8, _TC_IDREG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TC_IDREG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	add	x21, x20, #8
	mov	x2, x21
	bl	_regmap_read
	cbz	w0, LBB0_29
; %bb.28:
	mov	x22, x0
	ldr	x0, [x20, #56]
	str	x22, [sp]
Lloh52:
	adrp	x1, l_.str.9@PAGE
Lloh53:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_18
LBB0_29:
	ldr	w8, [x21]
	orr	w9, w8, #0x2
	mov	w10, #26115
	cmp	w9, w10
	b.ne	LBB0_38
; %bb.30:
	mov	w9, #26113
	cmp	w8, w9
	cset	w8, eq
	str	w8, [x20, #12]
	ldr	x8, [x20, #80]
	cbnz	x8, LBB0_32
; %bb.31:
	ldr	x0, [x20, #64]
Lloh54:
	adrp	x21, _SYSRSTENB@GOTPAGE
Lloh55:
	ldr	x21, [x21, _SYSRSTENB@GOTPAGEOFF]
Lloh56:
	adrp	x22, _ENBLCD0@GOTPAGE
Lloh57:
	ldr	x22, [x22, _ENBLCD0@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x22]
Lloh58:
	adrp	x23, _ENBBM@GOTPAGE
Lloh59:
	ldr	x23, [x23, _ENBBM@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh60:
	adrp	x24, _ENBDSIRX@GOTPAGE
Lloh61:
	ldr	x24, [x24, _ENBDSIRX@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh62:
	adrp	x25, _ENBREG@GOTPAGE
Lloh63:
	ldr	x25, [x25, _ENBREG@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh64:
	adrp	x26, _ENBHDCP@GOTPAGE
Lloh65:
	ldr	x26, [x26, _ENBHDCP@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w8, w9
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	x0, [x20, #64]
	ldr	w1, [x21]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w2, w8, w9
	mov	x3, x2
	bl	_regmap_update_bits
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
LBB0_32:
	ldr	w0, [x20]
	tbnz	w0, #31, LBB0_35
; %bb.33:
Lloh66:
	adrp	x8, _INT_GP0_LCNT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _INT_GP0_LCNT@GOTPAGEOFF]
Lloh68:
	adrp	x9, _INT_GP1_LCNT@GOTPAGE
Lloh69:
	ldr	x9, [x9, _INT_GP1_LCNT@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
	bl	_INT_GPIO_H
	mov	x21, x0
	ldr	w0, [x20]
	bl	_INT_GPIO_LC
	mov	x22, x0
	ldp	x24, x0, [x20, #64]
	bl	_clk_get_rate
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w2, w8, w9
	mov	x0, x24
	mov	x1, x23
	bl	_regmap_write
	ldr	x23, [x20, #64]
Lloh70:
	adrp	x8, _GPIOM@GOTPAGE
Lloh71:
	ldr	x8, [x8, _GPIOM@GOTPAGEOFF]
Lloh72:
	ldr	w24, [x8]
	ldr	w0, [x20]
	bl	_BIT
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_regmap_write
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_35
; %bb.34:
	orr	w2, w22, w21
	ldr	x0, [x20, #64]
Lloh73:
	adrp	x8, _INTCTL_G@GOTPAGE
Lloh74:
	ldr	x8, [x8, _INTCTL_G@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_35:
	mov	x0, x20
	bl	_tc_aux_link_setup
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.36:
Lloh76:
	adrp	x8, l_.str.11@PAGE
Lloh77:
	add	x8, x8, l_.str.11@PAGEOFF
	mov	x0, x20
	str	x8, [x0, #32]!
	ldr	x8, [x0, #24]
	str	x8, [x0, #16]
Lloh78:
	adrp	x8, _tc_aux_transfer@GOTPAGE
Lloh79:
	ldr	x8, [x8, _tc_aux_transfer@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	bl	_drm_dp_aux_register
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.37:
Lloh81:
	adrp	x8, _tc_bridge_funcs@GOTPAGE
Lloh82:
	ldr	x8, [x8, _tc_bridge_funcs@GOTPAGEOFF]
	str	x8, [x20, #24]
	ldr	w8, [x19, #4]
	mov	x0, x20
	str	w8, [x0, #16]!
	bl	_drm_bridge_add
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	b	LBB0_10
LBB0_38:
	ldr	x0, [x20, #56]
	str	x8, [sp]
Lloh83:
	adrp	x1, l_.str.10@PAGE
Lloh84:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_err
Lloh85:
	adrp	x8, _EINVAL@GOTPAGE
Lloh86:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shutdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"ref"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get refclk: %d\n"

	.comm	_tc_regmap_config,4,2           ; @tc_regmap_config
l_.str.4:                               ; @.str.4
	.asciz	"Failed to initialize regmap: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"toshiba,hpd-pin"

l_.str.6:                               ; @.str.6
	.asciz	"failed to parse HPD number\n"

	.comm	_INTCTL_G,4,2                   ; @INTCTL_G
	.comm	_INT_SYSERR,4,2                 ; @INT_SYSERR
	.comm	_tc_irq_handler,4,2             ; @tc_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.7:                               ; @.str.7
	.asciz	"tc358767-irq"

l_.str.8:                               ; @.str.8
	.asciz	"failed to register dp interrupt\n"

	.comm	_TC_IDREG,4,2                   ; @TC_IDREG
l_.str.9:                               ; @.str.9
	.asciz	"can not read device ID: %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"invalid device ID: 0x%08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SYSRSTENB,4,2                  ; @SYSRSTENB
	.comm	_ENBLCD0,4,2                    ; @ENBLCD0
	.comm	_ENBBM,4,2                      ; @ENBBM
	.comm	_ENBDSIRX,4,2                   ; @ENBDSIRX
	.comm	_ENBREG,4,2                     ; @ENBREG
	.comm	_ENBHDCP,4,2                    ; @ENBHDCP
	.comm	_INT_GP0_LCNT,4,2               ; @INT_GP0_LCNT
	.comm	_INT_GP1_LCNT,4,2               ; @INT_GP1_LCNT
	.comm	_GPIOM,4,2                      ; @GPIOM
l_.str.11:                              ; @.str.11
	.asciz	"TC358767 AUX i2c adapter"

	.comm	_tc_aux_transfer,4,2            ; @tc_aux_transfer
	.comm	_tc_bridge_funcs,4,2            ; @tc_bridge_funcs
	.no_dead_strip	_tc_probe
.subsections_via_symbols
