	.file	"extr_ieee802_11_he.c_hostapd_eid_he_capab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hostapd_eid_he_capab
	.type	hostapd_eid_he_capab, @function
hostapd_eid_he_capab:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rax]
	mov	rax, rsi
	test	r14, r14
	je	.L1
	mov	rax, QWORD PTR [r14]
	mov	ebp, edx
	mov	rbx, rsi
	mov	r12, rdi
	sal	rbp, 5
	mov	r13d, DWORD PTR HE_PHYCAP_CHANNEL_WIDTH_MASK[rip]
	add	rax, rbp
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	not	r13d
	mov	edi, DWORD PTR [rax]
	call	ieee80211_he_ppet_size@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 130
	je	.L17
	jg	.L4
	cmp	eax, 128
	je	.L17
	cmp	eax, 129
	jne	.L26
	or	r13d, DWORD PTR HE_PHYCAP_CHANNEL_WIDTH_SET_80PLUS80MHZ_IN_5G[rip]
	mov	r15d, 12
.L7:
	or	r13d, DWORD PTR HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G[rip]
.L3:
	mov	eax, DWORD PTR HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G[rip]
	or	eax, DWORD PTR HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G[rip]
	or	r13d, eax
	lea	eax, [r8+r15]
.L6:
	mov	edx, DWORD PTR WLAN_EID_EXTENSION[rip]
	lea	ecx, 24[rax]
	add	eax, 25
	lea	r9, 12[rbx]
	mov	DWORD PTR 4[rbx], eax
	mov	rdi, r9
	xor	esi, esi
	mov	DWORD PTR [rbx], edx
	mov	eax, DWORD PTR WLAN_EID_EXT_HE_CAPABILITIES[rip]
	mov	edx, 24
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 8[rbx], eax
	mov	QWORD PTR [rsp], r9
	mov	DWORD PTR 8[rsp], ecx
	call	os_memset@PLT
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR 12[rbx]
	mov	edx, DWORD PTR HE_MAX_MAC_CAPAB_SIZE[rip]
	mov	rsi, QWORD PTR 24[rax+rbp]
	call	os_memcpy@PLT
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR 20[rbx]
	mov	edx, DWORD PTR HE_MAX_PHY_CAPAB_SIZE[rip]
	mov	rsi, QWORD PTR 16[rax+rbp]
	call	os_memcpy@PLT
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR 28[rbx]
	mov	edx, r15d
	mov	rsi, QWORD PTR 8[rax+rbp]
	call	os_memcpy@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	r9, QWORD PTR [rsp]
	test	r8d, r8d
	jne	.L28
.L8:
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX[rip]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 20[rbx]
	cmp	QWORD PTR 24[rcx], 0
	lea	rsi, [rax+rdx*4]
	mov	edx, DWORD PTR HE_PHYCAP_SU_BEAMFORMER_CAPAB[rip]
	mov	edi, DWORD PTR [rsi]
	je	.L9
	or	edx, edi
	mov	DWORD PTR [rsi], edx
.L10:
	mov	rdx, QWORD PTR HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX[rip]
	cmp	QWORD PTR 16[rcx], 0
	lea	rsi, [rax+rdx*4]
	mov	edx, DWORD PTR HE_PHYCAP_SU_BEAMFORMEE_CAPAB[rip]
	mov	edi, DWORD PTR [rsi]
	je	.L11
	or	edx, edi
	mov	DWORD PTR [rsi], edx
.L12:
	mov	rdx, QWORD PTR HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX[rip]
	cmp	QWORD PTR 8[rcx], 0
	lea	rsi, [rax+rdx*4]
	mov	edx, DWORD PTR HE_PHYCAP_MU_BEAMFORMER_CAPAB[rip]
	mov	edi, DWORD PTR [rsi]
	je	.L13
	or	edx, edi
	mov	DWORD PTR [rsi], edx
.L14:
	mov	rdx, QWORD PTR HE_PHYCAP_CHANNEL_WIDTH_SET_IDX[rip]
	movsx	r15, DWORD PTR 8[rsp]
	and	DWORD PTR [rax+rdx*4], r13d
	lea	rax, [r9+r15*4]
.L1:
	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
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r15d, 8
	cmp	eax, 131
	je	.L7
.L26:
	mov	eax, r8d
	xor	r15d, r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	not	edx
	and	edx, edi
	mov	DWORD PTR [rsi], edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	not	edx
	and	edx, edi
	mov	DWORD PTR [rsi], edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	not	edx
	and	edx, edi
	mov	DWORD PTR [rsi], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r15d, 4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rax, QWORD PTR [r14]
	movsx	rcx, r15d
	mov	edx, r8d
	mov	rsi, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR 28[rbx]
	lea	rdi, [rax+rcx*4]
	call	os_memcpy@PLT
	mov	r9, QWORD PTR [rsp]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	hostapd_eid_he_capab, .-hostapd_eid_he_capab
	.comm	WLAN_EID_EXT_HE_CAPABILITIES,4,4
	.comm	WLAN_EID_EXTENSION,4,4
	.comm	HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX,8,8
	.comm	HE_PHYCAP_SU_BEAMFORMER_CAPAB,4,4
	.comm	HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX,8,8
	.comm	HE_PHYCAP_SU_BEAMFORMEE_CAPAB,4,4
	.comm	HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX,8,8
	.comm	HE_PHYCAP_MU_BEAMFORMER_CAPAB,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_IDX,8,8
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_80PLUS80MHZ_IN_5G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_MASK,4,4
	.comm	HE_MAX_PHY_CAPAB_SIZE,4,4
	.comm	HE_MAX_MAC_CAPAB_SIZE,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_ieee802_11_he.c_hostapd_eid_he_capab.c"
	.text
	.align	2
	.global	hostapd_eid_he_capab
	.syntax unified
	.arm
	.fpu softvfp
	.type	hostapd_eid_he_capab, %function
hostapd_eid_he_capab:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	mov	r4, r1
	ldr	r7, [r3, #4]
	sub	sp, sp, #12
	cmp	r7, #0
	moveq	r0, r1
	beq	.L1
	mov	r6, r2
	mov	r5, r0
	ldr	r3, [r7]
	ldr	r1, .L25
	ldr	r2, [r3, r2, lsl #4]
	add	r3, r3, r6, lsl #4
	ldr	r8, [r1]
	ldr	r0, [r2]
	ldr	r1, [r3, #8]
	bl	ieee80211_he_ppet_size
	ldr	r3, [r5]
	mvn	r8, r8
	ldr	r3, [r3]
	mov	r9, r0
	ldr	r3, [r3]
	lsl	r10, r6, #4
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L5:
	.word	.L17
	.word	.L7
	.word	.L17
	.word	.L18
.L17:
	mov	fp, #4
.L6:
	ldr	r2, .L25+4
	ldr	r3, .L25+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	ip, r9, fp
	orr	r2, r2, r3
	orr	r8, r8, r2
.L3:
	ldr	r2, .L25+12
	ldr	r3, .L25+16
	ldr	r1, [r2]
	add	r2, ip, #13
	str	r2, [r4, #4]
	mov	r2, #12
	str	r1, [r4]
	ldr	r1, [r3]
	add	r3, r4, #12
	mov	r0, r3
	str	r1, [r4, #8]
	str	r3, [sp, #4]
	mov	r1, #0
	add	r3, ip, r2
	str	r3, [sp]
	bl	os_memset
	ldr	r2, [r7]
	ldr	r0, .L25+20
	add	r2, r2, r10
	ldr	r1, [r2, #12]
	ldr	r2, [r0]
	ldr	r0, [r4, #12]
	bl	os_memcpy
	ldr	r2, [r7]
	ldr	r0, .L25+24
	add	r2, r2, r10
	ldr	r1, [r2, #8]
	ldr	r2, [r0]
	ldr	r0, [r4, #16]
	bl	os_memcpy
	ldr	r1, [r7]
	mov	r2, fp
	add	r10, r1, r10
	ldr	r1, [r10, #4]
	ldr	r0, [r4, #20]
	bl	os_memcpy
	cmp	r9, #0
	ldr	r3, [sp, #4]
	bne	.L24
.L8:
	ldr	r2, [r5]
	ldr	ip, .L25+28
	ldr	r1, [r2]
	ldr	ip, [ip]
	ldr	r2, [r4, #16]
	ldr	r0, [r1, #12]
	ldr	lr, .L25+32
	cmp	r0, #0
	ldr	lr, [lr]
	ldr	r0, [r2, ip, lsl #2]
	orrne	r0, r0, lr
	biceq	r0, r0, lr
	str	r0, [r2, ip, lsl #2]
	ldr	ip, .L25+36
	ldr	r0, [r1, #8]
	ldr	ip, [ip]
	ldr	lr, .L25+40
	cmp	r0, #0
	ldr	lr, [lr]
	ldr	r0, [r2, ip, lsl #2]
	ldr	r1, [r1, #4]
	orrne	r0, r0, lr
	biceq	r0, r0, lr
	str	r0, [r2, ip, lsl #2]
	ldr	r0, .L25+44
	ldr	ip, .L25+48
	ldr	r0, [r0]
	ldr	ip, [ip]
	cmp	r1, #0
	ldr	r1, [r2, r0, lsl #2]
	orrne	r1, r1, ip
	biceq	r1, r1, ip
	str	r1, [r2, r0, lsl #2]
	ldr	r1, .L25+52
	ldr	r0, [sp]
	ldr	r1, [r1]
	add	r0, r3, r0, lsl #2
	ldr	r3, [r2, r1, lsl #2]
	and	r8, r8, r3
	str	r8, [r2, r1, lsl #2]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r2, [r7]
	ldr	r0, [r4, #20]
	ldr	r1, [r2, r6, lsl #4]
	add	r0, r0, fp, lsl #2
	mov	r2, r9
	bl	os_memcpy
	ldr	r3, [sp, #4]
	b	.L8
.L18:
	mov	fp, #8
.L4:
	ldr	r3, .L25+56
	ldr	r3, [r3]
	orr	r8, r8, r3
	b	.L6
.L7:
	ldr	r3, .L25+60
	mov	fp, #12
	ldr	r3, [r3]
	orr	r8, r8, r3
	b	.L4
.L16:
	mov	ip, r0
	mov	fp, #0
	b	.L3
.L26:
	.align	2
.L25:
	.word	HE_PHYCAP_CHANNEL_WIDTH_MASK
	.word	HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G
	.word	HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G
	.word	WLAN_EID_EXTENSION
	.word	WLAN_EID_EXT_HE_CAPABILITIES
	.word	HE_MAX_MAC_CAPAB_SIZE
	.word	HE_MAX_PHY_CAPAB_SIZE
	.word	HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX
	.word	HE_PHYCAP_SU_BEAMFORMER_CAPAB
	.word	HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX
	.word	HE_PHYCAP_SU_BEAMFORMEE_CAPAB
	.word	HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX
	.word	HE_PHYCAP_MU_BEAMFORMER_CAPAB
	.word	HE_PHYCAP_CHANNEL_WIDTH_SET_IDX
	.word	HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G
	.word	HE_PHYCAP_CHANNEL_WIDTH_SET_80PLUS80MHZ_IN_5G
	.size	hostapd_eid_he_capab, .-hostapd_eid_he_capab
	.comm	WLAN_EID_EXT_HE_CAPABILITIES,4,4
	.comm	WLAN_EID_EXTENSION,4,4
	.comm	HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX,4,4
	.comm	HE_PHYCAP_SU_BEAMFORMER_CAPAB,4,4
	.comm	HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX,4,4
	.comm	HE_PHYCAP_SU_BEAMFORMEE_CAPAB,4,4
	.comm	HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX,4,4
	.comm	HE_PHYCAP_MU_BEAMFORMER_CAPAB,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_IDX,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_80PLUS80MHZ_IN_5G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G,4,4
	.comm	HE_PHYCAP_CHANNEL_WIDTH_MASK,4,4
	.comm	HE_MAX_PHY_CAPAB_SIZE,4,4
	.comm	HE_MAX_MAC_CAPAB_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
