	.file	"extr_if_bwi.c_bwi_get_card_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"card flags 0x%04x\n"
	.text
	.p2align 4
	.type	bwi_get_card_flags, @function
bwi_get_card_flags:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR BWI_SPROM_CARD_FLAGS[rip]
	mov	rbp, rdi
	call	bwi_read_sprom@PLT
	cmp	eax, 65535
	je	.L2
	mov	DWORD PTR 0[rbp], eax
	mov	ecx, eax
.L3:
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, 4136
	je	.L8
	cmp	rax, 4203
	jne	.L5
	cmp	DWORD PTR 28[rbp], 78
	je	.L9
.L5:
	mov	esi, DWORD PTR BWI_DBG_ATTACH[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	DPRINTF@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR BWI_BBPID_BCM4301[rip]
	cmp	QWORD PTR 16[rbp], rax
	jne	.L5
	cmp	DWORD PTR 24[rbp], 116
	jne	.L5
	or	ecx, DWORD PTR BWI_CARD_F_BT_COEXIST[rip]
	mov	DWORD PTR 0[rbp], ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	DWORD PTR 0[rbp], 0
	xor	ecx, ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	DWORD PTR 24[rbp], 64
	jle	.L5
	or	ecx, DWORD PTR BWI_CARD_F_PA_GPIO9[rip]
	mov	DWORD PTR 0[rbp], ecx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	bwi_get_card_flags, .-bwi_get_card_flags
	.comm	PCI_VENDOR_DELL,8,8
	.comm	PCI_VENDOR_APPLE,8,8
	.comm	BWI_SPROM_CARD_FLAGS,4,4
	.comm	BWI_DBG_ATTACH,4,4
	.comm	BWI_CARD_F_PA_GPIO9,4,4
	.comm	BWI_CARD_F_BT_COEXIST,4,4
	.comm	BWI_BBPID_BCM4301,8,8
	.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_if_bwi.c_bwi_get_card_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"card flags 0x%04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bwi_get_card_flags, %function
bwi_get_card_flags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, lr}
	ldr	r1, [r3]
	mov	r4, r0
	bl	bwi_read_sprom
	ldr	r2, .L10+4
	ldr	r1, .L10+8
	cmp	r0, r2
	moveq	r2, #0
	movne	r3, r0
	moveq	r3, r2
	streq	r2, [r4]
	ldr	r2, [r4, #4]
	strne	r3, [r4]
	cmp	r2, r1
	beq	.L8
	ldr	r1, .L10+12
	cmp	r2, r1
	bne	.L5
	ldr	r2, [r4, #16]
	cmp	r2, #78
	beq	.L9
.L5:
	ldr	r2, .L10+16
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r2]
	ldr	r2, .L10+20
	b	DPRINTF
.L8:
	ldr	r2, .L10+24
	ldr	r1, [r4, #8]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L5
	ldr	r2, [r4, #12]
	cmp	r2, #116
	ldreq	r2, .L10+28
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4]
	b	.L5
.L9:
	ldr	r2, [r4, #12]
	cmp	r2, #64
	ldrgt	r2, .L10+32
	ldrgt	r2, [r2]
	orrgt	r3, r3, r2
	strgt	r3, [r4]
	b	.L5
.L11:
	.align	2
.L10:
	.word	BWI_SPROM_CARD_FLAGS
	.word	65535
	.word	4136
	.word	4203
	.word	BWI_DBG_ATTACH
	.word	.LC0
	.word	BWI_BBPID_BCM4301
	.word	BWI_CARD_F_BT_COEXIST
	.word	BWI_CARD_F_PA_GPIO9
	.size	bwi_get_card_flags, .-bwi_get_card_flags
	.comm	PCI_VENDOR_DELL,4,4
	.comm	PCI_VENDOR_APPLE,4,4
	.comm	BWI_SPROM_CARD_FLAGS,4,4
	.comm	BWI_DBG_ATTACH,4,4
	.comm	BWI_CARD_F_PA_GPIO9,4,4
	.comm	BWI_CARD_F_BT_COEXIST,4,4
	.comm	BWI_BBPID_BCM4301,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
