	.file	"extr_main.c_b43legacy_gpio_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43legacy_gpio_init, @function
b43legacy_gpio_init:
.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
	mov	r12d, 15
	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
	mov	ebx, 31
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR B43legacy_MMIO_MACCTL[rip]
	mov	r13, QWORD PTR 8[rax]
	call	b43legacy_read32@PLT
	mov	esi, DWORD PTR B43legacy_MMIO_MACCTL[rip]
	mov	rdi, rbp
	and	ah, 63
	mov	edx, eax
	call	b43legacy_write32@PLT
	mov	esi, DWORD PTR B43legacy_MMIO_GPIO_MASK[rip]
	mov	rdi, rbp
	call	b43legacy_read16@PLT
	mov	esi, DWORD PTR B43legacy_MMIO_GPIO_MASK[rip]
	mov	rdi, rbp
	or	eax, 15
	mov	edx, eax
	call	b43legacy_write16@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	eax, 127
	mov	edx, 111
	mov	rcx, QWORD PTR 8[rsi]
	cmp	DWORD PTR [rcx], 17153
	cmove	ebx, eax
	cmove	r12d, edx
	mov	eax, DWORD PTR 24[rcx]
	test	DWORD PTR B43legacy_BFL_PACTRL[rip], eax
	jne	.L15
.L3:
	mov	eax, ebx
	mov	rbp, QWORD PTR 8[r13]
	or	eax, 16
	cmp	DWORD PTR [rsi], 1
	cmovg	ebx, eax
	test	rbp, rbp
	je	.L5
	mov	esi, DWORD PTR B43legacy_GPIO_CONTROL[rip]
	mov	rdi, rbp
	not	ebx
	call	ssb_read32@PLT
	mov	esi, DWORD PTR B43legacy_GPIO_CONTROL[rip]
	mov	rdi, rbp
	and	ebx, eax
	or	ebx, r12d
	mov	edx, ebx
	call	ssb_write32@PLT
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR B43legacy_MMIO_GPIO_MASK[rip]
	mov	rdi, rbp
	or	bh, 2
	or	r12d, 512
	call	b43legacy_read16@PLT
	mov	esi, DWORD PTR B43legacy_MMIO_GPIO_MASK[rip]
	mov	rdi, rbp
	or	ah, 2
	mov	edx, eax
	call	b43legacy_write16@PLT
	mov	rsi, QWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	b43legacy_gpio_init, .-b43legacy_gpio_init
	.comm	B43legacy_MMIO_MACCTL,4,4
	.comm	B43legacy_MMIO_GPIO_MASK,4,4
	.comm	B43legacy_GPIO_CONTROL,4,4
	.comm	B43legacy_BFL_PACTRL,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_main.c_b43legacy_gpio_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43legacy_gpio_init, %function
b43legacy_gpio_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L16
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r2]
	ldr	r3, [r0]
	mov	r1, r5
	mov	r4, r0
	ldr	r7, [r3, #4]
	bl	b43legacy_read32
	ldr	r6, .L16+4
	bic	r2, r0, #49152
	mov	r1, r5
	mov	r0, r4
	bl	b43legacy_write32
	ldr	r5, [r6]
	mov	r0, r4
	mov	r1, r5
	bl	b43legacy_read16
	mov	r1, r5
	orr	r2, r0, #15
	mov	r0, r4
	bl	b43legacy_write16
	ldr	r3, [r4]
	ldr	lr, .L16+8
	ldr	r2, [r3, #4]
	ldr	r0, .L16+12
	ldr	ip, [r2]
	ldr	r1, [r2, #12]
	ldr	r2, [lr]
	cmp	ip, r0
	movne	r8, #15
	moveq	r8, #111
	movne	r5, #31
	moveq	r5, #127
	tst	r1, r2
	bne	.L15
.L3:
	ldr	r3, [r3]
	ldr	r4, [r7, #4]
	cmp	r3, #1
	orrgt	r5, r5, #16
	cmp	r4, #0
	beq	.L5
	ldr	r3, .L16+16
	mov	r0, r4
	ldr	r6, [r3]
	mov	r1, r6
	bl	ssb_read32
	bic	r2, r0, r5
	mov	r1, r6
	mov	r0, r4
	orr	r2, r2, r8
	bl	ssb_write32
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r6, [r6]
	mov	r0, r4
	mov	r1, r6
	bl	b43legacy_read16
	mov	r1, r6
	orr	r2, r0, #512
	mov	r0, r4
	bl	b43legacy_write16
	orr	r5, r5, #512
	ldr	r3, [r4]
	orr	r8, r8, #512
	b	.L3
.L17:
	.align	2
.L16:
	.word	B43legacy_MMIO_MACCTL
	.word	B43legacy_MMIO_GPIO_MASK
	.word	B43legacy_BFL_PACTRL
	.word	17153
	.word	B43legacy_GPIO_CONTROL
	.size	b43legacy_gpio_init, .-b43legacy_gpio_init
	.comm	B43legacy_MMIO_MACCTL,4,4
	.comm	B43legacy_MMIO_GPIO_MASK,4,4
	.comm	B43legacy_GPIO_CONTROL,4,4
	.comm	B43legacy_BFL_PACTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
