	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_remove
_hdmi_remove:                           ## @hdmi_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	44(%rax), %rdi
	callq	_cancel_delayed_work_sync
	movl	36(%rbx), %edi
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_notifier_set_phys_addr
	movq	_hdmi_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_del
	movl	40(%rbx), %edi
	callq	_platform_device_unregister
	movl	36(%rbx), %edi
	callq	_cec_notifier_put
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movl	32(%rbx), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	callq	_regulator_disable
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_put_device
LBB0_4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_iounmap
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_put_device
	movq	%rbx, %rdi
	callq	_mutex_destroy
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ## @CEC_PHYS_ADDR_INVALID
	.comm	_hdmi_component_ops,4,2         ## @hdmi_component_ops
	.no_dead_strip	_hdmi_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_remove
_hdmi_remove:                           ; @hdmi_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	add	x0, x0, #44
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19, #36]
Lloh0:
	adrp	x8, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cec_notifier_set_phys_addr
Lloh3:
	adrp	x1, _hdmi_component_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _hdmi_component_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_component_del
	ldr	w0, [x19, #40]
	bl	_platform_device_unregister
	ldr	w0, [x19, #36]
	bl	_cec_notifier_put
	mov	x0, x20
	bl	_pm_runtime_disable
	ldr	w0, [x19, #32]
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_3
LBB0_2:
	bl	_put_device
LBB0_3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_iounmap
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_put_device
	mov	x0, x19
	bl	_mutex_destroy
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_regulator_disable
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ; @CEC_PHYS_ADDR_INVALID
	.comm	_hdmi_component_ops,4,2         ; @hdmi_component_ops
	.no_dead_strip	_hdmi_remove
.subsections_via_symbols
