	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_kso_init
_brcmf_sdio_kso_init:                   ## @brcmf_sdio_kso_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	$0, -36(%rbp)
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	xorl	%r14d, %r14d
	cmpl	$12, (%rbx)
	jl	LBB0_7
## %bb.1:
	movl	(%r12), %edi
	movq	_SBSDIO_FUNC1_SLEEPCSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_brcmf_sdiod_readb
	cmpl	$0, -36(%rbp)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_brcmf_err
	movl	-36(%rbp), %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_SBSDIO_FUNC1_SLEEPCSR_KSO_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SBSDIO_FUNC1_SLEEPCSR_KSO_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	(%r12), %edi
	movl	(%r15), %esi
	leaq	-36(%rbp), %rcx
	callq	_brcmf_sdiod_writeb
	cmpl	$0, -36(%rbp)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_SBSDIO_FUNC1_SLEEPCSR,4,2      ## @SBSDIO_FUNC1_SLEEPCSR
L_.str.1:                               ## @.str.1
	.asciz	"error reading SBSDIO_FUNC1_SLEEPCSR\n"

	.comm	_SBSDIO_FUNC1_SLEEPCSR_KSO_MASK,4,2 ## @SBSDIO_FUNC1_SLEEPCSR_KSO_MASK
	.comm	_SBSDIO_FUNC1_SLEEPCSR_KSO_EN,4,2 ## @SBSDIO_FUNC1_SLEEPCSR_KSO_EN
	.comm	_SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT,4,2 ## @SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"error writing SBSDIO_FUNC1_SLEEPCSR\n"

	.no_dead_strip	_brcmf_sdio_kso_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_kso_init
_brcmf_sdio_kso_init:                   ; @brcmf_sdio_kso_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	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
	mov	w0, #0
	ldr	w8, [x20]
	cmp	w8, #12
	b.lt	LBB0_6
; %bb.1:
	ldr	w0, [x19]
Lloh5:
	adrp	x20, _SBSDIO_FUNC1_SLEEPCSR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SBSDIO_FUNC1_SLEEPCSR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_brcmf_sdiod_readb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.2:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:
	bl	_brcmf_err
	ldr	w0, [sp, #12]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _SBSDIO_FUNC1_SLEEPCSR_KSO_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SBSDIO_FUNC1_SLEEPCSR_KSO_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh12:
	adrp	x8, _SBSDIO_FUNC1_SLEEPCSR_KSO_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SBSDIO_FUNC1_SLEEPCSR_KSO_EN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w2, w8, w0
	ldr	w0, [x19]
	ldr	w1, [x20]
	add	x3, sp, #12
	bl	_brcmf_sdiod_writeb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.8:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_SBSDIO_FUNC1_SLEEPCSR,4,2      ; @SBSDIO_FUNC1_SLEEPCSR
l_.str.1:                               ; @.str.1
	.asciz	"error reading SBSDIO_FUNC1_SLEEPCSR\n"

	.comm	_SBSDIO_FUNC1_SLEEPCSR_KSO_MASK,4,2 ; @SBSDIO_FUNC1_SLEEPCSR_KSO_MASK
	.comm	_SBSDIO_FUNC1_SLEEPCSR_KSO_EN,4,2 ; @SBSDIO_FUNC1_SLEEPCSR_KSO_EN
	.comm	_SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT,4,2 ; @SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"error writing SBSDIO_FUNC1_SLEEPCSR\n"

	.no_dead_strip	_brcmf_sdio_kso_init
.subsections_via_symbols
