	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc8610_hpcd_remove
_mpc8610_hpcd_remove:                   ## @mpc8610_hpcd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	%rax, %rdi
	callq	_platform_device_unregister
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_fsl_ssi_destroy_dai
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_iounmap
LBB0_4:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_iounmap
	movq	16(%rbx), %rax
LBB0_6:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_iounmap
LBB0_8:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_irq_dispose_mapping
	movq	8(%rbx), %rax
LBB0_10:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_irq_dispose_mapping
LBB0_12:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_iounmap
LBB0_14:
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mpc8610_hpcd_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc8610_hpcd_remove
_mpc8610_hpcd_remove:                   ; @mpc8610_hpcd_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0]
	bl	_platform_device_unregister
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_fsl_ssi_destroy_dai
LBB0_2:
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_iounmap
LBB0_4:
	ldr	x8, [x21, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_iounmap
	ldr	x8, [x21, #16]
LBB0_6:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_iounmap
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_irq_dispose_mapping
	ldr	x8, [x21, #8]
LBB0_10:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_irq_dispose_mapping
LBB0_12:
	ldr	x0, [x21]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_iounmap
LBB0_14:
	mov	x0, x21
	bl	_kfree
	str	xzr, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mpc8610_hpcd_remove
.subsections_via_symbols
