	.file	"extr_reg.c_reg_process_ht_flags_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reg_process_ht_flags_channel, @function
reg_process_ht_flags_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR [rsi]
	mov	rdi, rsi
	mov	rbp, QWORD PTR [rax+rdx*8]
	call	is_ht40_allowed@PLT
	test	eax, eax
	je	.L2
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	je	.L15
	mov	rax, QWORD PTR 8[rbp]
	mov	r8d, DWORD PTR 8[rbx]
	lea	esi, -1[rdx]
	xor	ebp, ebp
	sal	rsi, 4
	xor	edi, edi
	lea	rdx, 16[rax]
	lea	r9d, -20[r8]
	add	r8d, 20
	add	rsi, rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	add	rdx, 16
.L8:
	mov	ecx, DWORD PTR 8[rax]
	cmp	ecx, r9d
	cmove	rdi, rax
	cmp	ecx, r8d
	cmove	rbp, rax
	mov	rax, rdx
	cmp	rdx, rsi
	jne	.L16
.L4:
	call	is_ht40_allowed@PLT
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR IEEE80211_CHAN_NO_HT40MINUS[rip]
	not	eax
	and	eax, DWORD PTR 12[rbx]
.L10:
	mov	DWORD PTR 12[rbx], eax
	mov	rdi, rbp
	call	is_ht40_allowed@PLT
	test	eax, eax
	mov	eax, DWORD PTR IEEE80211_CHAN_NO_HT40PLUS[rip]
	jne	.L11
	or	DWORD PTR 12[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
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rbx]
	or	eax, DWORD PTR IEEE80211_CHAN_NO_HT40MINUS[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR IEEE80211_CHAN_NO_HT40[rip]
	or	DWORD PTR 12[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
.L11:
	.cfi_restore_state
	not	eax
	and	DWORD PTR 12[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
.L15:
	.cfi_restore_state
	xor	ebp, ebp
	xor	edi, edi
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	reg_process_ht_flags_channel, .-reg_process_ht_flags_channel
	.comm	IEEE80211_CHAN_NO_HT40PLUS,4,4
	.comm	IEEE80211_CHAN_NO_HT40MINUS,4,4
	.comm	IEEE80211_CHAN_NO_HT40,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_reg.c_reg_process_ht_flags_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reg_process_ht_flags_channel, %function
reg_process_ht_flags_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, [r1]
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r5, r1
	ldr	r6, [r3, r2, lsl #2]
	bl	is_ht40_allowed
	cmp	r0, #0
	beq	.L2
	ldr	ip, [r6]
	cmp	ip, #0
	moveq	r4, ip
	moveq	r0, r4
	beq	.L4
	mov	r4, #0
	mov	r0, r4
	ldr	r1, [r5, #4]
	ldr	r3, [r6, #4]
	add	ip, ip, ip, lsl #1
	sub	lr, r1, #20
	add	ip, r3, ip, lsl #2
	add	r1, r1, #20
.L8:
	ldr	r2, [r3, #4]
	cmp	r2, lr
	moveq	r0, r3
	cmp	r2, r1
	moveq	r4, r3
	add	r3, r3, #12
	cmp	r3, ip
	bne	.L8
.L4:
	bl	is_ht40_allowed
	ldr	r2, .L15
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	cmp	r0, #0
	orreq	r3, r3, r2
	bicne	r3, r3, r2
	str	r3, [r5, #8]
	mov	r0, r4
	bl	is_ht40_allowed
	ldr	r2, .L15+4
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	cmp	r0, #0
	orreq	r3, r3, r2
	bicne	r3, r3, r2
	str	r3, [r5, #8]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, .L15+8
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5, #8]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	IEEE80211_CHAN_NO_HT40MINUS
	.word	IEEE80211_CHAN_NO_HT40PLUS
	.word	IEEE80211_CHAN_NO_HT40
	.size	reg_process_ht_flags_channel, .-reg_process_ht_flags_channel
	.comm	IEEE80211_CHAN_NO_HT40PLUS,4,4
	.comm	IEEE80211_CHAN_NO_HT40MINUS,4,4
	.comm	IEEE80211_CHAN_NO_HT40,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
