	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inno_hdmi_bind
_inno_hdmi_bind:                        ## @inno_hdmi_bind
	.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	%rdx, %r12
	movq	%rdi, %rbx
	callq	_to_platform_device
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, 40(%rax)
	movq	%r12, 56(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	48(%r14), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	40(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	40(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	(%r14), %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	(%r14), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movq	40(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_17
LBB0_9:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_inno_hdmi_reset
	movq	%r14, %rdi
	callq	_inno_hdmi_i2c_adapter
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	$0, 8(%r14)
	jmp	LBB0_16
LBB0_12:
	movq	(%r14), %rdi
	callq	_clk_get_rate
	movl	%eax, 32(%r14)
	movq	%r14, %rdi
	callq	_inno_hdmi_i2c_init
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_inno_hdmi_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_13
LBB0_15:
	movq	8(%r14), %rdi
	callq	_i2c_put_adapter
	movl	%r12d, %r15d
LBB0_16:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_17
LBB0_13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	_HDMI_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_m_MASK_INT_HOTPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$1, %edi
	callq	_v_MASK_INT_HOTPLUG
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_hdmi_modb
	movq	_inno_hdmi_hardirq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_inno_hdmi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_17
## %bb.14:
	movl	%eax, %r12d
	leaq	24(%r14), %rdi
	movq	24(%r14), %rax
	callq	*(%rax)
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	16(%r14), %rax
	callq	*(%rax)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pclk"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to get HDMI pclk clk\n"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot enable HDMI pclk clock: %d\n"

	.comm	_HDMI_STATUS,4,2                ## @HDMI_STATUS
	.comm	_m_MASK_INT_HOTPLUG,4,2         ## @m_MASK_INT_HOTPLUG
	.comm	_inno_hdmi_hardirq,4,2          ## @inno_hdmi_hardirq
	.comm	_inno_hdmi_irq,4,2              ## @inno_hdmi_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_inno_hdmi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inno_hdmi_bind
_inno_hdmi_bind:                        ; @inno_hdmi_bind
	.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, x2
	mov	x20, x0
	bl	_to_platform_device
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #40]
	str	x22, [x0, #56]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #48]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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_5:
	ldr	x0, [x19, #40]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x19, #40]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
	ldr	x0, [x19]
LBB0_7:
	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
	b	_PTR_ERR
LBB0_8:
	ldr	x0, [x19]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	x0, [x19, #40]
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_4
LBB0_10:
	mov	x0, x23
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_inno_hdmi_reset
	mov	x0, x19
	bl	_inno_hdmi_i2c_adapter
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	str	xzr, [x19, #8]
	b	LBB0_15
LBB0_13:
	ldr	x0, [x19]
	bl	_clk_get_rate
	str	w0, [x19, #32]
	mov	x0, x19
	bl	_inno_hdmi_i2c_init
	mov	x0, x22
	mov	x1, x19
	bl	_inno_hdmi_register
	mov	x22, x0
	cbz	w0, LBB0_16
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_i2c_put_adapter
	mov	x21, x22
LBB0_15:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_4
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
Lloh15:
	adrp	x8, _HDMI_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _m_MASK_INT_HOTPLUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _m_MASK_INT_HOTPLUG@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	mov	w0, #1
	bl	_v_MASK_INT_HOTPLUG
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_hdmi_modb
Lloh21:
	adrp	x8, _inno_hdmi_hardirq@GOTPAGE
Lloh22:
	ldr	x8, [x8, _inno_hdmi_hardirq@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _inno_hdmi_irq@GOTPAGE
Lloh25:
	ldr	x8, [x8, _inno_hdmi_irq@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
Lloh27:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh29:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x5, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x6, x19
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	w21, #0
	b	LBB0_4
LBB0_18:
	mov	x22, x0
	mov	x0, x19
	ldr	x8, [x0, #24]!
	ldr	x8, [x8]
	blr	x8
	mov	x0, x19
	ldr	x8, [x0, #16]!
	ldr	x8, [x8]
	blr	x8
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pclk"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to get HDMI pclk clk\n"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot enable HDMI pclk clock: %d\n"

	.comm	_HDMI_STATUS,4,2                ; @HDMI_STATUS
	.comm	_m_MASK_INT_HOTPLUG,4,2         ; @m_MASK_INT_HOTPLUG
	.comm	_inno_hdmi_hardirq,4,2          ; @inno_hdmi_hardirq
	.comm	_inno_hdmi_irq,4,2              ; @inno_hdmi_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_inno_hdmi_bind
.subsections_via_symbols
