	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_dma_tx                     ## -- Begin function b43_dma_tx
	.p2align	4, 0x90
_b43_dma_tx:                            ## @b43_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	%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, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rbx
	movq	8(%r14), %r12
	movq	_IEEE80211_FCTL_MOREDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_skb_get_queue_mapping
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_select_ring_by_priority
	movq	%rax, %r12
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, 16(%r12)
	sete	%dil
	callq	_B43_WARN_ON
	movl	(%r12), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_B43_DBG_DMAVERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_debug
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movq	%r12, %rdi
	callq	_free_slots
	movq	_TX_SLOTS_PER_FRAME@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	callq	_b43err
LBB0_7:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	callq	_skb_get_queue_mapping
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	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_12
## %bb.11:
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movq	%r15, %rsi
	callq	_ieee80211_free_txskb
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_12:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_b43err
	jmp	LBB0_18
LBB0_14:
	movq	%r12, %rdi
	callq	_free_slots
	cmpq	(%r13), %rax
	jl	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_should_inject_overflow
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:
	movq	%r15, %rdi
	callq	_skb_get_queue_mapping
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movl	%r15d, %esi
	callq	_ieee80211_stop_queue
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	$1, (%rax,%rcx,4)
	movl	$1, (%r12)
	movq	_B43_DBG_DMAVERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_debug
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	(%r14), %rdi
	movl	4(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_b43dbg
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ## @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_IEEE80211_FCTL_MOREDATA,4,2    ## @IEEE80211_FCTL_MOREDATA
	.comm	_B43_DBG_DMAVERBOSE,4,2         ## @B43_DBG_DMAVERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet after queue stopped\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_TX_SLOTS_PER_FRAME,8,3         ## @TX_SLOTS_PER_FRAME
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	_b43_dma_tx                     ; -- Begin function b43_dma_tx
	.p2align	2
_b43_dma_tx:                            ; @b43_dma_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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x22, [x20]
	ldr	x21, [x19, #8]
Lloh3:
	adrp	x8, _IEEE80211_FCTL_MOREDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FCTL_MOREDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x1, x0
	mov	x0, x19
	bl	_select_ring_by_priority
	mov	x21, x0
LBB0_3:
	ldr	w8, [x21, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_B43_WARN_ON
	ldr	w0, [x21]
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _B43_DBG_DMAVERBOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_DBG_DMAVERBOSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_debug
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_free_slots
Lloh11:
	adrp	x23, _TX_SLOTS_PER_FRAME@GOTPAGE
Lloh12:
	ldr	x23, [x23, _TX_SLOTS_PER_FRAME@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_b43err
LBB0_9:
Lloh15:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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
LBB0_11:
	mov	x0, x20
	bl	_skb_get_queue_mapping
	str	x0, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_dma_tx_fragment
	mov	x22, x0
Lloh18:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	mov	x1, x20
	bl	_ieee80211_free_txskb
	mov	w22, #0
	b	LBB0_10
LBB0_13:
	mov	x0, x22
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x0, [x19]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_b43err
	b	LBB0_10
LBB0_15:
	mov	x0, x21
	bl	_free_slots
	ldr	x8, [x23]
	cmp	x0, x8
	b.lt	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_should_inject_overflow
	cbz	x0, LBB0_10
LBB0_17:
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	mov	x1, x20
	bl	_ieee80211_stop_queue
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, w20, uxtw #2]
	str	w9, [x21]
Lloh23:
	adrp	x8, _B43_DBG_DMAVERBOSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _B43_DBG_DMAVERBOSE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_debug
	cbz	x0, LBB0_10
; %bb.18:
	ldr	x0, [x19]
	ldr	w2, [x21, #4]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_b43dbg
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ; @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_IEEE80211_FCTL_MOREDATA,4,2    ; @IEEE80211_FCTL_MOREDATA
	.comm	_B43_DBG_DMAVERBOSE,4,2         ; @B43_DBG_DMAVERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet after queue stopped\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_TX_SLOTS_PER_FRAME,8,3         ; @TX_SLOTS_PER_FRAME
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
