	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_spi_remove
_cxd2880_spi_remove:                    ## @cxd2880_spi_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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	leaq	28(%rax), %rsi
	movq	%r14, %rdi
	callq	*16(%rax)
	leaq	24(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r14, %rdi
	callq	_dvb_dmx_release
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_dvb_unregister_frontend
	movq	%r14, %rdi
	callq	_dvb_frontend_detach
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_dvb_unregister_adapter
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_regulator_disable
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"cxd2880_spi remove ok.\n"

	.no_dead_strip	_cxd2880_spi_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_spi_remove
_cxd2880_spi_remove:                    ; @cxd2880_spi_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
	cbz	x0, LBB0_5
; %bb.1:
	bl	_dev_get_drvdata
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #16]!
	add	x1, x0, #28
	mov	x0, x20
	blr	x8
	add	x0, x19, #24
	bl	_dvb_dmxdev_release
	mov	x0, x20
	bl	_dvb_dmx_release
	add	x20, x19, #12
	mov	x0, x20
	bl	_dvb_unregister_frontend
	mov	x0, x20
	bl	_dvb_frontend_detach
	add	x0, x19, #8
	bl	_dvb_unregister_adapter
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_regulator_disable
LBB0_4:
	mov	x0, x19
	bl	_kfree
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_pr_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"cxd2880_spi remove ok.\n"

	.no_dead_strip	_cxd2880_spi_remove
.subsections_via_symbols
