	.file	"extr_ar5212_misc.c_ar5212GetWirelessModes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar5212GetWirelessModes
	.type	ar5212GetWirelessModes, @function
ar5212GetWirelessModes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR AR_EEP_AMODE[rip]
	call	ath_hal_eepromGetFlag@PLT
	test	rax, rax
	jne	.L19
.L2:
	mov	esi, DWORD PTR AR_EEP_BMODE[rip]
	mov	rdi, rbp
	call	ath_hal_eepromGetFlag@PLT
	test	rax, rax
	je	.L5
	or	r12d, DWORD PTR HAL_MODE_11B[rip]
.L5:
	mov	esi, DWORD PTR AR_EEP_GMODE[rip]
	mov	rdi, rbp
	call	ath_hal_eepromGetFlag@PLT
	test	rax, rax
	jne	.L20
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR AR_EEP_TURBO5DISABLE[rip]
	mov	rdi, rbp
	mov	r12d, DWORD PTR HAL_MODE_11A[rip]
	call	ath_hal_eepromGetFlag@PLT
	test	rax, rax
	jne	.L3
	or	r12d, DWORD PTR HAL_MODE_TURBO[rip]
	or	r12d, DWORD PTR HAL_MODE_108A[rip]
.L3:
	mov	rdi, rbp
	call	AH_PRIVATE@PLT
	cmp	QWORD PTR 16[rax], 0
	je	.L4
	or	r12d, DWORD PTR HAL_MODE_11A_HALF_RATE[rip]
.L4:
	mov	rdi, rbp
	call	AH_PRIVATE@PLT
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	or	r12d, DWORD PTR HAL_MODE_11A_QUARTER_RATE[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	AH_PRIVATE@PLT
	mov	rdx, QWORD PTR AR_SUBVENDOR_ID_NOG[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L1
	mov	esi, DWORD PTR AR_EEP_TURBO2DISABLE[rip]
	mov	rdi, rbp
	or	r12d, DWORD PTR HAL_MODE_11G[rip]
	call	ath_hal_eepromGetFlag@PLT
	test	rax, rax
	jne	.L7
	or	r12d, DWORD PTR HAL_MODE_108G[rip]
.L7:
	mov	rdi, rbp
	call	AH_PRIVATE@PLT
	cmp	QWORD PTR 16[rax], 0
	je	.L8
	or	r12d, DWORD PTR HAL_MODE_11G_HALF_RATE[rip]
.L8:
	mov	rdi, rbp
	call	AH_PRIVATE@PLT
	cmp	QWORD PTR 8[rax], 0
	je	.L1
	or	r12d, DWORD PTR HAL_MODE_11G_QUARTER_RATE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ar5212GetWirelessModes, .-ar5212GetWirelessModes
	.comm	HAL_MODE_TURBO,4,4
	.comm	HAL_MODE_11G_QUARTER_RATE,4,4
	.comm	HAL_MODE_11G_HALF_RATE,4,4
	.comm	HAL_MODE_11G,4,4
	.comm	HAL_MODE_11B,4,4
	.comm	HAL_MODE_11A_QUARTER_RATE,4,4
	.comm	HAL_MODE_11A_HALF_RATE,4,4
	.comm	HAL_MODE_11A,4,4
	.comm	HAL_MODE_108G,4,4
	.comm	HAL_MODE_108A,4,4
	.comm	AR_SUBVENDOR_ID_NOG,8,8
	.comm	AR_EEP_TURBO5DISABLE,4,4
	.comm	AR_EEP_TURBO2DISABLE,4,4
	.comm	AR_EEP_GMODE,4,4
	.comm	AR_EEP_BMODE,4,4
	.comm	AR_EEP_AMODE,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_ar5212_misc.c_ar5212GetWirelessModes.c"
	.text
	.align	2
	.global	ar5212GetWirelessModes
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5212GetWirelessModes, %function
ar5212GetWirelessModes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L34
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	bl	ath_hal_eepromGetFlag
	subs	r4, r0, #0
	bne	.L32
.L2:
	ldr	r3, .L34+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	ath_hal_eepromGetFlag
	cmp	r0, #0
	ldrne	r3, .L34+8
	mov	r0, r5
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	ldr	r3, .L34+12
	ldr	r1, [r3]
	bl	ath_hal_eepromGetFlag
	cmp	r0, #0
	bne	.L33
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L32:
	ldr	r2, .L34+16
	ldr	r3, .L34+20
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r4, [r3]
	bl	ath_hal_eepromGetFlag
	cmp	r0, #0
	bne	.L3
	ldr	r2, .L34+24
	ldr	r3, .L34+28
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r4, r4, r0
	orr	r4, r4, r3
.L3:
	mov	r0, r5
	bl	AH_PRIVATE
	ldr	r3, [r0, #8]
	mov	r0, r5
	cmp	r3, #0
	ldrne	r3, .L34+32
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	bl	AH_PRIVATE
	ldr	r3, [r0, #4]
	cmp	r3, #0
	ldrne	r3, .L34+36
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	b	.L2
.L33:
	mov	r0, r5
	bl	AH_PRIVATE
	ldr	r3, .L34+40
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	ldr	r3, .L34+44
	ldr	r2, .L34+48
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r5
	orr	r4, r4, r3
	bl	ath_hal_eepromGetFlag
	cmp	r0, #0
	ldreq	r3, .L34+52
	mov	r0, r5
	ldreq	r3, [r3]
	orreq	r4, r4, r3
	bl	AH_PRIVATE
	ldr	r3, [r0, #8]
	mov	r0, r5
	cmp	r3, #0
	ldrne	r3, .L34+56
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	bl	AH_PRIVATE
	ldr	r3, [r0, #4]
	cmp	r3, #0
	ldrne	r3, .L34+60
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L35:
	.align	2
.L34:
	.word	AR_EEP_AMODE
	.word	AR_EEP_BMODE
	.word	HAL_MODE_11B
	.word	AR_EEP_GMODE
	.word	AR_EEP_TURBO5DISABLE
	.word	HAL_MODE_11A
	.word	HAL_MODE_TURBO
	.word	HAL_MODE_108A
	.word	HAL_MODE_11A_HALF_RATE
	.word	HAL_MODE_11A_QUARTER_RATE
	.word	AR_SUBVENDOR_ID_NOG
	.word	HAL_MODE_11G
	.word	AR_EEP_TURBO2DISABLE
	.word	HAL_MODE_108G
	.word	HAL_MODE_11G_HALF_RATE
	.word	HAL_MODE_11G_QUARTER_RATE
	.size	ar5212GetWirelessModes, .-ar5212GetWirelessModes
	.comm	HAL_MODE_TURBO,4,4
	.comm	HAL_MODE_11G_QUARTER_RATE,4,4
	.comm	HAL_MODE_11G_HALF_RATE,4,4
	.comm	HAL_MODE_11G,4,4
	.comm	HAL_MODE_11B,4,4
	.comm	HAL_MODE_11A_QUARTER_RATE,4,4
	.comm	HAL_MODE_11A_HALF_RATE,4,4
	.comm	HAL_MODE_11A,4,4
	.comm	HAL_MODE_108G,4,4
	.comm	HAL_MODE_108A,4,4
	.comm	AR_SUBVENDOR_ID_NOG,4,4
	.comm	AR_EEP_TURBO5DISABLE,4,4
	.comm	AR_EEP_TURBO2DISABLE,4,4
	.comm	AR_EEP_GMODE,4,4
	.comm	AR_EEP_BMODE,4,4
	.comm	AR_EEP_AMODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
