	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_dma_tx               ## -- Begin function b43legacy_dma_tx
	.p2align	4, 0x90
_b43legacy_dma_tx:                      ## @b43legacy_dma_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	movq	%rsi, %rdi
	callq	_skb_get_queue_mapping
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_priority_to_txring
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$0, 8(%rax)
	sete	%dil
	callq	_B43legacy_WARN_ON
	movl	(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_B43legacy_DBG_DMAVERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43legacy_debug
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	callq	_free_slots
	movq	_SLOTS_PER_PACKET@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_b43legacyerr
LBB0_4:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dma_tx_fragment
	movl	%eax, %ebx
	movq	_ENOKEY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%ebx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rdi
	callq	_dev_kfree_skb_any
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_b43legacyerr
	jmp	LBB0_15
LBB0_11:
	movq	%r15, %rdi
	callq	_free_slots
	cmpq	(%r12), %rax
	jl	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_should_inject_overflow
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:
	movq	-40(%rbp), %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %r12d
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movl	%r12d, %esi
	callq	_ieee80211_stop_queue
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	$1, (%rax,%rcx,4)
	movl	$1, (%r15)
	movq	_B43legacy_DBG_DMAVERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43legacy_debug
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	(%r14), %rdi
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_b43legacydbg
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_DBG_DMAVERBOSE,4,2   ## @B43legacy_DBG_DMAVERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet after queue stopped\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_SLOTS_PER_PACKET,8,3           ## @SLOTS_PER_PACKET
L_.str.1:                               ## @.str.1
	.asciz	"DMA queue overflow\n"

	.comm	_ENOKEY,4,2                     ## @ENOKEY
L_.str.2:                               ## @.str.2
	.asciz	"DMA tx mapping failure\n"

L_.str.3:                               ## @.str.3
	.asciz	"Stopped TX ring %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_dma_tx               ; -- Begin function b43legacy_dma_tx
	.p2align	2
_b43legacy_dma_tx:                      ; @b43legacy_dma_tx
	.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	x19, x0
	str	x1, [sp, #8]
	mov	x0, x1
	bl	_skb_get_queue_mapping
	mov	x1, x0
	mov	x0, x19
	bl	_priority_to_txring
	mov	x20, x0
	ldr	w8, [x0, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_B43legacy_WARN_ON
	ldr	w0, [x20]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _B43legacy_DBG_DMAVERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_DBG_DMAVERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_debug
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_free_slots
Lloh5:
	adrp	x22, _SLOTS_PER_PACKET@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SLOTS_PER_PACKET@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_b43legacyerr
LBB0_6:
Lloh9:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	add	x1, sp, #8
	mov	x0, x20
	bl	_dma_tx_fragment
	mov	x21, x0
Lloh12:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_dev_kfree_skb_any
	mov	w21, #0
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x19]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_b43legacyerr
	b	LBB0_7
LBB0_12:
	mov	x0, x20
	bl	_free_slots
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_should_inject_overflow
	cbz	x0, LBB0_7
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_skb_get_queue_mapping
	mov	x22, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	mov	x1, x22
	bl	_ieee80211_stop_queue
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, w22, uxtw #2]
	str	w9, [x20]
Lloh17:
	adrp	x8, _B43legacy_DBG_DMAVERBOSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B43legacy_DBG_DMAVERBOSE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_debug
	cbz	x0, LBB0_7
; %bb.15:
	ldr	x0, [x19]
	ldr	w2, [x20, #4]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_b43legacydbg
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_DBG_DMAVERBOSE,4,2   ; @B43legacy_DBG_DMAVERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet after queue stopped\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_SLOTS_PER_PACKET,8,3           ; @SLOTS_PER_PACKET
l_.str.1:                               ; @.str.1
	.asciz	"DMA queue overflow\n"

	.comm	_ENOKEY,4,2                     ; @ENOKEY
l_.str.2:                               ; @.str.2
	.asciz	"DMA tx mapping failure\n"

l_.str.3:                               ; @.str.3
	.asciz	"Stopped TX ring %d\n"

.subsections_via_symbols
