	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_bus_rxctl
_brcmf_sdio_bus_rxctl:                  ## @brcmf_sdio_bus_rxctl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	8(%rbx), %r14
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%rbx), %rax
	movq	_BRCMF_SDIOD_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	leaq	16(%r14), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_sdio_dcmd_resp_wait
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	16(%r14), %r12
	movq	32(%r14), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_min
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	$0, 32(%r14)
	movq	24(%r14), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%r15, %rdi
	callq	_vfree
	testq	%r12, %r12
	je	LBB0_3
## %bb.7:
	movq	_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_brcmf_dbg
	incl	4(%r14)
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:
	cmpl	$0, -48(%rbp)
	movq	_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_brcmf_err
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_9:
	movq	%r14, %rdi
	callq	_brcmf_sdio_checkdied
	incl	(%r14)
LBB0_10:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	testq	%r12, %r12
	cmovel	%ecx, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_SDIOD_DATA,8,3           ## @BRCMF_SDIOD_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CTL,4,2                        ## @CTL
L_.str.1:                               ## @.str.1
	.asciz	"resumed on rxctl frame, got %d expected %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"resumed on timeout\n"

L_.str.3:                               ## @.str.3
	.asciz	"cancelled\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
L_.str.4:                               ## @.str.4
	.asciz	"resumed for unknown reason?\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_brcmf_sdio_bus_rxctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_bus_rxctl
_brcmf_sdio_bus_rxctl:                  ; @brcmf_sdio_bus_rxctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	ldr	x19, [x20, #8]
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
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _BRCMF_SDIOD_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMF_SDIOD_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	add	x1, x19, #16
	add	x2, sp, #28
	mov	x0, x19
	bl	_brcmf_sdio_dcmd_resp_wait
	mov	x23, x0
	add	x24, x19, #8
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	x20, [x19, #16]
	ldr	x25, [x19, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_min
	mov	x2, x0
	mov	x0, x22
	mov	x1, x25
	bl	_memcpy
	ldr	x22, [x19, #24]
	str	xzr, [x19, #16]
	stp	xzr, xzr, [x19, #24]
	mov	x0, x24
	bl	_spin_unlock_bh
	mov	x0, x22
	bl	_vfree
	cbz	x20, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	stp	x20, x21, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_3:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	cbz	w23, LBB0_8
; %bb.6:
	ldr	w8, [sp, #28]
Lloh15:
	adrp	x9, _CTL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CTL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	cbz	w8, LBB0_9
; %bb.7:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
Lloh20:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_brcmf_err
	b	LBB0_10
LBB0_9:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_brcmf_dbg
LBB0_10:
	mov	x0, x19
	bl	_brcmf_sdio_checkdied
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_11:
Lloh26:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	x20, #0
	csneg	w0, w20, w8, ne
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_SDIOD_DATA,8,3           ; @BRCMF_SDIOD_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CTL,4,2                        ; @CTL
l_.str.1:                               ; @.str.1
	.asciz	"resumed on rxctl frame, got %d expected %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"resumed on timeout\n"

l_.str.3:                               ; @.str.3
	.asciz	"cancelled\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
l_.str.4:                               ; @.str.4
	.asciz	"resumed for unknown reason?\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_brcmf_sdio_bus_rxctl
.subsections_via_symbols
