	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdiod_remove
_brcmf_sdiod_remove:                    ## @brcmf_sdiod_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BRCMF_SDIOD_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_brcmf_sdio_remove
	movq	$0, 32(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_brcmf_sdiod_freezer_detach
	movq	24(%rbx), %rdi
	callq	_sdio_claim_host
	movq	24(%rbx), %rdi
	callq	_sdio_disable_func
	movq	24(%rbx), %rdi
	callq	_sdio_release_host
	movq	(%rbx), %rdi
	callq	_sdio_claim_host
	movq	(%rbx), %rdi
	callq	_sdio_disable_func
	movq	(%rbx), %rdi
	callq	_sdio_release_host
	leaq	16(%rbx), %rdi
	callq	_sg_free_table
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_allow
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_SDIOD_DOWN,4,2           ## @BRCMF_SDIOD_DOWN
	.no_dead_strip	_brcmf_sdiod_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdiod_remove
_brcmf_sdiod_remove:                    ; @brcmf_sdiod_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	x8, _BRCMF_SDIOD_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_SDIOD_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_brcmf_sdio_remove
	str	xzr, [x19, #32]
LBB0_2:
	mov	x0, x19
	bl	_brcmf_sdiod_freezer_detach
	ldr	x0, [x19, #24]
	bl	_sdio_claim_host
	ldr	x0, [x19, #24]
	bl	_sdio_disable_func
	ldr	x0, [x19, #24]
	bl	_sdio_release_host
	ldr	x0, [x19]
	bl	_sdio_claim_host
	ldr	x0, [x19]
	bl	_sdio_disable_func
	ldr	x0, [x19]
	bl	_sdio_release_host
	add	x0, x19, #16
	bl	_sg_free_table
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_pm_runtime_allow
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_SDIOD_DOWN,4,2           ; @BRCMF_SDIOD_DOWN
	.no_dead_strip	_brcmf_sdiod_remove
.subsections_via_symbols
