	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_bus_stop
_brcmf_sdio_bus_stop:                   ## @brcmf_sdio_bus_stop
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	(%rax), %r14
	movq	16(%r14), %r13
	movq	72(%r13), %rbx
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	64(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	callq	_send_sig
	movq	64(%r13), %rdi
	callq	_kthread_stop
	movq	$0, 64(%r13)
LBB0_2:
	movq	(%r14), %rax
	movq	_BRCMF_SDIOD_NOMEDIUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.3:
	movl	8(%r14), %edi
	callq	_sdio_claim_host
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_brcmf_sdio_bus_sleep
	movq	(%rbx), %r15
	movq	_hostintmask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SD_REG
	addq	%rax, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brcmf_sdiod_writel
	movq	56(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 56(%r13)
	movq	_SBSDIO_FUNC1_CHIPCLKCSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_sdiod_readb
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	jne	LBB0_8
## %bb.4:
	movl	%eax, %r12d
	movl	48(%r13), %edi
	callq	_brcmf_chip_is_ulp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_SBSDIO_FORCE_HT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_SBSDIO_HT_AVAIL_REQ@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r12d
	movl	(%r15), %esi
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_brcmf_sdiod_writeb
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
LBB0_9:
	movq	_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_brcmf_dbg
	movl	12(%r14), %edi
	callq	_sdio_disable_func
	movq	(%rbx), %r12
	movq	_intstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SD_REG
	addq	%rax, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_brcmf_sdiod_writel
	movl	8(%r14), %edi
	callq	_sdio_release_host
LBB0_10:
	leaq	44(%r13), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brcmu_pktq_flush
	movl	40(%r13), %edi
	callq	_brcmu_pkt_buf_free_skb
	movq	%r13, %rdi
	callq	_brcmf_sdio_free_glom
	leaq	24(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	$0, 32(%r13)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r13, %rdi
	callq	_brcmf_sdio_dcmd_resp_wake
	movl	$0, (%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_hostintmask,4,2                ## @hostintmask
	.comm	_SBSDIO_FUNC1_CHIPCLKCSR,4,2    ## @SBSDIO_FUNC1_CHIPCLKCSR
	.comm	_SBSDIO_HT_AVAIL_REQ,4,2        ## @SBSDIO_HT_AVAIL_REQ
	.comm	_SBSDIO_FORCE_HT,4,2            ## @SBSDIO_FORCE_HT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to force clock for F2: err %d\n"

	.comm	_INTR,4,2                       ## @INTR
L_.str.2:                               ## @.str.2
	.asciz	"disable SDIO interrupts\n"

	.comm	_intstatus,4,2                  ## @intstatus
	.no_dead_strip	_brcmf_sdio_bus_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_bus_stop
_brcmf_sdio_bus_stop:                   ; @brcmf_sdio_bus_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	ldr	x19, [x20, #16]
	ldr	x23, [x19, #72]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x1, [x19, #64]
	cbz	x1, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w2, #1
	bl	_send_sig
	ldr	x0, [x19, #64]
	bl	_kthread_stop
	str	xzr, [x19, #64]
LBB0_2:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _BRCMF_SDIOD_NOMEDIUM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRCMF_SDIOD_NOMEDIUM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_sdio_claim_host
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_brcmf_sdio_bus_sleep
	ldr	x21, [x23]
Lloh11:
	adrp	x8, _hostintmask@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hostintmask@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_SD_REG
	add	x1, x0, x21
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_brcmf_sdiod_writel
	ldr	x21, [x19, #56]
	str	xzr, [x19, #56]
Lloh14:
	adrp	x24, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_readb
	ldr	w1, [sp, #12]
	cbnz	w1, LBB0_5
; %bb.4:
	mov	x22, x0
	ldr	w0, [x19, #48]
	bl	_brcmf_chip_is_ulp
Lloh16:
	adrp	x8, _SBSDIO_HT_AVAIL_REQ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SBSDIO_HT_AVAIL_REQ@GOTPAGEOFF]
Lloh18:
	adrp	x9, _SBSDIO_FORCE_HT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SBSDIO_FORCE_HT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	orr	w2, w8, w22
	ldr	w1, [x24]
	add	x3, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_writeb
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_6
LBB0_5:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
LBB0_6:
Lloh22:
	adrp	x8, _INTR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INTR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x20, #12]
	bl	_sdio_disable_func
	ldr	x22, [x23]
Lloh27:
	adrp	x8, _intstatus@GOTPAGE
Lloh28:
	ldr	x8, [x8, _intstatus@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_SD_REG
	add	x1, x0, x22
	mov	x0, x20
	mov	x2, x21
	mov	x3, #0
	bl	_brcmf_sdiod_writel
	ldr	w0, [x20, #8]
	bl	_sdio_release_host
LBB0_7:
	add	x0, x19, #44
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_brcmu_pktq_flush
	ldr	w0, [x19, #40]
	bl	_brcmu_pkt_buf_free_skb
	mov	x0, x19
	bl	_brcmf_sdio_free_glom
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_bh
	str	xzr, [x19, #32]
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_brcmf_sdio_dcmd_resp_wake
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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	_hostintmask,4,2                ; @hostintmask
	.comm	_SBSDIO_FUNC1_CHIPCLKCSR,4,2    ; @SBSDIO_FUNC1_CHIPCLKCSR
	.comm	_SBSDIO_HT_AVAIL_REQ,4,2        ; @SBSDIO_HT_AVAIL_REQ
	.comm	_SBSDIO_FORCE_HT,4,2            ; @SBSDIO_FORCE_HT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to force clock for F2: err %d\n"

	.comm	_INTR,4,2                       ; @INTR
l_.str.2:                               ; @.str.2
	.asciz	"disable SDIO interrupts\n"

	.comm	_intstatus,4,2                  ; @intstatus
	.no_dead_strip	_brcmf_sdio_bus_stop
.subsections_via_symbols
