	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_txdone               ## -- Begin function rt2x00lib_txdone
	.p2align	4, 0x90
_rt2x00lib_txdone:                      ## @rt2x00lib_txdone
	.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, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rdi), %edi
	callq	_IEEE80211_SKB_CB
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_get_skb_frame_desc
	movq	%rax, %r13
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_rt2x00queue_unmap_skb
	movl	(%rbx), %edi
	movl	12(%r14), %esi
	callq	_skb_pull
	movq	_SKBDESC_DESC_IN_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r13)
	movl	(%rbx), %edi
	callq	_ieee80211_get_hdrlen_from_skb
	movl	%eax, %r12d
	movq	_REQUIRE_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_flag
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_rt2x00queue_remove_l2pad
LBB0_2:
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_hw_crypto
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_rt2x00crypto_tx_insert_iv
LBB0_4:
	movq	_DUMP_FRAME_TXDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_rt2x00debug_dump_frame
	movq	%rbx, %rdi
	callq	_rt2x00lib_txdone_bar_status
	movb	$1, %r12b
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_TXDONE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_TXDONE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	setne	%r12b
LBB0_7:
	movzbl	%r12b, %r8d
	addl	%r8d, 4(%r14)
	movl	%r8d, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	addl	%eax, 8(%r14)
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_rt2x00lib_fill_tx_status
	movq	_SKBDESC_NOT_MAC80211@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.11:
	movl	(%rbx), %edi
	callq	_dev_kfree_skb_any
	jmp	LBB0_12
LBB0_8:
	movq	_REQUIRE_TASKLET_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_flag
	movl	(%r14), %edi
	movl	(%rbx), %esi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_ieee80211_tx_status
	jmp	LBB0_12
LBB0_10:
	callq	_ieee80211_tx_status_ni
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00lib_clear_entry          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SKBDESC_DESC_IN_SKB,4,2        ## @SKBDESC_DESC_IN_SKB
	.comm	_REQUIRE_L2PAD,4,2              ## @REQUIRE_L2PAD
	.comm	_DUMP_FRAME_TXDONE,4,2          ## @DUMP_FRAME_TXDONE
	.comm	_TXDONE_SUCCESS,4,2             ## @TXDONE_SUCCESS
	.comm	_TXDONE_UNKNOWN,4,2             ## @TXDONE_UNKNOWN
	.comm	_SKBDESC_NOT_MAC80211,4,2       ## @SKBDESC_NOT_MAC80211
	.comm	_REQUIRE_TASKLET_CONTEXT,4,2    ## @REQUIRE_TASKLET_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_txdone               ; -- Begin function rt2x00lib_txdone
	.p2align	2
_rt2x00lib_txdone:                      ; @rt2x00lib_txdone
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w0, [x0]
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	w0, [x19]
	bl	_get_skb_frame_desc
	mov	x23, x0
	ldr	w25, [x0]
	mov	x0, x19
	bl	_rt2x00queue_unmap_skb
	ldr	w0, [x19]
	ldr	w1, [x20, #12]
	bl	_skb_pull
Lloh0:
	adrp	x8, _SKBDESC_DESC_IN_SKB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKBDESC_DESC_IN_SKB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
	ldr	w0, [x19]
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x24, x0
Lloh3:
	adrp	x8, _REQUIRE_L2PAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQUIRE_L2PAD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_has_cap_flag
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	x1, x24
	bl	_rt2x00queue_remove_l2pad
LBB0_2:
	mov	x0, x20
	bl	_rt2x00_has_cap_hw_crypto
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x24
	bl	_rt2x00crypto_tx_insert_iv
LBB0_4:
Lloh6:
	adrp	x8, _DUMP_FRAME_TXDONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUMP_FRAME_TXDONE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_rt2x00debug_dump_frame
	mov	x0, x19
	bl	_rt2x00lib_txdone_bar_status
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _TXDONE_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXDONE_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_6:
	mov	w8, #1
LBB0_7:
	eor	w9, w8, #0x1
	fmov	s0, w8
	mov.s	v0[1], w9
	ldur	d1, [x20, #4]
	add.2s	v1, v1, v0
	stur	d1, [x20, #4]
	fmov	w4, s0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_rt2x00lib_fill_tx_status
Lloh12:
	adrp	x8, _SKBDESC_NOT_MAC80211@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SKBDESC_NOT_MAC80211@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_dev_kfree_skb_any
	b	LBB0_13
LBB0_9:
Lloh15:
	adrp	x8, _REQUIRE_TASKLET_CONTEXT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REQUIRE_TASKLET_CONTEXT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_has_cap_flag
	mov	x8, x0
	ldr	w0, [x20]
	ldr	w1, [x19]
	cbz	x8, LBB0_12
; %bb.10:
	bl	_ieee80211_tx_status
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x8, _TXDONE_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TXDONE_UNKNOWN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_7
LBB0_12:
	bl	_ieee80211_tx_status_ni
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rt2x00lib_clear_entry
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SKBDESC_DESC_IN_SKB,4,2        ; @SKBDESC_DESC_IN_SKB
	.comm	_REQUIRE_L2PAD,4,2              ; @REQUIRE_L2PAD
	.comm	_DUMP_FRAME_TXDONE,4,2          ; @DUMP_FRAME_TXDONE
	.comm	_TXDONE_SUCCESS,4,2             ; @TXDONE_SUCCESS
	.comm	_TXDONE_UNKNOWN,4,2             ; @TXDONE_UNKNOWN
	.comm	_SKBDESC_NOT_MAC80211,4,2       ; @SKBDESC_NOT_MAC80211
	.comm	_REQUIRE_TASKLET_CONTEXT,4,2    ; @REQUIRE_TASKLET_CONTEXT
.subsections_via_symbols
