	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_bus_txctl
_brcmf_sdio_bus_txctl:                  ## @brcmf_sdio_bus_txctl
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	8(%rbx), %r13
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%rbx), %rax
	movq	_BRCMF_SDIOD_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r12, (%r13)
	movl	%r15d, 36(%r13)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wmb
	movl	$1, 8(%r13)
	movq	%r13, %rdi
	callq	_brcmf_sdio_trigger_dpc
	xorl	%esi, %esi
	cmpl	$0, 8(%r13)
	movl	32(%r13), %edi
	sete	%sil
	movq	_CTL_DONE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_interruptible_timeout
	cmpl	$0, 8(%r13)
	je	LBB0_6
## %bb.3:
	movq	24(%r13), %rax
	movl	(%rax), %edi
	callq	_sdio_claim_host
	cmpl	$0, 8(%r13)
	je	LBB0_5
## %bb.4:
	movq	_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	$0, 8(%r13)
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movq	24(%r13), %rax
	movl	(%rax), %edi
	callq	_sdio_release_host
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_8:
	incl	20(%r13)
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	xorl	%eax, %eax
	callq	_rmb
	movl	12(%r13), %r14d
	testl	%r14d, %r14d
	jne	LBB0_8
LBB0_9:
	incl	16(%r13)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %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_DONE_TIMEOUT,4,2           ## @CTL_DONE_TIMEOUT
	.comm	_SDIO,4,2                       ## @SDIO
L_.str.1:                               ## @.str.1
	.asciz	"ctrl_frame timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"ctrl_frame complete, err=%d\n"

	.no_dead_strip	_brcmf_sdio_bus_txctl
.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_txctl
_brcmf_sdio_bus_txctl:                  ; @brcmf_sdio_bus_txctl
	.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	x20, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	ldr	x22, [x0]
	ldr	x19, [x22, #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, [x22]
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_4
; %bb.1:
	str	x21, [x19]
	str	w20, [x19, #36]
	bl	_wmb
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_brcmf_sdio_trigger_dpc
	ldr	w0, [x19, #32]
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w1, eq
Lloh8:
	adrp	x8, _CTL_DONE_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CTL_DONE_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_wait_event_interruptible_timeout
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_sdio_claim_host
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _SDIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDIO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	str	wzr, [x19, #8]
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_sdio_release_host
	cbz	w20, LBB0_9
; %bb.7:
	cbz	w20, LBB0_10
LBB0_8:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x8, _SDIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SDIO@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w8, [x19, #12]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	bl	_rmb
	ldr	w20, [x19, #12]
	cbnz	w20, LBB0_8
LBB0_10:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_11:
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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_DONE_TIMEOUT,4,2           ; @CTL_DONE_TIMEOUT
	.comm	_SDIO,4,2                       ; @SDIO
l_.str.1:                               ; @.str.1
	.asciz	"ctrl_frame timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"ctrl_frame complete, err=%d\n"

	.no_dead_strip	_brcmf_sdio_bus_txctl
.subsections_via_symbols
