	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_ops_sdio_remove
_brcmf_ops_sdio_remove:                 ## @brcmf_ops_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SDIO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leaq	4(%rbx), %rdi
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	16(%rax), %r15
	movq	%r15, %rdi
	callq	_brcmf_sdiod_intr_unregister
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_brcmf_sdiod_remove
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	(%r15), %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_dbg                      ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDIO,4,2                       ## @SDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

L_.str.1:                               ## @.str.1
	.asciz	"sdio vendor ID: 0x%04x\n"

L_.str.2:                               ## @.str.2
	.asciz	"sdio device ID: 0x%04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Function: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_ops_sdio_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_ops_sdio_remove
_brcmf_ops_sdio_remove:                 ; @brcmf_ops_sdio_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _SDIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDIO@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x22]
	ldr	w8, [x19, #12]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x22]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x22]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
	add	x0, x19, #4
	bl	_dev_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_brcmf_sdiod_intr_unregister
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_brcmf_sdiod_remove
	ldr	x0, [x21, #8]
	mov	x1, #0
	bl	_dev_set_drvdata
	ldr	x0, [x21]
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	bl	_kfree
LBB0_3:
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_brcmf_dbg
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDIO,4,2                       ; @SDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

l_.str.1:                               ; @.str.1
	.asciz	"sdio vendor ID: 0x%04x\n"

l_.str.2:                               ; @.str.2
	.asciz	"sdio device ID: 0x%04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Function: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_ops_sdio_remove
.subsections_via_symbols
