	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdiod_set_sbaddr_window
_brcmf_sdiod_set_sbaddr_window:         ## @brcmf_sdiod_set_sbaddr_window
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	_BRCMF_SDIOD_NOMEDIUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %r14
	movl	%esi, %eax
	sarl	$8, %eax
	movq	_SBSDIO_SBADDRLOW_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movl	%esi, %eax
	sarl	$16, %eax
	movq	_SBSDIO_SBADDRMID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sarl	$24, %esi
	movq	_SBSDIO_SBADDRHIGH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%eax, -40(%rbp)
	movl	%esi, -36(%rbp)
	movq	_SBSDIO_FUNC1_SBADDRLOW@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	-44(%rbp), %rcx
	movl	$4, %edx
	movl	$1, %r8d
	callq	_brcmf_sdiod_regrw_helper
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_5:
	leaq	-40(%rbp), %rcx
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$1, %r8d
	callq	_brcmf_sdiod_regrw_helper
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	$1, %esi
	jmp	LBB0_4
LBB0_7:
	leaq	-36(%rbp), %rcx
	movq	(%r15), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$1, %r8d
	callq	_brcmf_sdiod_regrw_helper
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	$2, %esi
LBB0_4:
	addq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_brcmf_err
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_SDIOD_NOMEDIUM,8,3       ## @BRCMF_SDIOD_NOMEDIUM
	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.comm	_SBSDIO_SBADDRLOW_MASK,4,2      ## @SBSDIO_SBADDRLOW_MASK
	.comm	_SBSDIO_SBADDRMID_MASK,4,2      ## @SBSDIO_SBADDRMID_MASK
	.comm	_SBSDIO_SBADDRHIGH_MASK,4,2     ## @SBSDIO_SBADDRHIGH_MASK
	.comm	_SBSDIO_FUNC1_SBADDRLOW,8,3     ## @SBSDIO_FUNC1_SBADDRLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed at addr: 0x%0x\n"

	.no_dead_strip	_brcmf_sdiod_set_sbaddr_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdiod_set_sbaddr_window
_brcmf_sdiod_set_sbaddr_window:         ; @brcmf_sdiod_set_sbaddr_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _BRCMF_SDIOD_NOMEDIUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMF_SDIOD_NOMEDIUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh9:
	adrp	x8, _SBSDIO_SBADDRLOW_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SBSDIO_SBADDRLOW_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w1, asr #8
Lloh12:
	adrp	x9, _SBSDIO_SBADDRMID_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SBSDIO_SBADDRMID_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w1, asr #16
	add	x22, sp, #12
	stp	w8, w9, [sp, #12]
Lloh15:
	adrp	x8, _SBSDIO_SBADDRHIGH_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SBSDIO_SBADDRHIGH_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w1, asr #24
	str	w8, [sp, #20]
Lloh18:
	adrp	x21, _SBSDIO_FUNC1_SBADDRLOW@GOTPAGE
Lloh19:
	ldr	x21, [x21, _SBSDIO_FUNC1_SBADDRLOW@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x3, sp, #12
	mov	w2, #4
	mov	w4, #1
	bl	_brcmf_sdiod_regrw_helper
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	mov	x23, #0
	b	LBB0_8
LBB0_4:
	add	x3, x22, #4
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	w23, #1
	mov	x0, x19
	mov	w2, #4
	mov	w4, #1
	bl	_brcmf_sdiod_regrw_helper
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	add	x3, x22, #8
	ldr	x8, [x21]
	add	x1, x8, #2
	mov	x0, x19
	mov	w2, #4
	mov	w4, #1
	bl	_brcmf_sdiod_regrw_helper
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	w23, #2
LBB0_8:
	ldr	x8, [x21]
	add	x1, x8, x23
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_brcmf_err
LBB0_9:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_SDIOD_NOMEDIUM,8,3       ; @BRCMF_SDIOD_NOMEDIUM
	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.comm	_SBSDIO_SBADDRLOW_MASK,4,2      ; @SBSDIO_SBADDRLOW_MASK
	.comm	_SBSDIO_SBADDRMID_MASK,4,2      ; @SBSDIO_SBADDRMID_MASK
	.comm	_SBSDIO_SBADDRHIGH_MASK,4,2     ; @SBSDIO_SBADDRHIGH_MASK
	.comm	_SBSDIO_FUNC1_SBADDRLOW,8,3     ; @SBSDIO_FUNC1_SBADDRLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed at addr: 0x%0x\n"

	.no_dead_strip	_brcmf_sdiod_set_sbaddr_window
.subsections_via_symbols
