	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_txfifo                 ## -- Begin function brcms_c_txfifo
	.p2align	4, 0x90
_brcms_c_txfifo:                        ## @brcms_c_txfifo
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %r12
	movq	%r12, %rsi
	callq	_dma_txfast
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
LBB0_2:
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	_TX_HEADROOM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.3:
	movq	_TX_BCMC_FIFO@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jbe	LBB0_6
## %bb.4:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_ieee80211_queue_stopped
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_ieee80211_stop_queue
LBB0_6:
	movl	%r14d, %eax
	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	"txfifo: fatal, toss frames !!!\n"

	.comm	_TX_HEADROOM,8,3                ## @TX_HEADROOM
	.comm	_TX_BCMC_FIFO,8,3               ## @TX_BCMC_FIFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_txfifo                 ; -- Begin function brcms_c_txfifo
	.p2align	2
_brcms_c_txfifo:                        ; @brcms_c_txfifo
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x23, [x8, x1, lsl #3]
	mov	x1, x23
	bl	_dma_txfast
	mov	x20, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
LBB0_2:
	mov	x0, x22
	bl	_skb_get_queue_mapping
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _TX_HEADROOM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TX_HEADROOM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _TX_BCMC_FIFO@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TX_BCMC_FIFO@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x21, #0, le
	b.ls	LBB0_5
; %bb.3:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_ieee80211_queue_stopped
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_ieee80211_stop_queue
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"txfifo: fatal, toss frames !!!\n"

	.comm	_TX_HEADROOM,8,3                ; @TX_HEADROOM
	.comm	_TX_BCMC_FIFO,8,3               ; @TX_BCMC_FIFO
.subsections_via_symbols
