	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_dpc
_brcmf_sdio_dpc:                        ## @brcmf_sdio_dpc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	48(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	112(%rdi), %rax
	movq	(%rax), %r15
	movq	_intstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SD_REG
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	104(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	_SDIO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	48(%r13), %rax
	movl	8(%rax), %edi
	callq	_sdio_claim_host
	cmpl	$0, 100(%r13)
	jne	LBB0_4
## %bb.1:
	movq	(%r13), %rax
	movq	_CLK_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	48(%r13), %rdi
	movq	_SBSDIO_FUNC1_CHIPCLKCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_brcmf_sdiod_readb
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	%ebx, %edi
	callq	_SBSDIO_HTAV
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	48(%r13), %rdi
	movq	_SBSDIO_DEVICE_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %r14
	movq	%r14, %rdx
	callq	_brcmf_sdiod_readb
	movq	_SBSDIO_DEVCTL_CA_INT_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	48(%r13), %rdi
	movl	(%rbx), %esi
	movq	%r14, %rcx
	callq	_brcmf_sdiod_writeb
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_brcmf_sdio_bus_sleep
	leaq	40(%r13), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r13, %rdi
	callq	_brcmf_sdio_intr_rstatus
	movl	%eax, -44(%rbp)
LBB0_6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	44(%r13), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_atomic_xchg
	movq	%rax, %r12
	movq	_I_HMB_FC_CHANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%r12, %rdx
	je	LBB0_8
## %bb.7:
	movq	%r15, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	addq	%rax, %r15
	movq	%rdx, %rax
	notq	%rax
	andq	%rax, %r12
	leaq	-44(%rbp), %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_brcmf_sdiod_writel
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_brcmf_sdiod_readl
	movq	%rax, %rbx
	addl	$2, 96(%r13)
	movq	_I_HMB_FC_STATE@GOTPCREL(%rip), %rax
	movq	_I_HMB_FC_CHANGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	leaq	36(%r13), %rdi
	xorl	%esi, %esi
	testq	%rbx, %rcx
	setne	%sil
	callq	_atomic_set
	andq	8(%r13), %rbx
	orq	%rbx, %r12
LBB0_8:
	movq	_I_HMB_HOST_INT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r12, %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	notq	%rax
	andq	%rax, %r12
	movq	%r13, %rdi
	callq	_brcmf_sdio_hostmail
	orq	%rax, %r12
LBB0_10:
	movq	48(%r13), %rax
	movl	8(%rax), %edi
	callq	_sdio_release_host
	movq	_I_WR_OOSYNC@GOTPCREL(%rip), %rbx
	testq	%r12, (%rbx)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_brcmf_err
	movq	(%rbx), %rax
	notq	%rax
	andq	%rax, %r12
LBB0_12:
	movq	_I_RD_OOSYNC@GOTPCREL(%rip), %rbx
	testq	%r12, (%rbx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	callq	_brcmf_err
	movq	(%rbx), %rax
	notq	%rax
	andq	%rax, %r12
LBB0_14:
	movq	_I_SBINT@GOTPCREL(%rip), %rbx
	testq	%r12, (%rbx)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	callq	_brcmf_err
	movq	(%rbx), %rax
	notq	%rax
	andq	%rax, %r12
LBB0_16:
	movq	_I_CHIPACTIVE@GOTPCREL(%rip), %rbx
	testq	%r12, (%rbx)
	je	LBB0_18
## %bb.17:
	movq	_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%rbx), %rax
	notq	%rax
	andq	%rax, %r12
LBB0_18:
	movq	_I_HMB_FRAME_IND@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, %rcx
	xorl	%ebx, %ebx
	cmpq	$1, 88(%r13)
	sbbq	%rbx, %rbx
	notq	%rcx
	orq	%rcx, %rbx
	andq	%r12, %rbx
	testq	%rax, %rbx
	je	LBB0_22
## %bb.19:
	movq	(%r13), %rax
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	movl	80(%r13), %esi
	movq	%r13, %rdi
	callq	_brcmf_sdio_readframes
	cmpq	$0, 64(%r13)
	jne	LBB0_22
## %bb.21:
	movq	(%r14), %rax
	notq	%rax
	andq	%rax, %rbx
LBB0_22:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atomic_or
LBB0_24:
	movq	%r13, %rdi
	callq	_brcmf_sdio_clrintr
	cmpl	$0, 16(%r13)
	je	LBB0_30
## %bb.25:
	movq	(%r13), %rax
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.26:
	movq	%r13, %rdi
	callq	_data_ok
	testq	%rax, %rax
	je	LBB0_30
## %bb.27:
	movq	48(%r13), %rax
	movl	8(%rax), %edi
	callq	_sdio_claim_host
	cmpl	$0, 16(%r13)
	je	LBB0_29
## %bb.28:
	movl	72(%r13), %edx
	movl	76(%r13), %esi
	movq	%r13, %rdi
	callq	_brcmf_sdio_tx_ctrlframe
	movl	%eax, -44(%rbp)
	movl	%eax, 20(%r13)
	xorl	%eax, %eax
	callq	_wmb
	movl	$0, 16(%r13)
LBB0_29:
	movq	48(%r13), %rax
	movl	8(%rax), %edi
	callq	_sdio_release_host
	movq	%r13, %rdi
	callq	_brcmf_sdio_wait_event_wakeup
LBB0_30:
	movq	(%r13), %rax
	movq	_CLK_AVAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.31:
	leaq	36(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_32
LBB0_39:
	movq	48(%r13), %rax
	movq	(%rax), %rax
	movq	_BRCMF_SDIOD_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_41
## %bb.40:
	cmpl	$0, -44(%rbp)
	jne	LBB0_41
## %bb.45:
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_50
## %bb.46:
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_47
LBB0_50:
	movl	$1, 24(%r13)
	jmp	LBB0_51
LBB0_41:
	leaq	L_.str.6(%rip), %rdi
	callq	_brcmf_err
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	cmpl	$0, 16(%r13)
	je	LBB0_51
## %bb.42:
	movq	48(%r13), %rax
	movl	8(%rax), %edi
	callq	_sdio_claim_host
	cmpl	$0, 16(%r13)
	je	LBB0_44
## %bb.43:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 20(%r13)
	xorl	%eax, %eax
	callq	_wmb
	movl	$0, 16(%r13)
	movq	%r13, %rdi
	callq	_brcmf_sdio_wait_event_wakeup
LBB0_44:
	movq	48(%r13), %rax
	movl	8(%rax), %edi
	callq	_sdio_release_host
LBB0_51:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	leaq	32(%r13), %rdi
	movl	28(%r13), %esi
	notl	%esi
	callq	_brcmu_pktq_mlen
	testq	%rax, %rax
	je	LBB0_39
## %bb.33:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_39
## %bb.34:
	movq	%r13, %rdi
	callq	_data_ok
	testq	%rax, %rax
	je	LBB0_39
## %bb.35:
	cmpq	$0, 64(%r13)
	je	LBB0_36
## %bb.37:
	movl	56(%r13), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_min
	movq	%rax, %rsi
	jmp	LBB0_38
LBB0_47:
	leaq	36(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_51
## %bb.48:
	leaq	32(%r13), %rdi
	movl	28(%r13), %esi
	notl	%esi
	callq	_brcmu_pktq_mlen
	testq	%rax, %rax
	je	LBB0_51
## %bb.49:
	movq	%r13, %rdi
	callq	_data_ok
	testq	%rax, %rax
	jne	LBB0_50
	jmp	LBB0_51
LBB0_36:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_38:
	movq	%r13, %rdi
	callq	_brcmf_sdio_sendfromq
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_intstatus,8,3                  ## @intstatus
	.comm	_SDIO,4,2                       ## @SDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_CLK_PENDING,8,3                ## @CLK_PENDING
	.comm	_SBSDIO_FUNC1_CHIPCLKCSR,4,2    ## @SBSDIO_FUNC1_CHIPCLKCSR
L_.str.1:                               ## @.str.1
	.asciz	"DPC: PENDING, devctl 0x%02x clkctl 0x%02x\n"

	.comm	_SBSDIO_DEVICE_CTL,4,2          ## @SBSDIO_DEVICE_CTL
	.comm	_SBSDIO_DEVCTL_CA_INT_ONLY,4,2  ## @SBSDIO_DEVCTL_CA_INT_ONLY
	.comm	_CLK_AVAIL,8,3                  ## @CLK_AVAIL
	.comm	_I_HMB_FC_CHANGE,8,3            ## @I_HMB_FC_CHANGE
	.comm	_I_HMB_FC_STATE,8,3             ## @I_HMB_FC_STATE
	.comm	_I_HMB_HOST_INT,8,3             ## @I_HMB_HOST_INT
	.comm	_I_WR_OOSYNC,8,3                ## @I_WR_OOSYNC
L_.str.2:                               ## @.str.2
	.asciz	"Dongle reports WR_OOSYNC\n"

	.comm	_I_RD_OOSYNC,8,3                ## @I_RD_OOSYNC
L_.str.3:                               ## @.str.3
	.asciz	"Dongle reports RD_OOSYNC\n"

	.comm	_I_SBINT,8,3                    ## @I_SBINT
L_.str.4:                               ## @.str.4
	.asciz	"Dongle reports SBINT\n"

	.comm	_I_CHIPACTIVE,8,3               ## @I_CHIPACTIVE
L_.str.5:                               ## @.str.5
	.asciz	"Dongle reports CHIPACTIVE\n"

	.comm	_I_HMB_FRAME_IND,8,3            ## @I_HMB_FRAME_IND
	.comm	_BRCMF_SDIOD_DATA,8,3           ## @BRCMF_SDIOD_DATA
L_.str.6:                               ## @.str.6
	.asciz	"failed backplane access over SDIO, halting operation\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_brcmf_sdio_dpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_dpc
_brcmf_sdio_dpc:                        ; @brcmf_sdio_dpc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x23, [x0, #48]
	ldr	x8, [x0, #112]
	ldr	x28, [x8]
Lloh0:
	adrp	x8, _intstatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intstatus@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SD_REG
	mov	x24, x0
	ldr	x8, [x19, #104]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	str	wzr, [sp, #28]
Lloh3:
	adrp	x27, _SDIO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SDIO@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_sdio_claim_host
	ldr	w8, [x19, #100]
Lloh7:
	adrp	x26, _CLK_AVAIL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _CLK_AVAIL@GOTPAGEOFF]
	cbnz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _CLK_PENDING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CLK_PENDING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [x19, #48]
Lloh12:
	adrp	x8, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SBSDIO_FUNC1_CHIPCLKCSR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_brcmf_sdiod_readb
	mov	x21, x0
	ldr	w0, [x27]
	stp	xzr, x21, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x21
	bl	_SBSDIO_HTAV
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #48]
Lloh17:
	adrp	x20, _SBSDIO_DEVICE_CTL@GOTPAGE
Lloh18:
	ldr	x20, [x20, _SBSDIO_DEVICE_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #28
	bl	_brcmf_sdiod_readb
Lloh19:
	adrp	x8, _SBSDIO_DEVCTL_CA_INT_ONLY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SBSDIO_DEVCTL_CA_INT_ONLY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	x0, [x19, #48]
	ldr	w1, [x20]
	add	x3, sp, #28
	bl	_brcmf_sdiod_writeb
	ldr	x8, [x26]
	str	x8, [x19]
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_brcmf_sdio_bus_sleep
	add	x21, x19, #40
	mov	x0, x21
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	bl	_brcmf_sdio_intr_rstatus
	str	w0, [sp, #28]
LBB0_6:
	add	x22, x19, #44
	mov	x0, x22
	mov	w1, #0
	bl	_atomic_xchg
	mov	x25, x0
Lloh22:
	adrp	x20, _I_HMB_FC_CHANGE@GOTPAGE
Lloh23:
	ldr	x20, [x20, _I_HMB_FC_CHANGE@GOTPAGEOFF]
	ldr	x2, [x20]
	tst	x2, x0
	b.eq	LBB0_8
; %bb.7:
	add	x24, x24, x28
	bic	x25, x25, x2
	add	x3, sp, #28
	mov	x0, x23
	mov	x1, x24
	bl	_brcmf_sdiod_writel
	add	x2, sp, #28
	mov	x0, x23
	mov	x1, x24
	bl	_brcmf_sdiod_readl
	mov	x23, x0
	ldr	w8, [x19, #96]
	add	w8, w8, #2
	str	w8, [x19, #96]
Lloh24:
	adrp	x8, _I_HMB_FC_STATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I_HMB_FC_STATE@GOTPAGEOFF]
	add	x0, x19, #36
Lloh26:
	ldr	x8, [x8]
	ldr	x9, [x20]
	orr	x8, x9, x8
	tst	x8, x23
	cset	w1, ne
	bl	_atomic_set
	ldr	x8, [x19, #8]
	and	x8, x8, x23
	orr	x25, x8, x25
LBB0_8:
Lloh27:
	adrp	x8, _I_HMB_HOST_INT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I_HMB_HOST_INT@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_10
; %bb.9:
	bic	x20, x25, x8
	mov	x0, x19
	bl	_brcmf_sdio_hostmail
	orr	x25, x0, x20
LBB0_10:
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_sdio_release_host
Lloh30:
	adrp	x20, _I_WR_OOSYNC@GOTPAGE
Lloh31:
	ldr	x20, [x20, _I_WR_OOSYNC@GOTPAGEOFF]
	ldr	x8, [x20]
	tst	x8, x25
	b.eq	LBB0_12
; %bb.11:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_brcmf_err
	ldr	x8, [x20]
	bic	x25, x25, x8
LBB0_12:
Lloh34:
	adrp	x20, _I_RD_OOSYNC@GOTPAGE
Lloh35:
	ldr	x20, [x20, _I_RD_OOSYNC@GOTPAGEOFF]
	ldr	x8, [x20]
	tst	x8, x25
	b.eq	LBB0_14
; %bb.13:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_brcmf_err
	ldr	x8, [x20]
	bic	x25, x25, x8
LBB0_14:
Lloh38:
	adrp	x20, _I_SBINT@GOTPAGE
Lloh39:
	ldr	x20, [x20, _I_SBINT@GOTPAGEOFF]
	ldr	x8, [x20]
	tst	x8, x25
	b.eq	LBB0_16
; %bb.15:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_brcmf_err
	ldr	x8, [x20]
	bic	x25, x25, x8
LBB0_16:
Lloh42:
	adrp	x20, _I_CHIPACTIVE@GOTPAGE
Lloh43:
	ldr	x20, [x20, _I_CHIPACTIVE@GOTPAGEOFF]
	ldr	x8, [x20]
	tst	x8, x25
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x27]
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x20]
	bic	x25, x25, x8
LBB0_18:
	ldr	x8, [x19, #88]
Lloh46:
	adrp	x20, _I_HMB_FRAME_IND@GOTPAGE
Lloh47:
	ldr	x20, [x20, _I_HMB_FRAME_IND@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, #0
	mov	x8, #-1
	csinv	x8, x8, x9, eq
	and	x23, x8, x25
	tst	x23, x9
	b.eq	LBB0_22
; %bb.19:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	ldr	w1, [x19, #80]
	mov	x0, x19
	bl	_brcmf_sdio_readframes
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_22
; %bb.21:
	ldr	x8, [x20]
	bic	x23, x23, x8
LBB0_22:
	cbz	x23, LBB0_24
; %bb.23:
	mov	x0, x23
	mov	x1, x22
	bl	_atomic_or
LBB0_24:
	mov	x0, x19
	bl	_brcmf_sdio_clrintr
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_30
; %bb.25:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.26:
	mov	x0, x19
	bl	_data_ok
	cbz	x0, LBB0_30
; %bb.27:
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_sdio_claim_host
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_29
; %bb.28:
	ldp	w2, w1, [x19, #72]
	mov	x0, x19
	bl	_brcmf_sdio_tx_ctrlframe
	str	w0, [sp, #28]
	str	w0, [x19, #20]
	bl	_wmb
	str	wzr, [x19, #16]
LBB0_29:
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_sdio_release_host
	mov	x0, x19
	bl	_brcmf_sdio_wait_event_wakeup
LBB0_30:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.31:
	add	x0, x19, #36
	bl	_atomic_read
	cbz	x0, LBB0_42
LBB0_32:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
Lloh48:
	adrp	x9, _BRCMF_SDIOD_DATA@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BRCMF_SDIOD_DATA@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_37
; %bb.33:
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_37
; %bb.34:
	mov	x0, x22
	bl	_atomic_read
	cbnz	x0, LBB0_36
; %bb.35:
	mov	x0, x21
	bl	_atomic_read
	cmp	x0, #0
	b.le	LBB0_47
LBB0_36:
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_41
LBB0_37:
Lloh51:
	adrp	x0, l_.str.6@PAGE
Lloh52:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_brcmf_err
	mov	x0, x22
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_41
; %bb.38:
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_sdio_claim_host
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_40
; %bb.39:
Lloh53:
	adrp	x8, _ENODEV@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #20]
	bl	_wmb
	str	wzr, [x19, #16]
	mov	x0, x19
	bl	_brcmf_sdio_wait_event_wakeup
LBB0_40:
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_sdio_release_host
LBB0_41:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_42:
	add	x0, x19, #32
	ldr	w8, [x19, #28]
	mvn	w1, w8
	bl	_brcmu_pktq_mlen
	cbz	x0, LBB0_32
; %bb.43:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_32
; %bb.44:
	mov	x0, x19
	bl	_data_ok
	cbz	x0, LBB0_32
; %bb.45:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_50
; %bb.46:
	ldr	w1, [x19, #56]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_min
	mov	x1, x0
	b	LBB0_51
LBB0_47:
	add	x0, x19, #36
	bl	_atomic_read
	cbnz	x0, LBB0_41
; %bb.48:
	add	x0, x19, #32
	ldr	w8, [x19, #28]
	mvn	w1, w8
	bl	_brcmu_pktq_mlen
	cbz	x0, LBB0_41
; %bb.49:
	mov	x0, x19
	bl	_data_ok
	cbnz	x0, LBB0_36
	b	LBB0_41
LBB0_50:
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
LBB0_51:
	mov	x0, x19
	bl	_brcmf_sdio_sendfromq
	b	LBB0_32
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_intstatus,8,3                  ; @intstatus
	.comm	_SDIO,4,2                       ; @SDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_CLK_PENDING,8,3                ; @CLK_PENDING
	.comm	_SBSDIO_FUNC1_CHIPCLKCSR,4,2    ; @SBSDIO_FUNC1_CHIPCLKCSR
l_.str.1:                               ; @.str.1
	.asciz	"DPC: PENDING, devctl 0x%02x clkctl 0x%02x\n"

	.comm	_SBSDIO_DEVICE_CTL,4,2          ; @SBSDIO_DEVICE_CTL
	.comm	_SBSDIO_DEVCTL_CA_INT_ONLY,4,2  ; @SBSDIO_DEVCTL_CA_INT_ONLY
	.comm	_CLK_AVAIL,8,3                  ; @CLK_AVAIL
	.comm	_I_HMB_FC_CHANGE,8,3            ; @I_HMB_FC_CHANGE
	.comm	_I_HMB_FC_STATE,8,3             ; @I_HMB_FC_STATE
	.comm	_I_HMB_HOST_INT,8,3             ; @I_HMB_HOST_INT
	.comm	_I_WR_OOSYNC,8,3                ; @I_WR_OOSYNC
l_.str.2:                               ; @.str.2
	.asciz	"Dongle reports WR_OOSYNC\n"

	.comm	_I_RD_OOSYNC,8,3                ; @I_RD_OOSYNC
l_.str.3:                               ; @.str.3
	.asciz	"Dongle reports RD_OOSYNC\n"

	.comm	_I_SBINT,8,3                    ; @I_SBINT
l_.str.4:                               ; @.str.4
	.asciz	"Dongle reports SBINT\n"

	.comm	_I_CHIPACTIVE,8,3               ; @I_CHIPACTIVE
l_.str.5:                               ; @.str.5
	.asciz	"Dongle reports CHIPACTIVE\n"

	.comm	_I_HMB_FRAME_IND,8,3            ; @I_HMB_FRAME_IND
	.comm	_BRCMF_SDIOD_DATA,8,3           ; @BRCMF_SDIOD_DATA
l_.str.6:                               ; @.str.6
	.asciz	"failed backplane access over SDIO, halting operation\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_brcmf_sdio_dpc
.subsections_via_symbols
