	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_intr_rstatus
_brcmf_sdio_intr_rstatus:               ## @brcmf_sdio_intr_rstatus
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	movq	_intstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SD_REG
	movq	%rax, %r14
	addq	%r15, %r14
	movl	16(%rbx), %edi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rsi
	callq	_brcmf_sdiod_readl
	incl	12(%rbx)
	movq	%rax, %r15
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	andq	(%rbx), %r15
	leaq	20(%rbx), %rdi
	movq	_I_HMB_FC_STATE@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movq	(%rax), %rax
	andq	%r15, %rax
	setne	%sil
	callq	_atomic_set
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	leaq	-28(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_brcmf_sdiod_writel
	incl	12(%rbx)
	addq	$8, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_atomic_or
LBB0_3:
	movl	-28(%rbp), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intstatus,4,2                  ## @intstatus
	.comm	_I_HMB_FC_STATE,8,3             ## @I_HMB_FC_STATE
	.no_dead_strip	_brcmf_sdio_intr_rstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_intr_rstatus
_brcmf_sdio_intr_rstatus:               ; @brcmf_sdio_intr_rstatus
	.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
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _intstatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intstatus@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SD_REG
	add	x20, x0, x20
	ldr	w0, [x19, #16]
	add	x2, sp, #12
	mov	x1, x20
	bl	_brcmf_sdiod_readl
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x8, x19
	ldr	x9, [x8], #20
	and	x21, x9, x0
Lloh3:
	adrp	x9, _I_HMB_FC_STATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I_HMB_FC_STATE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	tst	x21, x9
	cset	w1, ne
	mov	x0, x8
	bl	_atomic_set
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	add	x3, sp, #12
	mov	x1, x20
	mov	x2, x21
	bl	_brcmf_sdiod_writel
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	add	x1, x19, #8
	mov	x0, x21
	bl	_atomic_or
LBB0_3:
	ldr	w8, [sp, #12]
LBB0_4:
	mov	x0, x8
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_intstatus,4,2                  ; @intstatus
	.comm	_I_HMB_FC_STATE,8,3             ; @I_HMB_FC_STATE
	.no_dead_strip	_brcmf_sdio_intr_rstatus
.subsections_via_symbols
