	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_sr_init
_brcmf_sdio_sr_init:                    ## @brcmf_sdio_sr_init
	.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
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movl	8(%rbx), %edi
	callq	_brcmf_chip_is_ulp
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_SBSDIO_FORCE_HT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SBSDIO_HT_AVAIL_REQ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_brcmf_sdio_aos_no_decode
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_6
LBB0_4:
	movq	_SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT@GOTPCREL(%rip), %rax
	movq	_SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
LBB0_6:
	movl	4(%rbx), %edi
	movq	_SBSDIO_FUNC1_WAKEUPCTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	callq	_brcmf_sdiod_readb
	cmpl	$0, -44(%rbp)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
	jmp	LBB0_15
LBB0_8:
	testq	%r15, %r15
	cmovel	-52(%rbp), %r13d                ## 4-byte Folded Reload
	btsl	%r13d, %eax
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	leaq	-44(%rbp), %rcx
	movl	%eax, %edx
	callq	_brcmf_sdiod_writeb
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	_brcmf_err
	jmp	LBB0_15
LBB0_10:
	movl	4(%rbx), %edi
	movq	_SDIO_CCCR_BRCM_CARDCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movl	%r12d, %edx
	callq	_brcmf_sdiod_func0_wb
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	_brcmf_err
	jmp	LBB0_15
LBB0_12:
	movl	4(%rbx), %edi
	movq	_SBSDIO_FUNC1_CHIPCLKCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_brcmf_sdiod_writeb
	cmpl	$0, -44(%rbp)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	callq	_brcmf_err
	jmp	LBB0_15
LBB0_14:
	movl	$1, (%rbx)
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_brcmf_dbg
LBB0_15:
	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	_SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT,4,2 ## @SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT
	.comm	_SBSDIO_HT_AVAIL_REQ,4,2        ## @SBSDIO_HT_AVAIL_REQ
	.comm	_SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT,4,2 ## @SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT
	.comm	_SBSDIO_FORCE_HT,4,2            ## @SBSDIO_FORCE_HT
	.comm	_SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC,4,2 ## @SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC
	.comm	_SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT,4,2 ## @SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT
	.comm	_SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT,4,2 ## @SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT
	.comm	_SBSDIO_FUNC1_WAKEUPCTRL,4,2    ## @SBSDIO_FUNC1_WAKEUPCTRL
L_.str.1:                               ## @.str.1
	.asciz	"error reading SBSDIO_FUNC1_WAKEUPCTRL\n"

L_.str.2:                               ## @.str.2
	.asciz	"error writing SBSDIO_FUNC1_WAKEUPCTRL\n"

	.comm	_SDIO_CCCR_BRCM_CARDCAP,4,2     ## @SDIO_CCCR_BRCM_CARDCAP
L_.str.3:                               ## @.str.3
	.asciz	"error writing SDIO_CCCR_BRCM_CARDCAP\n"

	.comm	_SBSDIO_FUNC1_CHIPCLKCSR,4,2    ## @SBSDIO_FUNC1_CHIPCLKCSR
L_.str.4:                               ## @.str.4
	.asciz	"error writing SBSDIO_FUNC1_CHIPCLKCSR\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.5:                               ## @.str.5
	.asciz	"SR enabled\n"

	.no_dead_strip	_brcmf_sdio_sr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_sr_init
_brcmf_sdio_sr_init:                    ; @brcmf_sdio_sr_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
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	w0, [x19, #8]
	bl	_brcmf_chip_is_ulp
	mov	x22, x0
Lloh5:
	adrp	x8, _SBSDIO_FORCE_HT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SBSDIO_FORCE_HT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _SBSDIO_HT_AVAIL_REQ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SBSDIO_HT_AVAIL_REQ@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
Lloh12:
	adrp	x8, _SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_brcmf_sdio_aos_no_decode
Lloh15:
	adrp	x8, _SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC@GOTPAGEOFF]
Lloh17:
	adrp	x9, _SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x0, #0
	csel	w21, w9, w8, eq
	ldr	w0, [x19, #4]
Lloh24:
	adrp	x25, _SBSDIO_FUNC1_WAKEUPCTRL@GOTPAGE
Lloh25:
	ldr	x25, [x25, _SBSDIO_FUNC1_WAKEUPCTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #12
	bl	_brcmf_sdiod_readb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_2
; %bb.1:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
	b	LBB0_9
LBB0_2:
	cmp	x22, #0
	csel	w8, w23, w24, eq
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w2, w0, w8
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	add	x3, sp, #12
	bl	_brcmf_sdiod_writeb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.3:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_brcmf_err
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #4]
Lloh30:
	adrp	x8, _SDIO_CCCR_BRCM_CARDCAP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SDIO_CCCR_BRCM_CARDCAP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x2, x21
	bl	_brcmf_sdiod_func0_wb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_brcmf_err
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #4]
Lloh35:
	adrp	x8, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x2, x20
	bl	_brcmf_sdiod_writeb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_brcmf_err
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
Lloh40:
	adrp	x8, _INFO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_brcmf_dbg
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT,4,2 ; @SBSDIO_FUNC1_WCTRL_ALPWAIT_SHIFT
	.comm	_SBSDIO_HT_AVAIL_REQ,4,2        ; @SBSDIO_HT_AVAIL_REQ
	.comm	_SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT,4,2 ; @SBSDIO_FUNC1_WCTRL_HTWAIT_SHIFT
	.comm	_SBSDIO_FORCE_HT,4,2            ; @SBSDIO_FORCE_HT
	.comm	_SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC,4,2 ; @SDIO_CCCR_BRCM_CARDCAP_CMD_NODEC
	.comm	_SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT,4,2 ; @SDIO_CCCR_BRCM_CARDCAP_CMD14_SUPPORT
	.comm	_SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT,4,2 ; @SDIO_CCCR_BRCM_CARDCAP_CMD14_EXT
	.comm	_SBSDIO_FUNC1_WAKEUPCTRL,4,2    ; @SBSDIO_FUNC1_WAKEUPCTRL
l_.str.1:                               ; @.str.1
	.asciz	"error reading SBSDIO_FUNC1_WAKEUPCTRL\n"

l_.str.2:                               ; @.str.2
	.asciz	"error writing SBSDIO_FUNC1_WAKEUPCTRL\n"

	.comm	_SDIO_CCCR_BRCM_CARDCAP,4,2     ; @SDIO_CCCR_BRCM_CARDCAP
l_.str.3:                               ; @.str.3
	.asciz	"error writing SDIO_CCCR_BRCM_CARDCAP\n"

	.comm	_SBSDIO_FUNC1_CHIPCLKCSR,4,2    ; @SBSDIO_FUNC1_CHIPCLKCSR
l_.str.4:                               ; @.str.4
	.asciz	"error writing SBSDIO_FUNC1_CHIPCLKCSR\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.5:                               ; @.str.5
	.asciz	"SR enabled\n"

	.no_dead_strip	_brcmf_sdio_sr_init
.subsections_via_symbols
