	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_sdio_remove              ## -- Begin function brcmf_sdio_remove
	.p2align	4, 0x90
_brcmf_sdio_remove:                     ## @brcmf_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_TRACE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	48(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	callq	_send_sig
	movq	48(%rbx), %rdi
	callq	_kthread_stop
	movq	$0, 48(%rbx)
LBB0_3:
	movq	16(%rbx), %rdi
	callq	_brcmf_sdiod_intr_unregister
	movq	16(%rbx), %rax
	movl	20(%rax), %edi
	callq	_brcmf_detach
	leaq	40(%rbx), %rdi
	callq	_cancel_work_sync
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_destroy_workqueue
LBB0_5:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	_BRCMF_SDIOD_NOMEDIUM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movl	16(%rax), %edi
	callq	_sdio_claim_host
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_brcmf_sdio_wd_timer
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdio_clkctl
	movl	$20, %edi
	callq	_msleep
	movq	24(%rbx), %rdi
	callq	_brcmf_chip_set_passive
	movq	_CLK_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdio_clkctl
	movq	16(%rbx), %rax
	movl	16(%rax), %edi
	callq	_sdio_release_host
	movq	24(%rbx), %rdi
LBB0_8:
	callq	_brcmf_chip_detach
LBB0_9:
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_brcmf_release_module_param
LBB0_11:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_12:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_brcmf_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_BRCMF_SDIOD_NOMEDIUM,8,3       ## @BRCMF_SDIOD_NOMEDIUM
	.comm	_CLK_AVAIL,4,2                  ## @CLK_AVAIL
	.comm	_CLK_NONE,4,2                   ## @CLK_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Disconnected\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_sdio_remove              ; -- Begin function brcmf_sdio_remove
	.p2align	2
_brcmf_sdio_remove:                     ; @brcmf_sdio_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
	mov	x19, x0
Lloh0:
	adrp	x20, _TRACE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TRACE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cbz	x19, LBB0_12
; %bb.1:
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w2, #1
	bl	_send_sig
	ldr	x0, [x19, #48]
	bl	_kthread_stop
	str	xzr, [x19, #48]
LBB0_3:
	ldr	x0, [x19, #16]
	bl	_brcmf_sdiod_intr_unregister
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #20]
	bl	_brcmf_detach
	add	x0, x19, #40
	bl	_cancel_work_sync
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_destroy_workqueue
LBB0_5:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
Lloh7:
	adrp	x10, _BRCMF_SDIOD_NOMEDIUM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _BRCMF_SDIOD_NOMEDIUM@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x8, #16]
	bl	_sdio_claim_host
	mov	x0, x19
	mov	w1, #0
	bl	_brcmf_sdio_wd_timer
Lloh10:
	adrp	x8, _CLK_AVAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CLK_AVAIL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_brcmf_sdio_clkctl
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #24]
	bl	_brcmf_chip_set_passive
Lloh13:
	adrp	x8, _CLK_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CLK_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_brcmf_sdio_clkctl
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #16]
	bl	_sdio_release_host
	ldr	x0, [x19, #24]
LBB0_8:
	bl	_brcmf_chip_detach
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_brcmf_release_module_param
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_kfree
	ldr	x0, [x19]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_12:
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_brcmf_dbg
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_BRCMF_SDIOD_NOMEDIUM,8,3       ; @BRCMF_SDIOD_NOMEDIUM
	.comm	_CLK_AVAIL,4,2                  ; @CLK_AVAIL
	.comm	_CLK_NONE,4,2                   ; @CLK_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Disconnected\n"

.subsections_via_symbols
