	.file	"extr_ieee802_11_vht.c_hostapd_get_vht_capab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hostapd_get_vht_capab
	.type	hostapd_get_vht_capab, @function
hostapd_get_vht_capab:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L22
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	mov	edx, 4
	mov	rdi, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	os_memcpy@PLT
	mov	edi, DWORD PTR [rbx]
	call	le_to_host32@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR VHT_CAP_SHORT_GI_80[rip]
	mov	esi, DWORD PTR VHT_CAP_SU_BEAMFORMEE_CAPABLE[rip]
	mov	ecx, DWORD PTR [rdx]
	mov	edx, DWORD PTR VHT_CAP_SHORT_GI_160[rip]
	or	edi, edx
	not	edi
	or	edi, ecx
	and	edi, eax
	mov	eax, DWORD PTR VHT_CAP_SU_BEAMFORMER_CAPABLE[rip]
	test	eax, ecx
	jne	.L4
	mov	r8d, DWORD PTR VHT_CAP_BEAMFORMEE_STS_MAX[rip]
	or	r8d, esi
	not	r8d
	and	edi, r8d
.L4:
	test	ecx, esi
	jne	.L5
	or	eax, DWORD PTR VHT_CAP_SOUNDING_DIMENSION_MAX[rip]
	not	eax
	and	edi, eax
.L5:
	mov	r8d, DWORD PTR VHT_CAP_MU_BEAMFORMEE_CAPABLE[rip]
	mov	eax, DWORD PTR VHT_CAP_MU_BEAMFORMER_CAPABLE[rip]
	mov	esi, r8d
	not	esi
	and	esi, edi
	test	eax, ecx
	not	eax
	cmove	edi, esi
	and	eax, edi
	test	ecx, r8d
	cmove	edi, eax
	mov	eax, DWORD PTR VHT_CAP_SUPP_CHAN_WIDTH_MASK[rip]
	mov	esi, eax
	and	esi, ecx
	cmp	esi, 128
	je	.L8
	cmp	esi, 129
	je	.L26
	mov	esi, eax
	not	esi
	and	edi, esi
.L8:
	mov	esi, DWORD PTR VHT_CAP_TXSTBC[rip]
	not	edx
	and	edx, edi
	test	eax, edi
	mov	eax, DWORD PTR VHT_CAP_RXSTBC_MASK[rip]
	cmove	edi, edx
	mov	edx, esi
	not	edx
	and	edx, edi
	test	eax, ecx
	not	eax
	cmove	edi, edx
	and	eax, edi
	test	ecx, esi
	cmove	edi, eax
	call	host_to_le32@PLT
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	esi, edi
	or	sil, -127
	test	dil, -128
	cmovne	edi, esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	hostapd_get_vht_capab, .-hostapd_get_vht_capab
	.comm	VHT_CAP_TXSTBC,4,4
	.comm	VHT_CAP_SU_BEAMFORMER_CAPABLE,4,4
	.comm	VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,4
	.comm	VHT_CAP_SUPP_CHAN_WIDTH_MASK,4,4
	.comm	VHT_CAP_SOUNDING_DIMENSION_MAX,4,4
	.comm	VHT_CAP_SHORT_GI_80,4,4
	.comm	VHT_CAP_SHORT_GI_160,4,4
	.comm	VHT_CAP_RXSTBC_MASK,4,4
	.comm	VHT_CAP_MU_BEAMFORMER_CAPABLE,4,4
	.comm	VHT_CAP_MU_BEAMFORMEE_CAPABLE,4,4
	.comm	VHT_CAP_BEAMFORMEE_STS_MAX,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_vht.c_hostapd_get_vht_capab.c"
	.text
	.align	2
	.global	hostapd_get_vht_capab
	.syntax unified
	.arm
	.fpu softvfp
	.type	hostapd_get_vht_capab, %function
hostapd_get_vht_capab:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, r0
	mov	r2, #4
	mov	r0, r4
	bl	os_memcpy
	ldr	r0, [r4]
	bl	le_to_host32
	ldr	r2, .L28
	ldr	r3, .L28+4
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r1, [r5]
	orr	r3, ip, r3
	mvn	r3, r3
	ldr	r2, .L28+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	tst	r2, r1
	and	r0, r0, r3
	ldreq	lr, .L28+12
	ldr	r3, .L28+16
	ldreq	lr, [lr]
	ldreq	r3, [r3]
	ldrne	r3, [r3]
	orreq	lr, r3, lr
	biceq	r0, r0, lr
	tst	r1, r3
	ldreq	r3, .L28+20
	ldreq	r3, [r3]
	orreq	r2, r2, r3
	ldr	r3, .L28+24
	biceq	r0, r0, r2
	ldr	r2, .L28+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r3, r1
	biceq	r0, r0, r2
	tst	r1, r2
	biceq	r0, r0, r3
	ldr	r3, .L28+32
	ldr	r3, [r3]
	and	r2, r3, r1
	cmp	r2, #128
	beq	.L8
	cmp	r2, #129
	bicne	r0, r0, r3
	beq	.L27
.L8:
	tst	r3, r0
	ldr	r3, .L28+36
	ldr	r2, .L28+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	biceq	r0, r0, ip
	tst	r3, r1
	biceq	r0, r0, r2
	tst	r1, r2
	biceq	r0, r0, r3
	bl	host_to_le32
	str	r0, [r4]
	pop	{r4, r5, r6, pc}
.L27:
	tst	r0, #128
	orrne	r0, r0, #129
	b	.L8
.L29:
	.align	2
.L28:
	.word	VHT_CAP_SHORT_GI_160
	.word	VHT_CAP_SHORT_GI_80
	.word	VHT_CAP_SU_BEAMFORMER_CAPABLE
	.word	VHT_CAP_BEAMFORMEE_STS_MAX
	.word	VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.word	VHT_CAP_SOUNDING_DIMENSION_MAX
	.word	VHT_CAP_MU_BEAMFORMER_CAPABLE
	.word	VHT_CAP_MU_BEAMFORMEE_CAPABLE
	.word	VHT_CAP_SUPP_CHAN_WIDTH_MASK
	.word	VHT_CAP_RXSTBC_MASK
	.word	VHT_CAP_TXSTBC
	.size	hostapd_get_vht_capab, .-hostapd_get_vht_capab
	.comm	VHT_CAP_TXSTBC,4,4
	.comm	VHT_CAP_SU_BEAMFORMER_CAPABLE,4,4
	.comm	VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,4
	.comm	VHT_CAP_SUPP_CHAN_WIDTH_MASK,4,4
	.comm	VHT_CAP_SOUNDING_DIMENSION_MAX,4,4
	.comm	VHT_CAP_SHORT_GI_80,4,4
	.comm	VHT_CAP_SHORT_GI_160,4,4
	.comm	VHT_CAP_RXSTBC_MASK,4,4
	.comm	VHT_CAP_MU_BEAMFORMER_CAPABLE,4,4
	.comm	VHT_CAP_MU_BEAMFORMEE_CAPABLE,4,4
	.comm	VHT_CAP_BEAMFORMEE_STS_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
