	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_remove
_adv7511_remove:                        ## @adv7511_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
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_ADV7533@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_adv7533_detach_dsi
LBB0_2:
	movl	32(%rbx), %edi
	callq	_i2c_unregister_device
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_clk_disable_unprepare
LBB0_4:
	movq	%rbx, %rdi
	callq	_adv7511_uninit_regulators
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_drm_bridge_remove
	movq	%rbx, %rdi
	callq	_adv7511_audio_exit
	movl	16(%rbx), %edi
	callq	_cec_unregister_adapter
	movl	12(%rbx), %edi
	callq	_i2c_unregister_device
	movl	8(%rbx), %edi
	callq	_i2c_unregister_device
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7533,8,3                    ## @ADV7533
	.no_dead_strip	_adv7511_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_remove
_adv7511_remove:                        ; @adv7511_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
	bl	_i2c_get_clientdata
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ADV7533@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7533@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_adv7533_detach_dsi
LBB0_2:
	ldr	w0, [x19, #32]
	bl	_i2c_unregister_device
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_clk_disable_unprepare
LBB0_4:
	mov	x0, x19
	bl	_adv7511_uninit_regulators
	add	x0, x19, #20
	bl	_drm_bridge_remove
	mov	x0, x19
	bl	_adv7511_audio_exit
	ldr	w0, [x19, #16]
	bl	_cec_unregister_adapter
	ldr	w0, [x19, #12]
	bl	_i2c_unregister_device
	ldr	w0, [x19, #8]
	bl	_i2c_unregister_device
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7533,8,3                    ; @ADV7533
	.no_dead_strip	_adv7511_remove
.subsections_via_symbols
