	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_destroy
_tda998x_destroy:                       ## @tda998x_destroy
	.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	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	40(%rax), %rdi
	callq	_drm_bridge_remove
	movq	_REG_CEC_RXSHPDINTENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cec_write
	movq	_REG_INT_FLAGS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_FLAGS_2_EDID_BLK_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_reg_clear
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_platform_device_unregister
LBB0_2:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_4:
	leaq	16(%rbx), %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_cancel_work_sync
	movl	8(%rbx), %edi
	callq	_i2c_unregister_device
	movq	(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	popq	%rbx
	popq	%rbp
	jmp	_cec_notifier_put               ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CEC_RXSHPDINTENA,4,2       ## @REG_CEC_RXSHPDINTENA
	.comm	_REG_INT_FLAGS_2,4,2            ## @REG_INT_FLAGS_2
	.comm	_INT_FLAGS_2_EDID_BLK_RD,4,2    ## @INT_FLAGS_2_EDID_BLK_RD
	.no_dead_strip	_tda998x_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_destroy
_tda998x_destroy:                       ; @tda998x_destroy
	.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	_dev_get_drvdata
	mov	x19, x0
	add	x0, x0, #40
	bl	_drm_bridge_remove
Lloh0:
	adrp	x8, _REG_CEC_RXSHPDINTENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CEC_RXSHPDINTENA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cec_write
Lloh3:
	adrp	x8, _REG_INT_FLAGS_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_INT_FLAGS_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _INT_FLAGS_2_EDID_BLK_RD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_FLAGS_2_EDID_BLK_RD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_clear
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_platform_device_unregister
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x19
	bl	_free_irq
LBB0_4:
	add	x0, x19, #16
	bl	_del_timer_sync
	add	x0, x19, #12
	bl	_cancel_work_sync
	ldr	w0, [x19, #8]
	bl	_i2c_unregister_device
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cec_notifier_put
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CEC_RXSHPDINTENA,4,2       ; @REG_CEC_RXSHPDINTENA
	.comm	_REG_INT_FLAGS_2,4,2            ; @REG_INT_FLAGS_2
	.comm	_INT_FLAGS_2_EDID_BLK_RD,4,2    ; @INT_FLAGS_2_EDID_BLK_RD
	.no_dead_strip	_tda998x_destroy
.subsections_via_symbols
