	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_tx_fill_desc         ## -- Begin function rtl8821ae_tx_fill_desc
	.p2align	4, 0x90
_rtl8821ae_tx_fill_desc:                ## @rtl8821ae_tx_fill_desc
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	32(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r14
	movl	24(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_hal
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_rtl_tx_skb_cb_info
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	__rtl8821ae_map_hwqueue_to_fwqueue
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	_IEEE80211_SCTL_FRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movl	(%r12), %ebx
	movq	_IEEE80211_FCTL_MOREFRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	testl	%ebx, %eax
	sete	-44(%rbp)                       ## 1-byte Folded Spill
	movq	%r12, -168(%rbp)                ## 8-byte Spill
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	movq	_IEEE80211_SCTL_SEQ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_rtl_get_tcb_desc
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_EM_HDR_LEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_skb_push
	movq	8(%r14), %rdi
	movq	(%rbx), %rdx
	xorl	%esi, %esi
	callq	_memset
LBB0_2:
	movl	(%r14), %r12d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	8(%r14), %rsi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edx
	callq	_pci_map_single
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_34
LBB0_4:
	movl	%r15d, -108(%rbp)               ## 4-byte Spill
	movl	%r12d, -96(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_clear_pci_tx_desc_content
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_ieee80211_is_nullfunc
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-152(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_pkt_offset
	movq	_USB_HWDESC_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	_EM_HDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_set_tx_desc_offset
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	104(%r12), %r8
	testq	%r8, %r8
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_11
## %bb.9:
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_rtl8821ae_insert_emcontent
	jmp	LBB0_11
LBB0_5:
	xorl	%r12d, %r12d
	movb	-44(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r12b
	movl	%ebx, %edi
	callq	_ieee80211_is_ctl
	movl	$1, %ecx
	testq	%rax, %rax
	cmovel	%r12d, %ecx
	jne	LBB0_7
## %bb.6:
	movl	%r12d, %ebx
	xorl	%esi, %esi
	movl	-112(%rbp), %eax                ## 4-byte Reload
	andl	-116(%rbp), %eax                ## 4-byte Folded Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_28
	jmp	LBB0_7
LBB0_10:
	movq	_USB_HWDESC_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_set_tx_desc_offset
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:
	sarl	$4, %ebx
	movl	96(%r12), %esi
	movq	%r15, %rdi
	callq	_set_tx_desc_tx_rate
	movl	96(%r12), %eax
	movq	_DESC_RATEMCS0@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setg	%dl
	xorl	%esi, %esi
	cmpq	$0, 80(%r12,%rdx,8)
	setne	%sil
	movq	%r15, %rdi
	callq	_set_tx_desc_data_shortgi
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testl	%eax, (%rcx)
	movq	%r12, %r14
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_agg_enable
	movq	%r15, %rdi
	movl	$31, %esi
	callq	_set_tx_desc_max_agg_num
LBB0_13:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_set_tx_desc_seq
	cmpq	$0, 72(%r14)
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_14
## %bb.15:
	xorl	%esi, %esi
	cmpq	$0, 64(%r14)
	sete	%sil
	jmp	LBB0_16
LBB0_14:
	xorl	%esi, %esi
LBB0_16:
	movq	%r15, %rdi
	callq	_set_tx_desc_rts_enable
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_set_tx_desc_hw_rts_enable
	xorl	%esi, %esi
	cmpq	$0, 64(%r14)
	setne	%sil
	movq	%r15, %rdi
	callq	_set_tx_desc_cts2self
	movl	56(%r14), %esi
	movq	%r15, %rdi
	callq	_set_tx_desc_rts_rate
	movl	60(%r14), %esi
	movq	%r15, %rdi
	callq	_set_tx_desc_rts_sc
	movl	56(%r14), %eax
	movq	_DESC_RATE54M@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setle	%dl
	xorl	%esi, %esi
	cmpq	$0, 40(%r14,%rdx,8)
	setne	%sil
	movq	%r15, %rdi
	callq	_set_tx_desc_rts_short
	cmpq	$0, 32(%r14)
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_nav_use_hdr
LBB0_18:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rtl8821ae_bw_mapping
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_set_tx_desc_data_bw
	movq	%rbx, %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_rtl8821ae_sc_mapping
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_set_tx_desc_tx_sub_carrier
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_set_tx_desc_linip
	movq	%r15, %rdi
	movl	-120(%rbp), %esi                ## 4-byte Reload
	callq	_set_tx_desc_pkt_size
	movq	-136(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_set_tx_desc_ampdu_density
LBB0_20:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movl	(%rax), %eax
	addl	$-128, %eax
	xorl	%esi, %esi
	cmpl	$3, %eax
	ja	LBB0_23
## %bb.22:
	cltq
	leaq	L_switch.table.rtl8821ae_tx_fill_desc(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
LBB0_23:
	movq	%r15, %rdi
	callq	_set_tx_desc_sec_type
LBB0_24:
	movq	%r15, %rdi
	movl	-124(%rbp), %esi                ## 4-byte Reload
	callq	_set_tx_desc_queue_sel
	movq	%r15, %rdi
	movl	$31, %esi
	callq	_set_tx_desc_data_rate_fb_limit
	movq	%r15, %rdi
	movl	$15, %esi
	callq	_set_tx_desc_rts_rate_fb_limit
	xorl	%esi, %esi
	cmpq	$0, 24(%r14)
	setne	%sil
	movq	%r15, %rdi
	callq	_set_tx_desc_disable_fb
	xorl	%esi, %esi
	cmpq	$0, 16(%r14)
	setne	%sil
	movq	%r15, %rdi
	callq	_set_tx_desc_use_rate
	movl	%r12d, %r13d
	movl	%r12d, %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_rdg_enable
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_htc
LBB0_27:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	callq	_rtl_set_tx_report
	movl	$1, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_28:
	movq	%r15, %rdi
	callq	_set_tx_desc_first_seg
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_set_tx_desc_last_seg
	movq	%r15, %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_set_tx_desc_tx_buffer_size
	movq	%r15, %rdi
	movl	-108(%rbp), %esi                ## 4-byte Reload
	callq	_set_tx_desc_tx_buffer_address
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_set_tx_desc_rate_id
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_set_tx_desc_macid
	movl	%r13d, %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_hwseq_en
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_set_tx_desc_hwseq_sel
LBB0_30:
	xorl	$1, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_set_tx_desc_more_frag
	movq	-168(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ieee80211_get_DA
	movl	%eax, %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:
	movq	%r12, %rdi
	callq	_ieee80211_get_DA
	movl	%eax, %edi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	je	LBB0_33
LBB0_32:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_set_tx_desc_bmc
LBB0_33:
	movl	(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_rtl8821ae_dm_set_tx_ant_by_tx_info
	leaq	L_.str.3(%rip), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_34:
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_SCTL_FRAG,4,2        ## @IEEE80211_SCTL_FRAG
	.comm	_IEEE80211_FCTL_MOREFRAGS,4,2   ## @IEEE80211_FCTL_MOREFRAGS
	.comm	_IEEE80211_SCTL_SEQ,4,2         ## @IEEE80211_SCTL_SEQ
	.comm	_EM_HDR_LEN,8,3                 ## @EM_HDR_LEN
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_COMP_SEND,4,2                  ## @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA mapping error\n"

	.comm	_USB_HWDESC_HEADER_LEN,8,3      ## @USB_HWDESC_HEADER_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Insert 8 byte.pTcb->EMPktNum:%d\n"

	.comm	_DESC_RATEMCS0,4,2              ## @DESC_RATEMCS0
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_DESC_RATE54M,4,2               ## @DESC_RATE54M
L_.str.2:                               ## @.str.2
	.asciz	"Enable RDG function.\n"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.rtl8821ae_tx_fill_desc
L_switch.table.rtl8821ae_tx_fill_desc:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_tx_fill_desc         ; -- Begin function rtl8821ae_tx_fill_desc
	.p2align	2
_rtl8821ae_tx_fill_desc:                ; @rtl8821ae_tx_fill_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x7
	mov	x24, x6
	mov	x22, x5
	mov	x21, x4
	str	x2, [sp, #96]                   ; 8-byte Folded Spill
	mov	x28, x1
	mov	x23, x0
	ldr	x20, [x29, #16]
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_mac
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	mov	x0, x23
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x26, x0
	stur	x19, [x29, #-88]                ; 8-byte Folded Spill
	mov	x0, x19
	bl	_rtl_hal
	mov	x19, x0
	mov	x0, x24
	bl	_rtl_tx_skb_cb_info
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w8, [x28]
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	ldr	w8, [x24]
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	mov	x0, x24
	mov	x1, x27
	bl	__rtl8821ae_map_hwqueue_to_fwqueue
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w8, [x28, #4]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _IEEE80211_SCTL_FRAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_SCTL_FRAG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w25, [x28]
Lloh3:
	adrp	x8, _IEEE80211_FCTL_MOREFRAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FCTL_MOREFRAGS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	tst	w0, w25
	cset	w8, eq
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	str	x28, [sp, #80]                  ; 8-byte Folded Spill
	ldr	w0, [x28, #4]
	bl	_le16_to_cpu
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _IEEE80211_SCTL_SEQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_SCTL_SEQ@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	mov	x28, x23
	mov	x0, x23
	str	x21, [sp, #72]                  ; 8-byte Folded Spill
	mov	x1, x21
	mov	x21, x22
	mov	x2, x22
	mov	x3, x24
	mov	x22, x20
	mov	x4, x20
	bl	_rtl_get_tcb_desc
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x25, _EM_HDR_LEN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EM_HDR_LEN@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x24
	bl	_skb_push
	ldr	x0, [x24, #8]
	ldr	x2, [x25]
	mov	w1, #0
	bl	_memset
LBB0_2:
	ldr	w25, [x24]
	ldr	w0, [x26]
	ldr	x1, [x24, #8]
Lloh11:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x2, x25
	bl	_pci_map_single
	mov	x23, x0
	ldr	w0, [x26]
	mov	x1, x23
	bl	_pci_dma_mapping_error
Lloh14:
	adrp	x26, _COMP_SEND@GOTPAGE
Lloh15:
	ldr	x26, [x26, _COMP_SEND@GOTPAGEOFF]
Lloh16:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_38
LBB0_4:
	stp	w23, w25, [sp, #20]             ; 8-byte Folded Spill
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
	mov	w1, #4
	bl	_clear_pci_tx_desc_content
	ldr	w23, [sp, #92]                  ; 4-byte Folded Reload
	mov	x0, x23
	bl	_ieee80211_is_nullfunc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x25, x26
	mov	w26, #1
LBB0_6:
	mov	x20, x28
LBB0_7:
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	and	w8, w27, w8
	asr	w8, w8, #4
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	x8, [x19]
	str	w26, [sp, #36]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_13
; %bb.8:
	ldr	x27, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x27
	mov	w1, #1
	bl	_set_tx_desc_pkt_offset
Lloh20:
	adrp	x8, _USB_HWDESC_HEADER_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USB_HWDESC_HEADER_LEN@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EM_HDR_LEN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EM_HDR_LEN@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x27
	bl	_set_tx_desc_offset
	mov	x19, x22
	ldr	x8, [x22, #104]
	mov	x26, x25
	ldr	x28, [sp, #72]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_14
; %bb.9:
	ldr	w1, [x26]
Lloh26:
	adrp	x9, _DBG_TRACE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DBG_TRACE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x9]
	str	x8, [sp]
Lloh29:
	adrp	x3, l_.str.1@PAGE
Lloh30:
	add	x3, x3, l_.str.1@PAGEOFF
	ldur	x0, [x29, #-88]                 ; 8-byte Folded Reload
	bl	_RT_TRACE
	ldr	x1, [x24, #8]
	mov	x0, x19
	bl	_rtl8821ae_insert_emcontent
	b	LBB0_14
LBB0_10:
	mov	x0, x23
	mov	x25, x26
	bl	_ieee80211_is_ctl
	cmp	x0, #0
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	csinc	w26, w10, wzr, eq
	cbnz	x0, LBB0_6
; %bb.11:
	ldp	w9, w8, [sp, #28]               ; 8-byte Folded Reload
	and	w8, w9, w8
	mov	x20, x28
	cbz	w8, LBB0_7
; %bb.12:
	mov	w1, #0
	mov	x21, x10
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	mov	x26, x25
	mov	x25, x23
	mov	x23, x22
	ldr	x22, [sp, #96]                  ; 8-byte Folded Reload
	b	LBB0_32
LBB0_13:
Lloh31:
	adrp	x8, _USB_HWDESC_HEADER_LEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _USB_HWDESC_HEADER_LEN@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	ldr	x27, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x27
	bl	_set_tx_desc_offset
	mov	x26, x25
	ldr	x28, [sp, #72]                  ; 8-byte Folded Reload
	mov	x19, x22
LBB0_14:
	ldr	w1, [x19, #96]
	mov	x0, x27
	bl	_set_tx_desc_tx_rate
	ldr	w8, [x19, #96]
Lloh34:
	adrp	x9, _DESC_RATEMCS0@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DESC_RATEMCS0@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #80
	mov	w9, #88
	csel	x8, x9, x8, gt
	ldr	x8, [x19, x8]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x27
	bl	_set_tx_desc_data_shortgi
	ldr	w8, [x28]
Lloh37:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	mov	x25, x23
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x27
	mov	w1, #1
	bl	_set_tx_desc_agg_enable
	mov	x0, x27
	mov	w1, #31
	bl	_set_tx_desc_max_agg_num
LBB0_16:
	mov	x0, x27
	ldr	w1, [sp, #52]                   ; 4-byte Folded Reload
	bl	_set_tx_desc_seq
	mov	x23, x22
	ldr	x8, [x22, #72]
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x23, #64]
	cmp	x8, #0
	cset	w1, eq
	b	LBB0_19
LBB0_18:
	mov	w1, #0
LBB0_19:
	ldr	x22, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_set_tx_desc_rts_enable
	mov	x0, x22
	mov	w1, #0
	bl	_set_tx_desc_hw_rts_enable
	ldr	x8, [x23, #64]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x22
	bl	_set_tx_desc_cts2self
	ldr	w1, [x23, #56]
	mov	x0, x22
	bl	_set_tx_desc_rts_rate
	ldr	w1, [x23, #60]
	mov	x0, x22
	bl	_set_tx_desc_rts_sc
	ldr	w8, [x23, #56]
Lloh40:
	adrp	x9, _DESC_RATE54M@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DESC_RATE54M@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #48
	mov	w9, #40
	csel	x8, x9, x8, gt
	ldr	x8, [x23, x8]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x22
	bl	_set_tx_desc_rts_short
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x22
	mov	w1, #1
	bl	_set_tx_desc_nav_use_hdr
LBB0_21:
	mov	x0, x20
	mov	x1, x23
	bl	_rtl8821ae_bw_mapping
	mov	x1, x0
	mov	x0, x22
	bl	_set_tx_desc_data_bw
	mov	x0, x20
	mov	x1, x23
	bl	_rtl8821ae_sc_mapping
	mov	x1, x0
	mov	x0, x22
	bl	_set_tx_desc_tx_sub_carrier
	mov	x0, x22
	mov	w1, #0
	bl	_set_tx_desc_linip
	mov	x0, x22
	ldr	w1, [sp, #56]                   ; 4-byte Folded Reload
	bl	_set_tx_desc_pkt_size
	cbz	x21, LBB0_23
; %bb.22:
	ldr	w1, [x21]
	mov	x0, x22
	bl	_set_tx_desc_ampdu_density
LBB0_23:
	ldr	x8, [x28, #8]
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_28
; %bb.24:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_26
; %bb.25:
Lloh43:
	adrp	x9, l_switch.table.rtl8821ae_tx_fill_desc@PAGE
Lloh44:
	add	x9, x9, l_switch.table.rtl8821ae_tx_fill_desc@PAGEOFF
	ldr	w1, [x9, w8, sxtw #2]
	b	LBB0_27
LBB0_26:
	mov	w1, #0
LBB0_27:
	mov	x0, x22
	bl	_set_tx_desc_sec_type
LBB0_28:
	mov	x0, x22
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	bl	_set_tx_desc_queue_sel
	mov	x0, x22
	mov	w1, #31
	bl	_set_tx_desc_data_rate_fb_limit
	mov	x0, x22
	mov	w1, #15
	bl	_set_tx_desc_rts_rate_fb_limit
	ldr	x8, [x23, #24]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x22
	bl	_set_tx_desc_disable_fb
	ldr	x8, [x23, #16]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x22
	bl	_set_tx_desc_use_rate
	mov	x0, x25
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_31
; %bb.29:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_31
; %bb.30:
	ldr	w1, [x26]
Lloh45:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
Lloh48:
	adrp	x3, l_.str.2@PAGE
Lloh49:
	add	x3, x3, l_.str.2@PAGEOFF
	ldur	x0, [x29, #-88]                 ; 8-byte Folded Reload
	bl	_RT_TRACE
	mov	x0, x22
	mov	w1, #1
	bl	_set_tx_desc_rdg_enable
	mov	x0, x22
	mov	w1, #1
	bl	_set_tx_desc_htc
LBB0_31:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	ldr	x3, [sp, #64]                   ; 8-byte Folded Reload
	bl	_rtl_set_tx_report
	mov	w1, #1
LBB0_32:
	mov	x0, x22
	bl	_set_tx_desc_first_seg
	mov	x0, x22
	mov	x1, x21
	bl	_set_tx_desc_last_seg
	mov	x0, x22
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_set_tx_desc_tx_buffer_size
	mov	x0, x22
	mov	x1, x24
	bl	_set_tx_desc_tx_buffer_address
	ldr	x1, [x23, #8]
	mov	x0, x22
	bl	_set_tx_desc_rate_id
	ldr	w1, [x23]
	mov	x0, x22
	bl	_set_tx_desc_macid
	mov	x0, x25
	bl	_ieee80211_is_data_qos
	cbnz	x0, LBB0_34
; %bb.33:
	mov	x0, x22
	mov	w1, #1
	bl	_set_tx_desc_hwseq_en
	mov	x0, x22
	mov	w1, #0
	bl	_set_tx_desc_hwseq_sel
LBB0_34:
	eor	w1, w21, #0x1
	mov	x0, x22
	bl	_set_tx_desc_more_frag
	mov	x0, x19
	bl	_ieee80211_get_DA
	bl	_is_multicast_ether_addr
	cbnz	x0, LBB0_36
; %bb.35:
	mov	x0, x19
	bl	_ieee80211_get_DA
	bl	_is_broadcast_ether_addr
	cbz	x0, LBB0_37
LBB0_36:
	mov	x0, x22
	mov	w1, #1
	bl	_set_tx_desc_bmc
LBB0_37:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_rtl8821ae_dm_set_tx_ant_by_tx_info
Lloh50:
	adrp	x3, l_.str.3@PAGE
Lloh51:
	add	x3, x3, l_.str.3@PAGEOFF
Lloh52:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
LBB0_38:
	ldr	w1, [x26]
	ldr	w2, [x8]
	ldur	x0, [x29, #-88]                 ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_SCTL_FRAG,4,2        ; @IEEE80211_SCTL_FRAG
	.comm	_IEEE80211_FCTL_MOREFRAGS,4,2   ; @IEEE80211_FCTL_MOREFRAGS
	.comm	_IEEE80211_SCTL_SEQ,4,2         ; @IEEE80211_SCTL_SEQ
	.comm	_EM_HDR_LEN,8,3                 ; @EM_HDR_LEN
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_COMP_SEND,4,2                  ; @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA mapping error\n"

	.comm	_USB_HWDESC_HEADER_LEN,8,3      ; @USB_HWDESC_HEADER_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Insert 8 byte.pTcb->EMPktNum:%d\n"

	.comm	_DESC_RATEMCS0,4,2              ; @DESC_RATEMCS0
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_DESC_RATE54M,4,2               ; @DESC_RATE54M
l_.str.2:                               ; @.str.2
	.asciz	"Enable RDG function.\n"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.rtl8821ae_tx_fill_desc
l_switch.table.rtl8821ae_tx_fill_desc:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	3                               ; 0x3

.subsections_via_symbols
