	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdiod_set_backplane_window
_brcmf_sdiod_set_backplane_window:      ## @brcmf_sdiod_set_backplane_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SBSDIO_SBWINDOW_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	$0, -44(%rbp)
	xorl	%eax, %eax
	cmpl	(%rdi), %esi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movq	_SBSDIO_FUNC1_SBADDRLOW@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	sarl	$8, %r14d
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movzbl	%r14b, %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_brcmf_sdiod_writeb
	movl	-44(%rbp), %eax
	cmpq	$1, %rbx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	testl	%eax, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_6
## %bb.5:
	movl	%ecx, (%r12)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBSDIO_SBWINDOW_MASK,4,2       ## @SBSDIO_SBWINDOW_MASK
	.comm	_SBSDIO_FUNC1_SBADDRLOW,8,3     ## @SBSDIO_FUNC1_SBADDRLOW
	.no_dead_strip	_brcmf_sdiod_set_backplane_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_backplane_window
_brcmf_sdiod_set_backplane_window:      ; @brcmf_sdiod_set_backplane_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w0, #0
Lloh0:
	adrp	x8, _SBSDIO_SBWINDOW_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SBSDIO_SBWINDOW_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w20, w8, w1
	str	wzr, [sp, #12]
	ldr	w8, [x19]
	cmp	w20, w8
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x21, _SBSDIO_FUNC1_SBADDRLOW@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SBSDIO_FUNC1_SBADDRLOW@GOTPAGEOFF]
	ldr	x1, [x21]
	ubfx	w2, w20, #8, #8
	add	x3, sp, #12
	mov	x0, x19
	bl	_brcmf_sdiod_writeb
	ldr	w0, [sp, #12]
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	add	x1, x8, #1
	ubfx	w2, w20, #16, #8
	add	x3, sp, #12
	mov	x0, x19
	bl	_brcmf_sdiod_writeb
	ldr	w0, [sp, #12]
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_4
; %bb.3:
	lsr	w2, w20, #24
	ldr	x8, [x21]
	add	x1, x8, #2
	add	x3, sp, #12
	mov	x0, x19
	bl	_brcmf_sdiod_writeb
	ldr	w0, [sp, #12]
	cmp	w0, #0
	cset	w8, eq
LBB0_4:
	cbz	w8, LBB0_6
; %bb.5:
	mov	w0, #0
	str	w20, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SBSDIO_SBWINDOW_MASK,4,2       ; @SBSDIO_SBWINDOW_MASK
	.comm	_SBSDIO_FUNC1_SBADDRLOW,8,3     ; @SBSDIO_FUNC1_SBADDRLOW
	.no_dead_strip	_brcmf_sdiod_set_backplane_window
.subsections_via_symbols
