	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_bus_txdata
_brcmf_sdio_bus_txdata:                 ## @brcmf_sdio_bus_txdata
	.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	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	8(%rbx), %r12
	movq	_TRACE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movslq	20(%r14), %rdx
	movl	16(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%rbx), %rax
	movq	_BRCMF_SDIOD_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	12(%r12), %esi
	movq	%r14, %rdi
	callq	_skb_push
	movq	_PRIOMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_prio2prec
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r13d
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_pktq_len
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	incl	16(%r12)
	leaq	8(%r12), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	8(%r14), %rax
	movq	$0, (%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_brcmf_sdio_prec_enq
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	12(%r12), %esi
	movq	%r14, %rdi
	callq	_skb_pull
	leaq	L_.str.2(%rip), %rdi
	callq	_brcmf_err
	movq	_ENOSR@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movq	%rbx, %rdi
	callq	_pktq_len
	movq	_TXHI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	movl	$1, (%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_brcmf_proto_bcdc_txflowblock
LBB0_6:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	callq	_brcmf_sdio_trigger_dpc
	jmp	LBB0_7
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADE,4,2                      ## @EBADE
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter: pkt: data %p len %d\n"

	.comm	_BRCMF_SDIOD_DATA,8,3           ## @BRCMF_SDIOD_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PRIOMASK,4,2                   ## @PRIOMASK
L_.str.1:                               ## @.str.1
	.asciz	"deferring pktq len %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"out of bus->txq !!!\n"

	.comm	_ENOSR,4,2                      ## @ENOSR
	.comm	_TXHI,8,3                       ## @TXHI
	.comm	_qcount,8,3                     ## @qcount
	.no_dead_strip	_brcmf_sdio_bus_txdata
.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_txdata
_brcmf_sdio_bus_txdata:                 ; @brcmf_sdio_bus_txdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	bl	_dev_get_drvdata
	ldr	x23, [x0]
	ldr	x19, [x23, #8]
Lloh0:
	adrp	x22, _TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRACE@GOTPAGEOFF]
	ldr	w0, [x22]
	ldp	w8, w2, [x21, #16]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x23]
Lloh4:
	adrp	x9, _BRCMF_SDIOD_DATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BRCMF_SDIOD_DATA@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_skb_push
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _PRIOMASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PRIOMASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_prio2prec
	mov	x24, x0
	ldr	w22, [x22]
	add	x23, x19, #4
	mov	x0, x23
	bl	_pktq_len
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_brcmf_dbg
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x21, #8]
	str	xzr, [x8]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_brcmf_sdio_prec_enq
	cbz	w0, LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_4:
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_skb_pull
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_brcmf_err
Lloh17:
	adrp	x8, _ENOSR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x23
	bl	_pktq_len
Lloh20:
	adrp	x8, _TXHI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TXHI@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_brcmf_proto_bcdc_txflowblock
LBB0_7:
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_brcmf_sdio_trigger_dpc
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADE,4,2                      ; @EBADE
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter: pkt: data %p len %d\n"

	.comm	_BRCMF_SDIOD_DATA,8,3           ; @BRCMF_SDIOD_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PRIOMASK,4,2                   ; @PRIOMASK
l_.str.1:                               ; @.str.1
	.asciz	"deferring pktq len %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"out of bus->txq !!!\n"

	.comm	_ENOSR,4,2                      ; @ENOSR
	.comm	_TXHI,8,3                       ; @TXHI
	.comm	_qcount,8,3                     ; @qcount
	.no_dead_strip	_brcmf_sdio_bus_txdata
.subsections_via_symbols
