	.file	"extr_htt_tx.c_ath10k_htt_tx_hl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Not enough headroom in skb. Current headroom: %u, needed: %u. Reallocating...\n"
	.align 8
.LC1:
	.string	"htt hl tx: Unable to realloc skb!\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"msdu_id allocation failed %d\n"
	.text
	.p2align 4
	.type	ath10k_htt_tx_hl, @function
ath10k_htt_tx_hl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR 8[rdi]
	mov	rdi, rdx
	mov	r13, QWORD PTR 16[rdx]
	call	ATH10K_SKB_CB@PLT
	mov	rsi, r12
	mov	rdi, r15
	mov	QWORD PTR [rsp], rax
	call	ath10k_htt_tx_get_vdev_id@PLT
	xor	esi, esi
	cmp	ebp, 131
	mov	rdi, r12
	sete	sil
	mov	r14d, eax
	call	ath10k_htt_tx_get_tid@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	DWORD PTR 8[rsp], eax
	call	ieee80211_is_action@PLT
	test	rax, rax
	jne	.L5
	mov	edi, DWORD PTR 0[r13]
	call	ieee80211_is_deauth@PLT
	test	rax, rax
	je	.L28
.L5:
	mov	edi, DWORD PTR 0[r13]
	call	ieee80211_has_protected@PLT
	test	rax, rax
	jne	.L29
.L6:
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 12[rsp], eax
	cmp	ebp, 130
	je	.L7
.L33:
	ja	.L8
	lea	eax, -128[rbp]
	xor	r13d, r13d
	cmp	eax, 1
	ja	.L9
	mov	r13d, DWORD PTR HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT[rip]
.L11:
	mov	esi, DWORD PTR HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE[rip]
	mov	edi, ebp
	call	SM@PLT
	or	r13d, eax
.L9:
	mov	rax, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR ATH10K_SKB_F_NO_HWCRYPT[rip], eax
	je	.L12
	or	r13d, DWORD PTR HTT_DATA_TX_DESC_FLAGS0_NO_ENCRYPT[rip]
.L12:
	mov	esi, DWORD PTR HTT_DATA_TX_DESC_FLAGS1_VDEV_ID[rip]
	mov	edi, r14d
	call	SM@PLT
	mov	esi, DWORD PTR HTT_DATA_TX_DESC_FLAGS1_EXT_TID[rip]
	mov	edi, DWORD PTR 8[rsp]
	mov	ebp, eax
	call	SM@PLT
	or	ebp, eax
	mov	rax, QWORD PTR CHECKSUM_PARTIAL[rip]
	cmp	QWORD PTR 8[r12], rax
	je	.L30
.L13:
	mov	rdi, r12
	call	skb_headroom@PLT
	mov	r14, QWORD PTR HTT_TX_HL_NEEDED_HEADROOM[rip]
	cmp	rax, r14
	jl	.L31
.L14:
	cmp	QWORD PTR 8[r15], 0
	jne	.L32
	xor	r8d, r8d
.L16:
	mov	rdi, r12
	mov	DWORD PTR [rsp], r8d
	call	skb_get@PLT
	mov	rdi, r12
	mov	esi, 4
	call	skb_push@PLT
	mov	esi, 40
	mov	rdi, r12
	call	skb_push@PLT
	mov	rax, QWORD PTR 16[r12]
	mov	edx, DWORD PTR HTT_H2T_MSG_TYPE_TX_FRM[rip]
	mov	edi, ebp
	mov	DWORD PTR [rax], edx
	lea	r14, 4[rax]
	mov	DWORD PTR 4[rax], r13d
	call	__cpu_to_le16@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	QWORD PTR 32[r14], rax
	call	__cpu_to_le16@PLT
	mov	r8d, DWORD PTR [rsp]
	mov	QWORD PTR 24[r14], rax
	mov	edi, r8d
	call	__cpu_to_le16@PLT
	mov	QWORD PTR 8[r14], 0
	mov	edi, DWORD PTR HTT_INVALID_PEERID[rip]
	mov	QWORD PTR 16[r14], rax
	call	__cpu_to_le32@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r12
	mov	DWORD PTR 4[r14], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ath10k_htc_send@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	r13d, r13d
	cmp	ebp, 131
	je	.L11
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rsi, r12
	mov	rdi, rbx
	or	ebp, DWORD PTR HTT_DATA_TX_DESC_FLAGS1_POSTPONED[rip]
	call	ath10k_htt_tx_alloc_msdu_id@PLT
	mov	r8d, eax
	test	eax, eax
	jns	.L16
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	mov	DWORD PTR [rsp], eax
	call	ath10k_err@PLT
	mov	r8d, DWORD PTR [rsp]
.L15:
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rdi, r12
	call	skb_headroom@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	r8, r14
	mov	esi, DWORD PTR ATH10K_DBG_HTT[rip]
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	call	ath10k_dbg@PLT
	mov	rsi, QWORD PTR HTT_TX_HL_NEEDED_HEADROOM[rip]
	mov	rdi, r12
	call	skb_realloc_headroom@PLT
	mov	rdi, r12
	mov	r14, rax
	call	kfree_skb@PLT
	mov	r12, r14
	test	r14, r14
	jne	.L14
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	ath10k_warn@PLT
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR IEEE80211_CCMP_MIC_LEN[rip]
	mov	rdi, r12
	call	skb_put@PLT
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 12[rsp], eax
	cmp	ebp, 130
	jne	.L33
.L7:
	mov	esi, DWORD PTR HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE[rip]
	mov	edi, 130
	call	SM@PLT
	or	eax, DWORD PTR HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT[rip]
	mov	r13d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR ATH10K_FLAG_RAW_MODE[rip]
	lea	rsi, 16[r15]
	call	test_bit@PLT
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR HTT_DATA_TX_DESC_FLAGS1_CKSUM_L3_OFFLOAD[rip]
	or	eax, DWORD PTR HTT_DATA_TX_DESC_FLAGS1_CKSUM_L4_OFFLOAD[rip]
	or	ebp, eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR 0[r13]
	call	ieee80211_is_disassoc@PLT
	test	rax, rax
	jne	.L5
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ath10k_htt_tx_hl, .-ath10k_htt_tx_hl
	.comm	IEEE80211_CCMP_MIC_LEN,4,4
	.comm	HTT_TX_HL_NEEDED_HEADROOM,8,8
	.comm	HTT_INVALID_PEERID,4,4
	.comm	HTT_H2T_MSG_TYPE_TX_FRM,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_VDEV_ID,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_POSTPONED,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_EXT_TID,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_CKSUM_L4_OFFLOAD,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_CKSUM_L3_OFFLOAD,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS0_NO_ENCRYPT,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT,4,4
	.comm	ENOMEM,4,4
	.comm	CHECKSUM_PARTIAL,8,8
	.comm	ATH10K_SKB_F_NO_HWCRYPT,4,4
	.comm	ATH10K_FLAG_RAW_MODE,4,4
	.comm	ATH10K_DBG_HTT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_htt_tx.c_ath10k_htt_tx_hl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Not enough headroom in skb. Current headroom: %u, n"
	.ascii	"eeded: %u. Reallocating...\012\000"
	.align	2
.LC1:
	.ascii	"htt hl tx: Unable to realloc skb!\012\000"
	.align	2
.LC2:
	.ascii	"msdu_id allocation failed %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_htt_tx_hl, %function
ath10k_htt_tx_hl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #20
	mov	r0, r2
	mov	r4, r2
	ldr	fp, [r2, #8]
	mov	r5, r1
	ldr	r10, [r6, #4]
	bl	ATH10K_SKB_CB
	mov	r1, r4
	mov	r9, r0
	mov	r0, r10
	bl	ath10k_htt_tx_get_vdev_id
	sub	r1, r5, #131
	clz	r1, r1
	mov	r8, r0
	lsr	r1, r1, #5
	mov	r0, r4
	bl	ath10k_htt_tx_get_tid
	mov	r7, r0
	ldr	r0, [fp]
	bl	ieee80211_is_action
	cmp	r0, #0
	bne	.L5
	ldr	r0, [fp]
	bl	ieee80211_is_deauth
	cmp	r0, #0
	beq	.L29
.L5:
	ldr	r0, [fp]
	bl	ieee80211_has_protected
	cmp	r0, #0
	bne	.L30
.L6:
	cmp	r5, #130
	ldr	fp, [r4]
	beq	.L7
.L34:
	bhi	.L8
	sub	r3, r5, #128
	cmp	r3, #1
	bhi	.L17
	ldr	r3, .L35
	ldr	r3, [r3]
.L11:
	ldr	r2, .L35+4
	mov	r0, r5
	ldr	r1, [r2]
	str	r3, [sp, #12]
	bl	SM
	ldr	r3, [sp, #12]
	orr	r5, r3, r0
.L9:
	ldr	r3, .L35+8
	ldr	r2, [r9]
	ldr	r3, [r3]
	mov	r0, r8
	tst	r2, r3
	ldrne	r3, .L35+12
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	ldr	r3, .L35+16
	ldr	r1, [r3]
	bl	SM
	ldr	r3, .L35+20
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r7
	bl	SM
	ldr	r3, .L35+24
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	orr	r8, r8, r0
	cmp	r2, r3
	beq	.L31
.L13:
	mov	r0, r4
	bl	skb_headroom
	ldr	r7, .L35+28
	ldr	r3, [r7]
	cmp	r0, r3
	blt	.L32
.L14:
	ldr	r9, [r10, #4]
	cmp	r9, #0
	beq	.L16
	ldr	r3, .L35+32
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r6
	orr	r8, r8, r3
	bl	ath10k_htt_tx_alloc_msdu_id
	subs	r9, r0, #0
	blt	.L33
.L16:
	mov	r0, r4
	bl	skb_get
	mov	r1, #4
	mov	r0, r4
	bl	skb_push
	mov	r1, #24
	mov	r0, r4
	bl	skb_push
	ldr	r3, [r4, #8]
	ldr	r2, .L35+36
	mov	r7, r3
	ldr	r2, [r2]
	mov	r0, r8
	str	r2, [r7], #4
	str	r5, [r3, #4]
	bl	__cpu_to_le16
	mov	r3, r0
	mov	r0, fp
	str	r3, [r7, #20]
	bl	__cpu_to_le16
	mov	r3, r0
	mov	r0, r9
	str	r3, [r7, #16]
	bl	__cpu_to_le16
	mov	r2, #0
	ldr	r3, .L35+40
	str	r0, [r7, #12]
	str	r2, [r7, #8]
	ldr	r0, [r3]
	bl	__cpu_to_le32
	mov	r2, r4
	str	r0, [r7, #4]
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ath10k_htc_send
.L8:
	cmp	r5, #131
	moveq	r3, #0
	beq	.L11
.L17:
	mov	r5, #0
	b	.L9
.L32:
	ldr	r3, .L35+44
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r9, [r6, #4]
	str	r1, [sp, #12]
	bl	skb_headroom
	ldr	r2, [r7]
	mov	r3, r0
	ldr	r1, [sp, #12]
	str	r2, [sp]
	mov	r0, r9
	ldr	r2, .L35+48
	bl	ath10k_dbg
	ldr	r1, [r7]
	mov	r0, r4
	bl	skb_realloc_headroom
	mov	r7, r0
	mov	r0, r4
	bl	kfree_skb
	cmp	r7, #0
	movne	r4, r7
	bne	.L14
	ldr	r0, [r6, #4]
	ldr	r1, .L35+52
	bl	ath10k_warn
	ldr	r3, .L35+56
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L30:
	ldr	r3, .L35+60
	mov	r0, r4
	ldr	r1, [r3]
	bl	skb_put
	cmp	r5, #130
	ldr	fp, [r4]
	bne	.L34
.L7:
	ldr	r3, .L35+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	SM
	ldr	r3, .L35
	ldr	r3, [r3]
	orr	r5, r0, r3
	b	.L9
.L31:
	ldr	r3, .L35+64
	add	r1, r10, #8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L35+68
	ldr	r2, .L35+72
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r8, r8, r3
	b	.L13
.L29:
	ldr	r0, [fp]
	bl	ieee80211_is_disassoc
	cmp	r0, #0
	bne	.L5
	b	.L6
.L33:
	mov	r0, r10
	mov	r2, r9
	ldr	r1, .L35+76
	bl	ath10k_err
.L15:
.L1:
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	.align	2
.L35:
	.word	HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT
	.word	HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE
	.word	ATH10K_SKB_F_NO_HWCRYPT
	.word	HTT_DATA_TX_DESC_FLAGS0_NO_ENCRYPT
	.word	HTT_DATA_TX_DESC_FLAGS1_VDEV_ID
	.word	HTT_DATA_TX_DESC_FLAGS1_EXT_TID
	.word	CHECKSUM_PARTIAL
	.word	HTT_TX_HL_NEEDED_HEADROOM
	.word	HTT_DATA_TX_DESC_FLAGS1_POSTPONED
	.word	HTT_H2T_MSG_TYPE_TX_FRM
	.word	HTT_INVALID_PEERID
	.word	ATH10K_DBG_HTT
	.word	.LC0
	.word	.LC1
	.word	ENOMEM
	.word	IEEE80211_CCMP_MIC_LEN
	.word	ATH10K_FLAG_RAW_MODE
	.word	HTT_DATA_TX_DESC_FLAGS1_CKSUM_L3_OFFLOAD
	.word	HTT_DATA_TX_DESC_FLAGS1_CKSUM_L4_OFFLOAD
	.word	.LC2
	.size	ath10k_htt_tx_hl, .-ath10k_htt_tx_hl
	.comm	IEEE80211_CCMP_MIC_LEN,4,4
	.comm	HTT_TX_HL_NEEDED_HEADROOM,4,4
	.comm	HTT_INVALID_PEERID,4,4
	.comm	HTT_H2T_MSG_TYPE_TX_FRM,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_VDEV_ID,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_POSTPONED,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_EXT_TID,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_CKSUM_L4_OFFLOAD,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS1_CKSUM_L3_OFFLOAD,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS0_NO_ENCRYPT,4,4
	.comm	HTT_DATA_TX_DESC_FLAGS0_MAC_HDR_PRESENT,4,4
	.comm	ENOMEM,4,4
	.comm	CHECKSUM_PARTIAL,4,4
	.comm	ATH10K_SKB_F_NO_HWCRYPT,4,4
	.comm	ATH10K_FLAG_RAW_MODE,4,4
	.comm	ATH10K_DBG_HTT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
