	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_tx
_brcms_c_tx:                            ## @brcms_c_tx
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_INVALIDFID@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	movq	%rsi, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %edi
	callq	_brcms_ac_to_fifo
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movslq	%ebx, %rdx
	movq	(%rcx,%rdx,8), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_TX_BCMC_FIFO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
LBB0_4:
	cmpq	(%r13), %r12
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	movq	_M_BCMC_FID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_brcms_b_write_shm
LBB0_6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_brcms_c_txfifo
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	jmp	LBB0_7
LBB0_1:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcms_warn
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_get_queue_mapping
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ieee80211_queue_stopped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_INVALIDFID,8,3                 ## @INVALIDFID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received frame for tx with no space in DMA ring\n"

	.comm	_TX_BCMC_FIFO,4,2               ## @TX_BCMC_FIFO
	.comm	_M_BCMC_FID,4,2                 ## @M_BCMC_FID
	.no_dead_strip	_brcms_c_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_tx
_brcms_c_tx:                            ; @brcms_c_tx
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _INVALIDFID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INVALIDFID@GOTPAGEOFF]
	ldr	x22, [x23]
	mov	x0, x1
	bl	_skb_get_queue_mapping
	bl	_brcms_ac_to_fifo
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, w0, sxtw #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _TX_BCMC_FIFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_BCMC_FIFO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x22, x0
LBB0_3:
	ldr	x8, [x23]
	cmp	x22, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _M_BCMC_FID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_BCMC_FID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_brcms_b_write_shm
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_brcms_c_txfifo
	mov	x19, x0
	bl	_WARN_ON_ONCE
	b	LBB0_7
LBB0_6:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcms_warn
	ldr	x8, [x20, #8]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_skb_get_queue_mapping
	mov	x1, x0
	mov	x0, x20
	bl	_ieee80211_queue_stopped
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh10:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_INVALIDFID,8,3                 ; @INVALIDFID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received frame for tx with no space in DMA ring\n"

	.comm	_TX_BCMC_FIFO,4,2               ; @TX_BCMC_FIFO
	.comm	_M_BCMC_FID,4,2                 ; @M_BCMC_FID
	.no_dead_strip	_brcms_c_tx
.subsections_via_symbols
