	.file	"extr_core.c_brcmf_bus_change_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d -> %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"ignoring transition, bus not attached yet\n"
	.text
	.p2align 4
	.globl	brcmf_bus_change_state
	.type	brcmf_bus_change_state, @function
brcmf_bus_change_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, esi
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	r12, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	edi, DWORD PTR TRACE[rip]
	call	brcmf_dbg@PLT
	test	r12, r12
	je	.L17
	cmp	DWORD PTR BRCMF_BUS_UP[rip], ebp
	mov	DWORD PTR [rbx], ebp
	je	.L18
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR BRCMF_MAX_IFS[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	cmp	DWORD PTR BRCMF_MAX_IFS[rip], ebx
	jle	.L1
.L7:
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax+rbx*8]
	test	rax, rax
	je	.L5
	mov	rbp, QWORD PTR [rax]
	test	rbp, rbp
	je	.L5
	mov	rdi, rbp
	call	netif_queue_stopped@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rbp
	call	netif_wake_queue@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR INFO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rsi, .LC1[rip]
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	brcmf_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	brcmf_bus_change_state, .-brcmf_bus_change_state
	.comm	TRACE,4,4
	.comm	INFO,4,4
	.comm	BRCMF_MAX_IFS,4,4
	.comm	BRCMF_BUS_UP,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_core.c_brcmf_bus_change_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d -> %d\012\000"
	.align	2
.LC1:
	.ascii	"ignoring transition, bus not attached yet\012\000"
	.text
	.align	2
	.global	brcmf_bus_change_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcmf_bus_change_state, %function
brcmf_bus_change_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, .L18
	ldr	r6, [r0, #4]
	ldr	r2, [r0]
	mov	r4, r0
	mov	r3, r5
	ldr	r0, [r1]
	ldr	r1, .L18+4
	bl	brcmf_dbg
	cmp	r6, #0
	beq	.L17
	ldr	r3, .L18+8
	str	r5, [r4]
	ldr	r3, [r3]
	cmp	r3, r5
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L18+12
	ldr	r3, [r7]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r4, #0
	b	.L7
.L5:
	ldr	r3, [r7]
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [r6]
	ldr	r3, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, #0
	beq	.L5
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L5
	mov	r0, r5
	bl	netif_queue_stopped
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	netif_wake_queue
	b	.L5
.L17:
	ldr	r3, .L18+16
	ldr	r1, .L18+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	brcmf_dbg
.L19:
	.align	2
.L18:
	.word	TRACE
	.word	.LC0
	.word	BRCMF_BUS_UP
	.word	BRCMF_MAX_IFS
	.word	INFO
	.word	.LC1
	.size	brcmf_bus_change_state, .-brcmf_bus_change_state
	.comm	TRACE,4,4
	.comm	INFO,4,4
	.comm	BRCMF_MAX_IFS,4,4
	.comm	BRCMF_BUS_UP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
