	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_firmware_callback
_brcmf_sdio_firmware_callback:          ## @brcmf_sdio_firmware_callback
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)
	callq	_dev_get_drvdata
	movq	(%rax), %rcx
	movq	32(%rcx), %r13
	movq	48(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rcx, %r15
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	testl	%ebx, %ebx
	jne	LBB0_31
## %bb.1:
	movq	(%r12), %rax
	movq	_BRCMF_SDIO_FW_CODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %r14
	movq	_BRCMF_SDIO_FW_NVRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,8), %r15d
	movq	%r12, %rdi
	callq	_kfree
	movl	$1, (%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_brcmf_sdio_download_firmware
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_31
## %bb.2:
	movl	$0, (%r13)
	movq	$0, 40(%r13)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_brcmf_sdio_wd_timer
	movq	8(%r15), %rdi
	callq	_sdio_claim_host
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdio_clkctl
	movq	8(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_30
## %bb.3:
	movq	_SBSDIO_FUNC1_CHIPCLKCSR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_brcmf_sdiod_readb
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	jne	LBB0_8
## %bb.4:
	movl	%eax, %r12d
	movq	24(%r13), %rdi
	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:
	movl	(%rax), %edx
	orl	%r12d, %edx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	callq	_brcmf_sdiod_writeb
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_brcmf_err
LBB0_30:
	movq	8(%r15), %rdi
	callq	_sdio_release_host
LBB0_31:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dev_name
	movl	-44(%rbp), %ecx
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%r15), %rdi
	callq	_device_release_driver
	movq	%rbx, %rdi
	callq	_device_release_driver
LBB0_32:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rbx
	movq	_tosbmailboxdata@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SD_REG
	addq	%rax, %rbx
	movq	_SDPCM_PROT_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SMB_DATA_VERSION_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_brcmf_sdiod_writel
	movq	(%r15), %rdi
	callq	_sdio_enable_func
	movl	%eax, -44(%rbp)
	movq	_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.18:
	movq	(%r15), %rdi
	callq	_sdio_disable_func
	jmp	LBB0_29
LBB0_10:
	movq	_HOSTINTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rcx
	movq	%r13, %r14
	movl	%eax, 16(%r13)
	movq	(%rcx), %rbx
	movq	_hostintmask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SD_REG
	addq	%rax, %rbx
	movl	16(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_brcmf_sdiod_writel
	movq	8(%r15), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_13
## %bb.11:
	cmpl	$128, %eax
	movq	_INFO@GOTPCREL(%rip), %rax
	jne	LBB0_17
## %bb.12:
	movl	(%rax), %edi
	movq	_CY_4373_F2_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_SBSDIO_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_brcmf_sdiod_writeb
	movq	_SBSDIO_DEVICE_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_brcmf_sdiod_readb
	movq	_SBSDIO_DEVCTL_F2WM_ENAB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_brcmf_sdiod_writeb
	movq	_SBSDIO_FUNC1_MESBUSYCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SBSDIO_MESBUSYCTRL_ENAB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CY_4373_F2_WATERMARK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	jmp	LBB0_14
LBB0_13:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CY_43012_F2_WATERMARK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_SBSDIO_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_brcmf_sdiod_writeb
	movq	_SBSDIO_DEVICE_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_brcmf_sdiod_readb
	movq	_SBSDIO_DEVCTL_F2WM_ENAB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
LBB0_14:
	movq	%rbx, %rcx
	jmp	LBB0_15
LBB0_17:
	movq	_SBSDIO_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEFAULT_F2_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
LBB0_15:
	callq	_brcmf_sdiod_writeb
	movq	_SBSDIO_FUNC1_CHIPCLKCSR@GOTPCREL(%rip), %r14
	movq	24(%r13), %rdi
	callq	_brcmf_chip_sr_capable
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%r13, %rdi
	callq	_brcmf_sdio_sr_init
	jmp	LBB0_20
LBB0_19:
	movl	(%r14), %esi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_brcmf_sdiod_writeb
LBB0_20:
	cmpl	$0, -44(%rbp)
	je	LBB0_21
LBB0_23:
	movq	_CLK_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdio_clkctl
	jmp	LBB0_29
LBB0_21:
	movl	32(%r13), %edi
	movq	_BRCMF_SDIOD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_brcmf_sdiod_change_state
	movq	%r15, %rdi
	callq	_brcmf_sdiod_intr_register
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_brcmf_err
	cmpl	$0, -44(%rbp)
	jne	LBB0_23
LBB0_24:
	movq	8(%r15), %rdi
	callq	_sdio_release_host
	movl	16(%r15), %edi
	movq	24(%r15), %rax
	movl	%edi, 16(%rax)
	movq	_brcmf_sdio_bus_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	24(%r13), %rcx
	movl	4(%rcx), %edx
	movl	%edx, 4(%rax)
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	20(%r15), %esi
	callq	_brcmf_alloc
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_brcmf_err
	jmp	LBB0_28
LBB0_26:
	movl	16(%r15), %edi
	callq	_brcmf_attach
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_32
## %bb.27:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_brcmf_err
	movl	16(%r15), %edi
	callq	_brcmf_free
LBB0_28:
	movq	8(%r15), %rdi
	callq	_sdio_claim_host
LBB0_29:
	movq	%r13, %rdi
	callq	_brcmf_sdio_checkdied
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter: dev=%s, err=%d\n"

	.comm	_BRCMF_SDIO_FW_CODE,8,3         ## @BRCMF_SDIO_FW_CODE
	.comm	_BRCMF_SDIO_FW_NVRAM,8,3        ## @BRCMF_SDIO_FW_NVRAM
	.comm	_CLK_AVAIL,8,3                  ## @CLK_AVAIL
	.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	_tosbmailboxdata,4,2            ## @tosbmailboxdata
	.comm	_SDPCM_PROT_VERSION,4,2         ## @SDPCM_PROT_VERSION
	.comm	_SMB_DATA_VERSION_SHIFT,4,2     ## @SMB_DATA_VERSION_SHIFT
	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"enable F2: err=%d\n"

	.comm	_HOSTINTMASK,4,2                ## @HOSTINTMASK
	.comm	_hostintmask,4,2                ## @hostintmask
L_.str.3:                               ## @.str.3
	.asciz	"set F2 watermark to 0x%x*4 bytes\n"

	.comm	_CY_4373_F2_WATERMARK,4,2       ## @CY_4373_F2_WATERMARK
	.comm	_SBSDIO_WATERMARK,4,2           ## @SBSDIO_WATERMARK
	.comm	_SBSDIO_DEVICE_CTL,4,2          ## @SBSDIO_DEVICE_CTL
	.comm	_SBSDIO_DEVCTL_F2WM_ENAB,4,2    ## @SBSDIO_DEVCTL_F2WM_ENAB
	.comm	_SBSDIO_FUNC1_MESBUSYCTRL,4,2   ## @SBSDIO_FUNC1_MESBUSYCTRL
	.comm	_SBSDIO_MESBUSYCTRL_ENAB,4,2    ## @SBSDIO_MESBUSYCTRL_ENAB
	.comm	_CY_43012_F2_WATERMARK,4,2      ## @CY_43012_F2_WATERMARK
	.comm	_DEFAULT_F2_WATERMARK,4,2       ## @DEFAULT_F2_WATERMARK
	.comm	_BRCMF_SDIOD_DATA,4,2           ## @BRCMF_SDIOD_DATA
L_.str.4:                               ## @.str.4
	.asciz	"intr register failed:%d\n"

	.comm	_CLK_NONE,8,3                   ## @CLK_NONE
	.comm	_brcmf_sdio_bus_ops,4,2         ## @brcmf_sdio_bus_ops
L_.str.5:                               ## @.str.5
	.asciz	"brcmf_alloc failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"brcmf_attach failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed: dev=%s, err=%d\n"

	.no_dead_strip	_brcmf_sdio_firmware_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_firmware_callback
_brcmf_sdio_firmware_callback:          ; @brcmf_sdio_firmware_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	str	w1, [sp, #12]
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	ldr	x21, [x20, #32]
	ldr	x27, [x21, #48]
Lloh0:
	adrp	x26, _TRACE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TRACE@GOTPAGEOFF]
	ldr	w24, [x26]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
	str	x23, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_brcmf_dbg
	cbnz	w23, LBB0_7
; %bb.1:
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _BRCMF_SDIO_FW_CODE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BRCMF_SDIO_FW_CODE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x9, x9, x10, x8
	ldr	x23, [x9, #16]
Lloh7:
	adrp	x9, _BRCMF_SDIO_FW_NVRAM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BRCMF_SDIO_FW_NVRAM@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	madd	x8, x9, x10, x8
	ldr	x24, [x8, #8]
	ldr	w25, [x8]
	mov	x0, x22
	bl	_kfree
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_brcmf_sdio_download_firmware
	str	w0, [sp, #12]
	cbnz	w0, LBB0_7
; %bb.2:
	str	wzr, [x21]
	str	xzr, [x21, #40]
	mov	x0, x21
	mov	w1, #1
	bl	_brcmf_sdio_wd_timer
	ldr	x0, [x20, #8]
	bl	_sdio_claim_host
Lloh10:
	adrp	x22, _CLK_AVAIL@GOTPAGE
Lloh11:
	ldr	x22, [x22, _CLK_AVAIL@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x21
	mov	w2, #0
	bl	_brcmf_sdio_clkctl
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh12:
	adrp	x23, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_readb
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x22, x0
	ldr	x0, [x21, #24]
	bl	_brcmf_chip_is_ulp
Lloh14:
	adrp	x8, _SBSDIO_HT_AVAIL_REQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SBSDIO_HT_AVAIL_REQ@GOTPAGEOFF]
Lloh16:
	adrp	x9, _SBSDIO_FORCE_HT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SBSDIO_FORCE_HT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	orr	w2, w8, w22
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_writeb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
LBB0_5:
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
LBB0_6:
	ldr	x0, [x20, #8]
	bl	_sdio_release_host
LBB0_7:
	ldr	w21, [x26]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_brcmf_dbg
	ldr	x0, [x20]
	bl	_device_release_driver
	mov	x0, x19
	bl	_device_release_driver
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	x24, [x27]
Lloh22:
	adrp	x8, _tosbmailboxdata@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tosbmailboxdata@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_SD_REG
Lloh25:
	adrp	x8, _SDPCM_PROT_VERSION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SDPCM_PROT_VERSION@GOTPAGEOFF]
	add	x1, x0, x24
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _SMB_DATA_VERSION_SHIFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SMB_DATA_VERSION_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	mov	x0, x20
	mov	x3, #0
	bl	_brcmf_sdiod_writel
	ldr	x0, [x20]
	bl	_sdio_enable_func
	mov	x2, x0
	str	w0, [sp, #12]
Lloh31:
	adrp	x24, _INFO@GOTPAGE
Lloh32:
	ldr	x24, [x24, _INFO@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x0, [x20]
	bl	_sdio_disable_func
	b	LBB0_28
LBB0_11:
Lloh35:
	adrp	x8, _HOSTINTMASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HOSTINTMASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x25, [x27]
Lloh38:
	adrp	x8, _hostintmask@GOTPAGE
Lloh39:
	ldr	x8, [x8, _hostintmask@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_SD_REG
	add	x1, x0, x25
	ldr	w2, [x21, #16]
	mov	x0, x20
	mov	x3, #0
	bl	_brcmf_sdiod_writel
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.13:
	ldr	w0, [x24]
Lloh41:
	adrp	x24, _CY_4373_F2_WATERMARK@GOTPAGE
Lloh42:
	ldr	x24, [x24, _CY_4373_F2_WATERMARK@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
Lloh45:
	adrp	x8, _SBSDIO_WATERMARK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SBSDIO_WATERMARK@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	w2, [x24]
	add	x3, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_writeb
Lloh48:
	adrp	x25, _SBSDIO_DEVICE_CTL@GOTPAGE
Lloh49:
	ldr	x25, [x25, _SBSDIO_DEVICE_CTL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_readb
Lloh50:
	adrp	x8, _SBSDIO_DEVCTL_F2WM_ENAB@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SBSDIO_DEVCTL_F2WM_ENAB@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x25]
	add	x3, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_writeb
Lloh53:
	adrp	x8, _SBSDIO_FUNC1_MESBUSYCTRL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SBSDIO_FUNC1_MESBUSYCTRL@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	ldr	w8, [x24]
Lloh56:
	adrp	x9, _SBSDIO_MESBUSYCTRL_ENAB@GOTPAGE
Lloh57:
	ldr	x9, [x9, _SBSDIO_MESBUSYCTRL_ENAB@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_16
LBB0_14:
	ldr	w0, [x24]
Lloh59:
	adrp	x24, _CY_43012_F2_WATERMARK@GOTPAGE
Lloh60:
	ldr	x24, [x24, _CY_43012_F2_WATERMARK@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh61:
	adrp	x1, l_.str.3@PAGE
Lloh62:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
Lloh63:
	adrp	x8, _SBSDIO_WATERMARK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SBSDIO_WATERMARK@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	ldr	w2, [x24]
	add	x3, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_writeb
Lloh66:
	adrp	x24, _SBSDIO_DEVICE_CTL@GOTPAGE
Lloh67:
	ldr	x24, [x24, _SBSDIO_DEVICE_CTL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_readb
Lloh68:
	adrp	x8, _SBSDIO_DEVCTL_F2WM_ENAB@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SBSDIO_DEVCTL_F2WM_ENAB@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x24]
	b	LBB0_16
LBB0_15:
Lloh71:
	adrp	x8, _SBSDIO_WATERMARK@GOTPAGE
Lloh72:
	ldr	x8, [x8, _SBSDIO_WATERMARK@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
Lloh74:
	adrp	x8, _DEFAULT_F2_WATERMARK@GOTPAGE
Lloh75:
	ldr	x8, [x8, _DEFAULT_F2_WATERMARK@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
LBB0_16:
	add	x3, sp, #12
	mov	x0, x20
	bl	_brcmf_sdiod_writeb
	ldr	x0, [x21, #24]
	bl	_brcmf_chip_sr_capable
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_brcmf_sdio_sr_init
	b	LBB0_19
LBB0_18:
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x22
	bl	_brcmf_sdiod_writeb
LBB0_19:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_21
LBB0_20:
Lloh77:
	adrp	x8, _CLK_NONE@GOTPAGE
Lloh78:
	ldr	x8, [x8, _CLK_NONE@GOTPAGEOFF]
Lloh79:
	ldr	x1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_brcmf_sdio_clkctl
	b	LBB0_28
LBB0_21:
	ldr	w0, [x21, #32]
Lloh80:
	adrp	x8, _BRCMF_SDIOD_DATA@GOTPAGE
Lloh81:
	ldr	x8, [x8, _BRCMF_SDIOD_DATA@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	bl	_brcmf_sdiod_change_state
	mov	x0, x20
	bl	_brcmf_sdiod_intr_register
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #12]
	cbz	w0, LBB0_23
; %bb.22:
	str	x0, [sp]
Lloh83:
	adrp	x0, l_.str.4@PAGE
Lloh84:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_brcmf_err
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_20
LBB0_23:
	ldr	x0, [x20, #8]
	bl	_sdio_release_host
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #24]
Lloh85:
	adrp	x9, _brcmf_sdio_bus_ops@GOTPAGE
Lloh86:
	ldr	x9, [x9, _brcmf_sdio_bus_ops@GOTPAGEOFF]
	str	w0, [x8, #16]
	str	x9, [x8, #8]
	ldr	x9, [x21, #24]
	ldr	d0, [x9]
	str	d0, [x8]
	ldr	w1, [x20, #20]
	bl	_brcmf_alloc
	str	w0, [sp, #12]
	cbz	w0, LBB0_25
; %bb.24:
Lloh87:
	adrp	x0, l_.str.5@PAGE
Lloh88:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_brcmf_err
	b	LBB0_27
LBB0_25:
	ldr	w0, [x20, #16]
	bl	_brcmf_attach
	str	w0, [sp, #12]
	cbz	w0, LBB0_8
; %bb.26:
Lloh89:
	adrp	x0, l_.str.6@PAGE
Lloh90:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_brcmf_err
	ldr	w0, [x20, #16]
	bl	_brcmf_free
LBB0_27:
	ldr	x0, [x20, #8]
	bl	_sdio_claim_host
LBB0_28:
	mov	x0, x21
	bl	_brcmf_sdio_checkdied
	b	LBB0_6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter: dev=%s, err=%d\n"

	.comm	_BRCMF_SDIO_FW_CODE,8,3         ; @BRCMF_SDIO_FW_CODE
	.comm	_BRCMF_SDIO_FW_NVRAM,8,3        ; @BRCMF_SDIO_FW_NVRAM
	.comm	_CLK_AVAIL,8,3                  ; @CLK_AVAIL
	.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	_tosbmailboxdata,4,2            ; @tosbmailboxdata
	.comm	_SDPCM_PROT_VERSION,4,2         ; @SDPCM_PROT_VERSION
	.comm	_SMB_DATA_VERSION_SHIFT,4,2     ; @SMB_DATA_VERSION_SHIFT
	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"enable F2: err=%d\n"

	.comm	_HOSTINTMASK,4,2                ; @HOSTINTMASK
	.comm	_hostintmask,4,2                ; @hostintmask
l_.str.3:                               ; @.str.3
	.asciz	"set F2 watermark to 0x%x*4 bytes\n"

	.comm	_CY_4373_F2_WATERMARK,4,2       ; @CY_4373_F2_WATERMARK
	.comm	_SBSDIO_WATERMARK,4,2           ; @SBSDIO_WATERMARK
	.comm	_SBSDIO_DEVICE_CTL,4,2          ; @SBSDIO_DEVICE_CTL
	.comm	_SBSDIO_DEVCTL_F2WM_ENAB,4,2    ; @SBSDIO_DEVCTL_F2WM_ENAB
	.comm	_SBSDIO_FUNC1_MESBUSYCTRL,4,2   ; @SBSDIO_FUNC1_MESBUSYCTRL
	.comm	_SBSDIO_MESBUSYCTRL_ENAB,4,2    ; @SBSDIO_MESBUSYCTRL_ENAB
	.comm	_CY_43012_F2_WATERMARK,4,2      ; @CY_43012_F2_WATERMARK
	.comm	_DEFAULT_F2_WATERMARK,4,2       ; @DEFAULT_F2_WATERMARK
	.comm	_BRCMF_SDIOD_DATA,4,2           ; @BRCMF_SDIOD_DATA
l_.str.4:                               ; @.str.4
	.asciz	"intr register failed:%d\n"

	.comm	_CLK_NONE,8,3                   ; @CLK_NONE
	.comm	_brcmf_sdio_bus_ops,4,2         ; @brcmf_sdio_bus_ops
l_.str.5:                               ; @.str.5
	.asciz	"brcmf_alloc failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"brcmf_attach failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed: dev=%s, err=%d\n"

	.no_dead_strip	_brcmf_sdio_firmware_callback
.subsections_via_symbols
