	.file	"extr_radio.c_b43legacy_default_radio_attenuation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	b43legacy_default_radio_attenuation
	.type	b43legacy_default_radio_attenuation, @function
b43legacy_default_radio_attenuation:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR 8[rdi]
	cmp	eax, 8272
	je	.L2
	cmp	eax, 8275
	jne	.L3
	cmp	DWORD PTR 16[rdi], 1
	je	.L4
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1057
	je	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r12d, 5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR 16[rdi]
	cmp	r12d, 5
	jg	.L6
	cmp	r12d, 3
	jg	.L25
	cmp	r12d, 1
	je	.L8
	cmp	r12d, 2
	jne	.L10
	mov	eax, DWORD PTR B43legacy_PHYTYPE_G[rip]
	cmp	DWORD PTR 12[rdi], eax
	je	.L60
.L4:
	mov	r12d, 6
.L7:
	mov	rdi, rbx
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L1
.L19:
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1057
	jne	.L1
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 66
	jle	.L35
	cmp	eax, 80
	mov	eax, 3
	cmovle	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	r12d, 8
	jne	.L10
	mov	r12d, 26
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1057
	jne	.L21
.L24:
	mov	eax, DWORD PTR 4[rax]
	mov	r12d, 2
	cmp	eax, 66
	jle	.L1
	mov	r12d, 3
	cmp	eax, 80
	jg	.L21
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR B43legacy_PHYTYPE_G[rip]
	cmp	DWORD PTR 12[rdi], eax
	je	.L61
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1057
	jne	.L4
	cmp	DWORD PTR 4[rax], 29
	mov	r12d, 7
	jg	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12d, 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbx
	mov	r12d, 5
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	jne	.L19
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L61:
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1057
	je	.L62
.L12:
	mov	rdi, rbx
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1046
	jne	.L7
.L13:
	mov	r12d, 3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L60:
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 8[rax], 1057
	je	.L63
.L14:
	mov	rdi, rbx
	call	is_bcm_board_vendor@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	je	.L16
	cmp	DWORD PTR 8[rax], 1046
	mov	r12d, 5
	je	.L7
.L16:
	cmp	DWORD PTR [rax], 17184
	mov	r12d, 4
	jne	.L13
	jmp	.L7
.L62:
	cmp	DWORD PTR 4[rax], 29
	jle	.L12
	jmp	.L13
.L63:
	cmp	DWORD PTR 4[rax], 29
	jg	.L13
	jmp	.L14
.L35:
	mov	r12d, 2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	b43legacy_default_radio_attenuation, .-b43legacy_default_radio_attenuation
	.comm	B43legacy_PHYTYPE_G,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_radio.c_b43legacy_default_radio_attenuation.c"
	.text
	.align	2
	.global	b43legacy_default_radio_attenuation
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43legacy_default_radio_attenuation, %function
b43legacy_default_radio_attenuation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L67
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	cmp	r3, r2
	mov	r4, r0
	beq	.L2
	add	r2, r2, #3
	cmp	r3, r2
	bne	.L3
	ldr	r3, [r0, #12]
	cmp	r3, #1
	beq	.L4
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L22
	ldr	r3, [r4]
	ldr	r2, .L67+4
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	cmp	r1, r2
	beq	.L25
.L22:
	mov	r5, #5
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L67+8
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L63
.L4:
	mov	r5, #6
.L9:
	mov	r0, r4
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L1
.L20:
	ldr	r3, [r4]
	ldr	r2, .L67+4
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	cmp	r1, r2
	bne	.L1
	ldr	r3, [r3, #4]
	cmp	r3, #66
	ble	.L35
	cmp	r3, #80
	movle	r5, #3
	b	.L1
.L2:
	ldr	r5, [r0, #12]
	sub	r3, r5, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L6
	.word	.L26
	.word	.L26
	.word	.L6
	.word	.L6
	.word	.L7
.L3:
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L22
	ldr	r3, [r4]
	ldr	r2, .L67+4
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	cmp	r1, r2
	bne	.L22
.L25:
	ldr	r3, [r3, #4]
	cmp	r3, #66
	ble	.L35
	cmp	r3, #80
	bgt	.L22
	mov	r5, #3
	b	.L1
.L26:
	mov	r5, #1
	b	.L9
.L6:
	bl	is_bcm_board_vendor
	cmp	r0, #0
	mov	r5, #5
	bne	.L20
	b	.L1
.L11:
	ldr	r3, .L67+8
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L64
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4]
	ldr	r2, .L67+4
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	cmp	r1, r2
	bne	.L4
	ldr	r3, [r3, #4]
	cmp	r3, #29
	movgt	r5, #7
	bgt	.L9
	b	.L4
.L35:
	mov	r5, #2
	b	.L1
.L7:
	mov	r5, #26
	b	.L9
.L64:
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L13
	ldr	r3, [r4]
	ldr	r2, .L67+4
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	cmp	r1, r2
	beq	.L65
.L13:
	mov	r0, r4
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L9
	ldr	r2, [r4]
	ldr	r3, .L67+12
	ldr	r2, [r2]
	ldr	r2, [r2, #8]
	cmp	r2, r3
	bne	.L9
.L14:
	mov	r5, #3
	b	.L9
.L63:
	bl	is_bcm_board_vendor
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r4]
	ldr	r2, .L67+4
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	cmp	r1, r2
	beq	.L66
.L15:
	mov	r0, r4
	bl	is_bcm_board_vendor
	cmp	r0, #0
	ldr	r3, [r4]
	bne	.L16
	ldr	r3, [r3]
.L17:
	ldr	r2, [r3]
	ldr	r3, .L67+16
	cmp	r2, r3
	bne	.L14
	mov	r5, #4
	b	.L9
.L16:
	ldr	r3, [r3]
	ldr	r2, .L67+12
	ldr	r1, [r3, #8]
	cmp	r1, r2
	moveq	r5, #5
	bne	.L17
	b	.L9
.L65:
	ldr	r3, [r3, #4]
	cmp	r3, #29
	ble	.L13
	b	.L14
.L66:
	ldr	r3, [r3, #4]
	cmp	r3, #29
	bgt	.L14
	b	.L15
.L68:
	.align	2
.L67:
	.word	8272
	.word	1057
	.word	B43legacy_PHYTYPE_G
	.word	1046
	.word	17184
	.size	b43legacy_default_radio_attenuation, .-b43legacy_default_radio_attenuation
	.comm	B43legacy_PHYTYPE_G,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
