	.file	"extr_ucode.c_iwl_load_ucode_wait_alive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Loaded ucode is not valid!\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not complete ALIVE transition: %d\n"
	.text
	.p2align 4
	.globl	iwl_load_ucode_wait_alive
	.type	iwl_load_ucode_wait_alive, @function
iwl_load_ucode_wait_alive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebp, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rdi], esi
	call	iwl_get_ucode_image@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	DWORD PTR 4[rbx], 0
	neg	r12d
	test	rax, rax
	je	.L1
	mov	r8d, DWORD PTR iwl_alive_fn[rip]
	mov	r12, rax
	lea	r14, 8[rbx]
	lea	r15, 16[rsp]
	lea	rdi, alive_cmd.1978[rip]
	mov	DWORD PTR 12[rsp], r8d
	call	ARRAY_SIZE@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	rsi, r15
	mov	rdi, r14
	mov	ecx, eax
	lea	r9, 20[rsp]
	lea	rdx, alive_cmd.1978[rip]
	call	iwl_init_notification_wait@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	rsi, r12
	xor	edx, edx
	call	iwl_trans_start_fw@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	edx, DWORD PTR UCODE_ALIVE_TIMEOUT[rip]
	mov	rsi, r15
	mov	rdi, r14
	call	iwl_wait_notification@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	je	.L16
	cmp	DWORD PTR IWL_UCODE_WOWLAN[rip], r13d
	mov	DWORD PTR 4[rbx], 1
	jne	.L17
	mov	rdi, rbx
	call	iwl_alive_notify@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	DWORD PTR [rbx], ebp
	mov	rsi, r15
	mov	rdi, r14
	call	iwl_remove_notification@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	IWL_WARN@PLT
.L13:
	mov	DWORD PTR [rbx], ebp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, 5
	call	msleep@PLT
	mov	rdi, rbx
	call	iwl_alive_notify@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	call	IWL_ERR@PLT
	mov	r12d, DWORD PTR EIO[rip]
	mov	DWORD PTR [rbx], ebp
	neg	r12d
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwl_load_ucode_wait_alive, .-iwl_load_ucode_wait_alive
	.section	.rodata
	.align 4
	.type	alive_cmd.1978, @object
	.size	alive_cmd.1978, 4
alive_cmd.1978:
	.long	128
	.comm	iwl_alive_fn,4,4
	.comm	UCODE_ALIVE_TIMEOUT,4,4
	.comm	IWL_UCODE_WOWLAN,4,4
	.comm	EIO,4,4
	.comm	EINVAL,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_ucode.c_iwl_load_ucode_wait_alive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Loaded ucode is not valid!\012\000"
	.align	2
.LC1:
	.ascii	"Could not complete ALIVE transition: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iwl_load_ucode_wait_alive
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_load_ucode_wait_alive, %function
iwl_load_ucode_wait_alive:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L21
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r6, [r0]
	str	r1, [r0]
	mov	r4, r0
	mov	r7, r1
	bl	iwl_get_ucode_image
	mov	r8, #0
	subs	r5, r0, #0
	str	r8, [r4, #4]
	beq	.L15
	ldr	r0, .L21+4
	bl	ARRAY_SIZE
	ldr	r2, .L21+8
	add	r9, r4, #8
	ldr	r1, [r2]
	add	r2, sp, #16
	mov	r3, r0
	str	r1, [sp]
	str	r2, [sp, #4]
	add	r1, sp, #12
	ldr	r2, .L21+4
	mov	r0, r9
	bl	iwl_init_notification_wait
	mov	r1, r5
	mov	r2, r8
	ldr	r0, [r4, #12]
	bl	iwl_trans_start_fw
	subs	r5, r0, #0
	bne	.L16
	ldr	r3, .L21+12
	mov	r0, r9
	ldr	r2, [r3]
	add	r1, sp, #12
	bl	iwl_wait_notification
	subs	r5, r0, #0
	bne	.L13
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L17
	mov	r2, #1
	ldr	r3, .L21+16
	str	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L18
	mov	r0, r4
	bl	iwl_alive_notify
	subs	r5, r0, #0
	beq	.L1
.L20:
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L21+20
	bl	IWL_WARN
.L13:
	str	r6, [r4]
	b	.L1
.L16:
	mov	r0, r9
	str	r6, [r4]
	add	r1, sp, #12
	bl	iwl_remove_notification
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	ldr	r3, .L21+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L18:
	mov	r0, #5
	bl	msleep
	mov	r0, r4
	bl	iwl_alive_notify
	subs	r5, r0, #0
	beq	.L1
	b	.L20
.L17:
	mov	r0, r4
	ldr	r1, .L21+28
	bl	IWL_ERR
	ldr	r3, .L21+32
	str	r6, [r4]
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LANCHOR0
	.word	iwl_alive_fn
	.word	UCODE_ALIVE_TIMEOUT
	.word	IWL_UCODE_WOWLAN
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	EIO
	.size	iwl_load_ucode_wait_alive, .-iwl_load_ucode_wait_alive
	.comm	iwl_alive_fn,4,4
	.comm	UCODE_ALIVE_TIMEOUT,4,4
	.comm	IWL_UCODE_WOWLAN,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	alive_cmd.4262, %object
	.size	alive_cmd.4262, 4
alive_cmd.4262:
	.word	128
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
