	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_txfail
_brcmf_sdio_txfail:                     ## @brcmf_sdio_txfail
	.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	%rdi, %r14
	movq	16(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_brcmf_err
	incl	8(%r14)
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_brcmf_sdiod_abort
	movq	_SBSDIO_FUNC1_FRAMECTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SFC_WF_TERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_brcmf_sdiod_writeb
	incq	(%r14)
	movq	_SBSDIO_FUNC1_WFRAMEBCHI@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readb
	movl	%eax, %r15d
	movq	_SBSDIO_FUNC1_WFRAMEBCLO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readb
	addq	$2, (%r14)
	orl	%r15d, %eax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readb
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readb
	addq	$2, (%r14)
	orl	%r15d, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readb
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readb
	addq	$2, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio error, abort command and terminate frame\n"

	.comm	_SBSDIO_FUNC1_FRAMECTRL,4,2     ## @SBSDIO_FUNC1_FRAMECTRL
	.comm	_SFC_WF_TERM,4,2                ## @SFC_WF_TERM
	.comm	_SBSDIO_FUNC1_WFRAMEBCHI,4,2    ## @SBSDIO_FUNC1_WFRAMEBCHI
	.comm	_SBSDIO_FUNC1_WFRAMEBCLO,4,2    ## @SBSDIO_FUNC1_WFRAMEBCLO
	.no_dead_strip	_brcmf_sdio_txfail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_txfail
_brcmf_sdio_txfail:                     ; @brcmf_sdio_txfail
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_brcmf_err
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x20
	bl	_brcmf_sdiod_abort
Lloh2:
	adrp	x8, _SBSDIO_FUNC1_FRAMECTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SBSDIO_FUNC1_FRAMECTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SFC_WF_TERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SFC_WF_TERM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	bl	_brcmf_sdiod_writeb
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh8:
	adrp	x22, _SBSDIO_FUNC1_WFRAMEBCHI@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SBSDIO_FUNC1_WFRAMEBCHI@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, #0
	bl	_brcmf_sdiod_readb
	mov	x21, x0
Lloh10:
	adrp	x23, _SBSDIO_FUNC1_WFRAMEBCLO@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SBSDIO_FUNC1_WFRAMEBCLO@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_brcmf_sdiod_readb
	ldr	x8, [x19]
	add	x8, x8, #2
	str	x8, [x19]
	orr	w8, w21, w0
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, #0
	bl	_brcmf_sdiod_readb
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_brcmf_sdiod_readb
	ldr	x8, [x19]
	add	x8, x8, #2
	str	x8, [x19]
	orr	w8, w21, w0
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, #0
	bl	_brcmf_sdiod_readb
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_brcmf_sdiod_readb
	ldr	x8, [x19]
	add	x8, x8, #2
	str	x8, [x19]
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio error, abort command and terminate frame\n"

	.comm	_SBSDIO_FUNC1_FRAMECTRL,4,2     ; @SBSDIO_FUNC1_FRAMECTRL
	.comm	_SFC_WF_TERM,4,2                ; @SFC_WF_TERM
	.comm	_SBSDIO_FUNC1_WFRAMEBCHI,4,2    ; @SBSDIO_FUNC1_WFRAMEBCHI
	.comm	_SBSDIO_FUNC1_WFRAMEBCLO,4,2    ; @SBSDIO_FUNC1_WFRAMEBCLO
	.no_dead_strip	_brcmf_sdio_txfail
.subsections_via_symbols
