	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_remove
_if_sdio_remove:                        ## @if_sdio_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_sdio_get_drvdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	_user_rmmod@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_MODEL_8688@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	L_.str(%rip), %rdi
	callq	_lbs_deb_sdio
	movl	28(%rbx), %edi
	movq	_CMD_FUNC_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_lbs_cmd_copyback@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdx
	movl	$4, %ecx
	movq	%r14, %r9
	callq	___lbs_cmd
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_alert
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_lbs_deb_sdio
	movl	28(%rbx), %edi
	callq	_lbs_stop_card
	movl	28(%rbx), %edi
	callq	_lbs_remove_card
	movl	24(%rbx), %edi
	callq	_destroy_workqueue
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdi), %rax
	movq	%rax, 16(%rbx)
	callq	_kfree
	jmp	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_user_rmmod,8,3                 ## @user_rmmod
	.comm	_MODEL_8688,8,3                 ## @MODEL_8688
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send function SHUTDOWN command\n"

	.comm	_CMD_FUNC_SHUTDOWN,4,2          ## @CMD_FUNC_SHUTDOWN
	.comm	_lbs_cmd_copyback,4,2           ## @lbs_cmd_copyback
L_.str.1:                               ## @.str.1
	.asciz	"CMD_FUNC_SHUTDOWN cmd failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"call remove card\n"

	.no_dead_strip	_if_sdio_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_remove
_if_sdio_remove:                        ; @if_sdio_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	bl	_sdio_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_pm_runtime_get_noresume
Lloh0:
	adrp	x8, _user_rmmod@GOTPAGE
Lloh1:
	ldr	x8, [x8, _user_rmmod@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MODEL_8688@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MODEL_8688@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_sdio
	ldr	w0, [x19, #28]
Lloh8:
	adrp	x8, _CMD_FUNC_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_FUNC_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _lbs_cmd_copyback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lbs_cmd_copyback@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x2, sp, #8
	add	x5, sp, #8
	mov	w3, #4
	bl	___lbs_cmd
	cbz	x0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_alert
LBB0_4:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_sdio
	ldr	w0, [x19, #28]
	bl	_lbs_stop_card
	ldr	w0, [x19, #28]
	bl	_lbs_remove_card
	ldr	w0, [x19, #24]
	bl	_destroy_workqueue
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	str	x8, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_kfree
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_user_rmmod,8,3                 ; @user_rmmod
	.comm	_MODEL_8688,8,3                 ; @MODEL_8688
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send function SHUTDOWN command\n"

	.comm	_CMD_FUNC_SHUTDOWN,4,2          ; @CMD_FUNC_SHUTDOWN
	.comm	_lbs_cmd_copyback,4,2           ; @lbs_cmd_copyback
l_.str.1:                               ; @.str.1
	.asciz	"CMD_FUNC_SHUTDOWN cmd failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"call remove card\n"

	.no_dead_strip	_if_sdio_remove
.subsections_via_symbols
