	.file	"extr_phy_g.c_b43_phy_initb5.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43_phy_initb5, @function
b43_phy_initb5:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR 16[rdi], 1
	mov	r12, QWORD PTR 40[rdi]
	je	.L24
.L2:
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR SSB_BOARDVENDOR_BCM[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L3
	mov	rcx, QWORD PTR SSB_BOARD_BU4306[rip]
	cmp	QWORD PTR 8[rax], rcx
	je	.L3
	mov	ebx, 168
	.p2align 4,,10
	.p2align 3
.L4:
	imul	edx, ebx, 514
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	sub	edx, 77872
	call	b43_phy_write@PLT
	cmp	ebx, 199
	jne	.L4
.L3:
	mov	ecx, 1792
	mov	edx, 61695
	mov	esi, 53
	mov	rdi, rbp
	call	b43_phy_maskset@PLT
	cmp	DWORD PTR 20[rbp], 8272
	je	.L25
	cmp	QWORD PTR 32[rbp], 0
	je	.L26
.L11:
	mov	esi, DWORD PTR B43_MMIO_PHY_RADIO[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	b43_write16@PLT
	mov	edx, 256
	mov	esi, 2050
	mov	rdi, rbp
	call	b43_phy_set@PLT
	mov	edx, 8192
	mov	esi, 1067
	mov	rdi, rbp
	call	b43_phy_set@PLT
	mov	edx, 6250
	mov	esi, 28
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	ecx, 6400
	mov	edx, 255
	mov	rdi, rbp
	mov	esi, 19
	call	b43_phy_maskset@PLT
	mov	ecx, 100
	mov	edx, 65472
	mov	rdi, rbp
	mov	esi, 53
	call	b43_phy_maskset@PLT
	mov	ecx, 10
	mov	edx, 65408
	mov	rdi, rbp
	mov	esi, 93
	call	b43_phy_maskset@PLT
.L10:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L27
.L12:
	cmp	DWORD PTR 16[rbp], 1
	je	.L28
.L13:
	mov	edx, 52224
	mov	esi, 38
	mov	rdi, rbp
	call	b43_phy_write@PLT
.L14:
	mov	edx, 198
	mov	esi, 48
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	edx, 16162
	mov	esi, 1004
	mov	rdi, rbp
	call	b43_write16@PLT
	cmp	DWORD PTR 16[rbp], 1
	je	.L29
	mov	edx, 12316
	mov	esi, 32
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	je	.L30
.L17:
	xor	edx, edx
	mov	esi, 7
	mov	rdi, rbp
	mov	r13d, DWORD PTR 28[rbp]
	call	b43_gphy_channel_switch@PLT
	cmp	DWORD PTR 20[rbp], 8272
	je	.L18
	mov	edx, 128
	mov	esi, 117
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	mov	edx, 129
	mov	esi, 121
	mov	rdi, rbp
	call	b43_radio_write16@PLT
.L18:
	mov	edx, 32
	mov	esi, 80
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	mov	edx, 35
	mov	esi, 80
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	cmp	DWORD PTR 20[rbp], 8272
	je	.L31
.L19:
	mov	edx, 123
	mov	esi, 91
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	mov	edx, 176
	mov	esi, 92
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	mov	edx, 7
	mov	esi, 122
	mov	rdi, rbp
	call	b43_radio_set@PLT
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, rbp
	call	b43_gphy_channel_switch@PLT
	mov	edx, 128
	mov	esi, 20
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	edx, 202
	mov	esi, 50
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	edx, 34979
	mov	esi, 42
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	ecx, DWORD PTR [r12]
	lea	rdx, 4[r12]
	mov	rdi, rbp
	lea	rsi, 8[r12]
	call	b43_set_txpower_g@PLT
	cmp	DWORD PTR 20[rbp], 8272
	je	.L32
.L20:
	mov	rdi, rbp
	mov	esi, 996
	call	b43_read16@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	esi, 996
	and	eax, 65472
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	edx, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	or	edx, 4
	jmp	b43_write16@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	cmp	DWORD PTR 24[rbp], 1
	jg	.L11
	cmp	QWORD PTR 0[rbp], 0
	je	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, DWORD PTR B43_PHY_RADIO_BITFIELD[rip]
	mov	edx, 2048
	mov	rdi, rbp
	call	b43_phy_set@PLT
	cmp	DWORD PTR 16[rbp], 1
	jne	.L13
.L28:
	mov	rdi, rbp
	mov	edx, 52736
	mov	esi, 38
	call	b43_phy_write@PLT
	mov	rdi, rbp
	mov	edx, 14179
	mov	esi, 33
	call	b43_phy_write@PLT
	mov	rdi, rbp
	mov	edx, 7107
	mov	esi, 34
	call	b43_phy_write@PLT
	mov	rdi, rbp
	mov	edx, 1785
	mov	esi, 35
	call	b43_phy_write@PLT
	mov	edx, 894
	mov	esi, 36
	mov	rdi, rbp
	call	b43_phy_write@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edx, 15900
	mov	esi, 32
	mov	rdi, rbp
	call	b43_phy_write@PLT
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jne	.L17
.L30:
	mov	edx, 12288
	mov	esi, 996
	mov	rdi, rbp
	call	b43_write16@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, 80
	mov	esi, 122
	call	b43_radio_set@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, 1639
	mov	esi, 56
	mov	rdi, rbp
	call	b43_phy_write@PLT
	cmp	QWORD PTR 32[rbp], 0
	jne	.L9
	cmp	DWORD PTR 24[rbp], 1
	jle	.L10
.L9:
	cmp	DWORD PTR 20[rbp], 8272
	jne	.L11
	mov	rdi, rbp
	mov	edx, 32
	mov	esi, 122
	call	b43_radio_set@PLT
	mov	edx, 4
	mov	esi, 81
	mov	rdi, rbp
	call	b43_radio_set@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edx, 13
	mov	esi, 93
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbp
	mov	edx, 32
	mov	esi, 80
	call	b43_radio_write16@PLT
	mov	edx, 112
	mov	esi, 90
	mov	rdi, rbp
	call	b43_radio_write16@PLT
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	b43_phy_initb5, .-b43_phy_initb5
	.comm	SSB_BOARD_BU4306,8,8
	.comm	SSB_BOARDVENDOR_BCM,8,8
	.comm	B43_PHY_RADIO_BITFIELD,4,4
	.comm	B43_MMIO_PHY_RADIO,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_phy_g.c_b43_phy_initb5.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_phy_initb5, %function
b43_phy_initb5:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #1
	mov	r5, r0
	ldr	r7, [r0, #28]
	beq	.L27
.L2:
	ldr	r3, [r5, #4]
	ldr	r2, .L35
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L3
	ldr	r1, .L35+4
	ldr	r2, [r3, #4]
	ldr	r3, [r1]
	cmp	r2, r3
	beq	.L3
	mov	r6, #168
	ldr	r4, .L35+8
.L4:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	add	r6, r6, #1
	bl	b43_phy_write
	add	r4, r4, #512
	cmp	r6, #199
	add	r4, r4, #2
	bne	.L4
.L3:
	mov	r3, #1792
	ldr	r2, .L35+12
	mov	r1, #53
	mov	r0, r5
	bl	b43_phy_maskset
	ldr	r3, .L35+16
	ldr	r2, [r5, #12]
	cmp	r2, r3
	beq	.L28
	ldr	r3, [r5, #24]
	cmp	r3, #0
	beq	.L29
.L11:
	ldr	r3, .L35+20
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	b43_write16
	mov	r2, #256
	ldr	r1, .L35+24
	mov	r0, r5
	bl	b43_phy_set
	mov	r2, #8192
	ldr	r1, .L35+28
	mov	r0, r5
	bl	b43_phy_set
	mov	r1, #28
	ldr	r2, .L35+32
	mov	r0, r5
	bl	b43_phy_write
	mov	r3, #6400
	mov	r2, #255
	mov	r1, #19
	mov	r0, r5
	bl	b43_phy_maskset
	mov	r3, #100
	mov	r1, #53
	ldr	r2, .L35+36
	mov	r0, r5
	bl	b43_phy_maskset
	mov	r3, #10
	mov	r1, #93
	mov	r0, r5
	ldr	r2, .L35+40
	bl	b43_phy_maskset
.L10:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L30
.L12:
	ldr	r3, [r5, #8]
	cmp	r3, #1
	beq	.L31
.L13:
	mov	r2, #52224
	mov	r1, #38
	mov	r0, r5
	bl	b43_phy_write
.L14:
	mov	r2, #198
	mov	r1, #48
	mov	r0, r5
	bl	b43_phy_write
	ldr	r2, .L35+44
	mov	r1, #1004
	mov	r0, r5
	bl	b43_write16
	ldr	r3, [r5, #8]
	mov	r1, #32
	cmp	r3, #1
	ldreq	r2, .L35+48
	ldrne	r2, .L35+52
	mov	r0, r5
	bl	b43_phy_write
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L32
.L17:
	mov	r2, #0
	mov	r1, #7
	mov	r0, r5
	ldr	r4, [r5, #20]
	bl	b43_gphy_channel_switch
	ldr	r3, .L35+16
	ldr	r2, [r5, #12]
	cmp	r2, r3
	beq	.L18
	mov	r2, #128
	mov	r1, #117
	mov	r0, r5
	bl	b43_radio_write16
	mov	r2, #129
	mov	r1, #121
	mov	r0, r5
	bl	b43_radio_write16
.L18:
	mov	r2, #32
	mov	r1, #80
	mov	r0, r5
	bl	b43_radio_write16
	mov	r2, #35
	mov	r1, #80
	mov	r0, r5
	bl	b43_radio_write16
	ldr	r3, .L35+16
	ldr	r2, [r5, #12]
	cmp	r2, r3
	beq	.L33
.L19:
	mov	r2, #123
	mov	r1, #91
	mov	r0, r5
	bl	b43_radio_write16
	mov	r2, #176
	mov	r1, #92
	mov	r0, r5
	bl	b43_radio_write16
	mov	r2, #7
	mov	r1, #122
	mov	r0, r5
	bl	b43_radio_set
	mov	r1, r4
	mov	r2, #0
	mov	r0, r5
	bl	b43_gphy_channel_switch
	mov	r2, #128
	mov	r1, #20
	mov	r0, r5
	bl	b43_phy_write
	mov	r2, #202
	mov	r1, #50
	mov	r0, r5
	bl	b43_phy_write
	mov	r1, #42
	ldr	r2, .L35+56
	mov	r0, r5
	bl	b43_phy_write
	mov	r2, r7
	mov	r0, r5
	ldr	r3, [r2], #4
	add	r1, r7, #8
	bl	b43_set_txpower_g
	ldr	r3, .L35+16
	ldr	r2, [r5, #12]
	cmp	r2, r3
	beq	.L34
.L20:
	mov	r1, #996
	mov	r0, r5
	bl	b43_read16
	mov	r3, r0
	ldr	r2, .L35+36
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	and	r2, r2, r3
	mov	r1, #996
	orr	r2, r2, #4
	b	b43_write16
.L29:
	ldr	r3, [r5, #16]
	cmp	r3, #1
	bgt	.L11
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L12
.L30:
	ldr	r3, .L35+60
	mov	r2, #2048
	ldr	r1, [r3]
	mov	r0, r5
	bl	b43_phy_set
	ldr	r3, [r5, #8]
	cmp	r3, #1
	bne	.L13
.L31:
	mov	r2, #52736
	mov	r1, #38
	mov	r0, r5
	bl	b43_phy_write
	mov	r1, #33
	mov	r0, r5
	ldr	r2, .L35+64
	bl	b43_phy_write
	mov	r1, #34
	mov	r0, r5
	ldr	r2, .L35+68
	bl	b43_phy_write
	mov	r1, #35
	mov	r0, r5
	ldr	r2, .L35+72
	bl	b43_phy_write
	mov	r1, #36
	mov	r0, r5
	ldr	r2, .L35+76
	bl	b43_phy_write
	b	.L14
.L32:
	mov	r2, #12288
	mov	r1, #996
	mov	r0, r5
	bl	b43_write16
	b	.L17
.L28:
	mov	r1, #56
	mov	r0, r5
	ldr	r2, .L35+80
	bl	b43_phy_write
	ldr	r3, [r5, #24]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [r5, #16]
	cmp	r3, #1
	ble	.L10
.L9:
	ldr	r3, .L35+16
	ldr	r2, [r5, #12]
	cmp	r2, r3
	bne	.L11
	mov	r2, #32
	mov	r1, #122
	mov	r0, r5
	bl	b43_radio_set
	mov	r2, #4
	mov	r1, #81
	mov	r0, r5
	bl	b43_radio_set
	b	.L11
.L27:
	mov	r2, #80
	mov	r1, #122
	bl	b43_radio_set
	b	.L2
.L34:
	mov	r2, #13
	mov	r1, #93
	mov	r0, r5
	bl	b43_radio_write16
	b	.L20
.L33:
	mov	r2, #32
	mov	r1, #80
	mov	r0, r5
	bl	b43_radio_write16
	mov	r2, #112
	mov	r1, #90
	mov	r0, r5
	bl	b43_radio_write16
	b	.L19
.L36:
	.align	2
.L35:
	.word	SSB_BOARDVENDOR_BCM
	.word	SSB_BOARD_BU4306
	.word	8480
	.word	61695
	.word	8272
	.word	B43_MMIO_PHY_RADIO
	.word	2050
	.word	1067
	.word	6250
	.word	65472
	.word	65408
	.word	16162
	.word	15900
	.word	12316
	.word	34979
	.word	B43_PHY_RADIO_BITFIELD
	.word	14179
	.word	7107
	.word	1785
	.word	894
	.word	1639
	.size	b43_phy_initb5, .-b43_phy_initb5
	.comm	SSB_BOARD_BU4306,4,4
	.comm	SSB_BOARDVENDOR_BCM,4,4
	.comm	B43_PHY_RADIO_BITFIELD,4,4
	.comm	B43_MMIO_PHY_RADIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
