	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dw_hdmi_remove
___dw_hdmi_remove:                      ## @__dw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	48(%rbx), %rdi
	callq	_platform_device_unregister
LBB0_3:
	movq	40(%rbx), %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	40(%rbx), %rdi
	callq	_platform_device_unregister
LBB0_5:
	movq	_HDMI_IH_MUTE_PHY_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_hdmi_writeb
	movq	32(%rbx), %rdi
	callq	_clk_disable_unprepare
	movq	24(%rbx), %rdi
	callq	_clk_disable_unprepare
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_clk_disable_unprepare
LBB0_7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i2c_del_adapter                ## TAILCALL
LBB0_9:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i2c_put_adapter                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_IH_MUTE_PHY_STAT0,4,2     ## @HDMI_IH_MUTE_PHY_STAT0
	.no_dead_strip	___dw_hdmi_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dw_hdmi_remove
___dw_hdmi_remove:                      ; @__dw_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	x19, x0
	ldr	x0, [x0, #48]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_IS_ERR
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #48]
	bl	_platform_device_unregister
LBB0_3:
	ldr	x0, [x19, #40]
	bl	_IS_ERR
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #40]
	bl	_platform_device_unregister
LBB0_5:
Lloh0:
	adrp	x8, _HDMI_IH_MUTE_PHY_STAT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_IH_MUTE_PHY_STAT0@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_hdmi_writeb
	ldr	x0, [x19, #32]
	bl	_clk_disable_unprepare
	ldr	x0, [x19, #24]
	bl	_clk_disable_unprepare
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_clk_disable_unprepare
LBB0_7:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_del_adapter
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_put_adapter
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_IH_MUTE_PHY_STAT0,4,2     ; @HDMI_IH_MUTE_PHY_STAT0
	.no_dead_strip	___dw_hdmi_remove
.subsections_via_symbols
