	.file	"extr_mac.c_carl9170_set_mac_rates.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	carl9170_set_mac_rates
	.type	carl9170_set_mac_rates, @function
carl9170_set_mac_rates:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	rcu_read_lock@PLT
	mov	rdi, r12
	call	carl9170_get_main_vif@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR [rax]
	mov	r13d, 65280
	mov	esi, eax
	sal	eax, 4
	mov	ebp, eax
	and	esi, 15
	xor	eax, eax
	and	ebp, 65280
	or	ebp, esi
	call	rcu_read_unlock@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR IEEE80211_BAND_5GHZ[rip]
	mov	rdi, r12
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], rdx
	mov	eax, 65295
	cmovne	r13d, eax
	call	carl9170_regwrite_begin@PLT
	mov	edi, DWORD PTR AR9170_MAC_REG_BASIC_RATE[rip]
	mov	esi, ebp
	call	carl9170_regwrite@PLT
	mov	edi, DWORD PTR AR9170_MAC_REG_MANDATORY_RATE[rip]
	mov	esi, r13d
	call	carl9170_regwrite@PLT
	xor	eax, eax
	call	carl9170_regwrite_finish@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	carl9170_regwrite_result@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	rcu_read_unlock@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	carl9170_set_mac_rates, .-carl9170_set_mac_rates
	.comm	IEEE80211_BAND_5GHZ,8,8
	.comm	AR9170_MAC_REG_MANDATORY_RATE,4,4
	.comm	AR9170_MAC_REG_BASIC_RATE,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.c_carl9170_set_mac_rates.c"
	.text
	.align	2
	.global	carl9170_set_mac_rates
	.syntax unified
	.arm
	.fpu softvfp
	.type	carl9170_set_mac_rates, %function
carl9170_set_mac_rates:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	rcu_read_lock
	mov	r0, r4
	bl	carl9170_get_main_vif
	subs	r5, r0, #0
	beq	.L7
	ldr	r1, [r5]
	lsl	r5, r1, #4
	and	r5, r5, #65280
	and	r1, r1, #15
	orr	r5, r5, r1
	bl	rcu_read_unlock
	ldr	r3, [r4]
	ldr	r2, .L10
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, .L10+4
	cmp	r1, r2
	mov	r0, r4
	movne	r4, r3
	moveq	r4, #65280
	bl	carl9170_regwrite_begin
	ldr	r3, .L10+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	carl9170_regwrite
	ldr	r3, .L10+12
	mov	r1, r4
	ldr	r0, [r3]
	bl	carl9170_regwrite
	bl	carl9170_regwrite_finish
	pop	{r4, r5, r6, lr}
	b	carl9170_regwrite_result
.L7:
	bl	rcu_read_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	IEEE80211_BAND_5GHZ
	.word	65295
	.word	AR9170_MAC_REG_BASIC_RATE
	.word	AR9170_MAC_REG_MANDATORY_RATE
	.size	carl9170_set_mac_rates, .-carl9170_set_mac_rates
	.comm	IEEE80211_BAND_5GHZ,4,4
	.comm	AR9170_MAC_REG_MANDATORY_RATE,4,4
	.comm	AR9170_MAC_REG_BASIC_RATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
