	.file	"extr_mac-ctxt.c_iwl_mvm_mac_ctxt_set_ht_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"protection mode set to %d\n"
.LC1:
	.string	"Illegal protection mode %d\n"
	.text
	.p2align 4
	.type	iwl_mvm_mac_ctxt_set_ht_flags, @function
iwl_mvm_mac_ctxt_set_ht_flags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	eax, DWORD PTR MAC_PROT_FLG_HT_PROT[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	or	eax, DWORD PTR MAC_PROT_FLG_FAT_PROT[rip]
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r14d, eax
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12d, DWORD PTR [rsi]
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	and	r12d, DWORD PTR IEEE80211_HT_OP_MODE_PROTECTION[rip]
	mov	edx, r12d
	call	IWL_DEBUG_RATE@PLT
	cmp	r12d, 130
	je	.L1
	jg	.L3
	lea	eax, -128[r12]
	cmp	eax, 1
	ja	.L4
.L12:
	mov	edi, r14d
	call	cpu_to_le32@PLT
	or	DWORD PTR 0[r13], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	r12d, 131
	jne	.L4
	mov	eax, DWORD PTR NL80211_CHAN_WIDTH_20[rip]
	cmp	DWORD PTR 4[rbx], eax
	jg	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	IWL_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	iwl_mvm_mac_ctxt_set_ht_flags, .-iwl_mvm_mac_ctxt_set_ht_flags
	.comm	NL80211_CHAN_WIDTH_20,4,4
	.comm	MAC_PROT_FLG_HT_PROT,4,4
	.comm	MAC_PROT_FLG_FAT_PROT,4,4
	.comm	IEEE80211_HT_OP_MODE_PROTECTION,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_mac-ctxt.c_iwl_mvm_mac_ctxt_set_ht_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"protection mode set to %d\012\000"
	.align	2
.LC1:
	.ascii	"Illegal protection mode %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_mvm_mac_ctxt_set_ht_flags, %function
iwl_mvm_mac_ctxt_set_ht_flags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	mov	r5, r1
	mov	r6, r2
	ldr	r1, .L14+4
	ldr	r2, [r3]
	ldr	r3, .L14+8
	ldr	ip, [r1]
	ldr	r3, [r3]
	and	r4, r4, r2
	mov	r2, r4
	ldr	r1, .L14+12
	mov	r7, r0
	orr	r8, ip, r3
	bl	IWL_DEBUG_RATE
	cmp	r4, #130
	popeq	{r4, r5, r6, r7, r8, pc}
	bgt	.L3
	sub	r3, r4, #128
	cmp	r3, #1
	bhi	.L4
.L12:
	mov	r0, r8
	bl	cpu_to_le32
	ldr	r3, [r6]
	orr	r3, r3, r0
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	cmp	r4, #131
	bne	.L4
	ldr	r3, .L14+16
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	pople	{r4, r5, r6, r7, r8, pc}
	b	.L12
.L4:
	mov	r2, r4
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L14+20
	b	IWL_ERR
.L15:
	.align	2
.L14:
	.word	IEEE80211_HT_OP_MODE_PROTECTION
	.word	MAC_PROT_FLG_HT_PROT
	.word	MAC_PROT_FLG_FAT_PROT
	.word	.LC0
	.word	NL80211_CHAN_WIDTH_20
	.word	.LC1
	.size	iwl_mvm_mac_ctxt_set_ht_flags, .-iwl_mvm_mac_ctxt_set_ht_flags
	.comm	NL80211_CHAN_WIDTH_20,4,4
	.comm	MAC_PROT_FLG_HT_PROT,4,4
	.comm	MAC_PROT_FLG_FAT_PROT,4,4
	.comm	IEEE80211_HT_OP_MODE_PROTECTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
