	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_init
_tfp410_init:                           ## @tfp410_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	_tfp410_bridge_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	(%r14), %rax
	movq	%rax, 32(%r15)
	leaq	64(%r15), %rax
	movq	%rax, 24(%r15)
	movq	%r14, 56(%r15)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tfp410_parse_timings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	callq	_tfp410_get_connector_properties
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_14:
	movl	16(%r15), %edi
	callq	_i2c_put_adapter
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_gpiod_put
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 52(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	52(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_gpiod_to_irq
	jmp	LBB0_11
LBB0_10:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	leaq	48(%r15), %rdi
	movq	_tfp410_hpd_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	(%r15), %esi
	movq	_tfp410_hpd_irq_thread@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_14
LBB0_18:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_drm_bridge_add
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device-tree data is missing\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tfp410_bridge_funcs,4,2        ## @tfp410_bridge_funcs
L_.str.1:                               ## @.str.1
	.asciz	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"failed to parse powerdown gpio\n"

	.comm	_tfp410_hpd_work_func,4,2       ## @tfp410_hpd_work_func
	.comm	_tfp410_hpd_irq_thread,4,2      ## @tfp410_hpd_irq_thread
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"hdmi-hpd"

L_.str.4:                               ## @.str.4
	.asciz	"failed to register hpd interrupt\n"

	.no_dead_strip	_tfp410_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_init
_tfp410_init:                           ; @tfp410_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x22, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	add	x8, x19, #64
	mov	x21, x19
	str	x8, [x21, #24]!
Lloh3:
	adrp	x8, _tfp410_bridge_funcs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tfp410_bridge_funcs@GOTPAGEOFF]
	ldr	x9, [x20]
	stp	x9, x8, [x19, #32]
	str	x20, [x19, #56]
	mov	x0, x19
	mov	x1, x22
	bl	_tfp410_parse_timings
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_tfp410_get_connector_properties
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_i2c_put_adapter
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_gpiod_put
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh11:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	w0, [x19, #52]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #52]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_gpiod_to_irq
	b	LBB0_15
LBB0_14:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	str	w0, [x19]
	tbnz	w0, #31, LBB0_18
; %bb.16:
	add	x0, x19, #48
Lloh21:
	adrp	x8, _tfp410_hpd_work_func@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tfp410_hpd_work_func@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	ldr	w1, [x19]
Lloh24:
	adrp	x8, _tfp410_hpd_irq_thread@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tfp410_hpd_irq_thread@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w4, w8, w9
Lloh36:
	adrp	x5, l_.str.3@PAGE
Lloh37:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_18:
	mov	x0, x21
	bl	_drm_bridge_add
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device-tree data is missing\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tfp410_bridge_funcs,4,2        ; @tfp410_bridge_funcs
l_.str.1:                               ; @.str.1
	.asciz	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"failed to parse powerdown gpio\n"

	.comm	_tfp410_hpd_work_func,4,2       ; @tfp410_hpd_work_func
	.comm	_tfp410_hpd_irq_thread,4,2      ; @tfp410_hpd_irq_thread
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"hdmi-hpd"

l_.str.4:                               ; @.str.4
	.asciz	"failed to register hpd interrupt\n"

	.no_dead_strip	_tfp410_init
.subsections_via_symbols
