	.file	"extr_r12a_tx.c_r12a_tx_set_sgi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r12a_tx_set_sgi, @function
r12a_tx_set_sgi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR 16[rdx]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR IEEE80211_FHT_SHORTGI20[rip], eax
	je	.L2
	mov	eax, DWORD PTR [rdx]
	test	DWORD PTR IEEE80211_HTCAP_SHORTGI20[rip], eax
	jne	.L22
.L2:
	mov	rdi, QWORD PTR 8[rbx]
	cmp	rdi, QWORD PTR IEEE80211_CHAN_ANYC[rip]
	jne	.L24
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	call	IEEE80211_IS_CHAN_HT40@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IEEE80211_HTCAP_SHORTGI40[rip], eax
	je	.L1
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR IEEE80211_FHT_SHORTGI40[rip], eax
	je	.L1
.L22:
	mov	edi, DWORD PTR R12A_TXDW5_DATA_SHORT[rip]
	call	htole32@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	or	DWORD PTR 0[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	r12a_tx_set_sgi, .-r12a_tx_set_sgi
	.comm	R12A_TXDW5_DATA_SHORT,4,4
	.comm	IEEE80211_HTCAP_SHORTGI40,4,4
	.comm	IEEE80211_HTCAP_SHORTGI20,4,4
	.comm	IEEE80211_FHT_SHORTGI40,4,4
	.comm	IEEE80211_FHT_SHORTGI20,4,4
	.comm	IEEE80211_CHAN_ANYC,8,8
	.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_r12a_tx.c_r12a_tx_set_sgi.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r12a_tx_set_sgi, %function
r12a_tx_set_sgi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L24
	ldr	r6, [r2, #8]
	mov	r4, r2
	ldr	r3, [r3]
	ldr	r2, [r6]
	mov	r5, r1
	tst	r2, r3
	beq	.L2
	ldr	r3, .L24+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L22
.L2:
	ldr	r3, .L24+8
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	popeq	{r4, r5, r6, pc}
	bl	IEEE80211_IS_CHAN_HT40
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L24+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L24+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, pc}
.L22:
	ldr	r3, .L24+20
	ldr	r0, [r3]
	bl	htole32
	ldr	r3, [r5]
	orr	r3, r3, r0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L25:
	.align	2
.L24:
	.word	IEEE80211_FHT_SHORTGI20
	.word	IEEE80211_HTCAP_SHORTGI20
	.word	IEEE80211_CHAN_ANYC
	.word	IEEE80211_HTCAP_SHORTGI40
	.word	IEEE80211_FHT_SHORTGI40
	.word	R12A_TXDW5_DATA_SHORT
	.size	r12a_tx_set_sgi, .-r12a_tx_set_sgi
	.comm	R12A_TXDW5_DATA_SHORT,4,4
	.comm	IEEE80211_HTCAP_SHORTGI40,4,4
	.comm	IEEE80211_HTCAP_SHORTGI20,4,4
	.comm	IEEE80211_FHT_SHORTGI40,4,4
	.comm	IEEE80211_FHT_SHORTGI20,4,4
	.comm	IEEE80211_CHAN_ANYC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
