	.file	"extr_trans.c_iwl_pcie_load_given_ucode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Dual"
.LC1:
	.string	"Single"
.LC2:
	.string	"working with %s CPU\n"
	.text
	.p2align 4
	.type	iwl_pcie_load_given_ucode, @function
iwl_pcie_load_given_ucode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rdx, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rsi], 0
	lea	rax, .LC1[rip]
	lea	rsi, .LC2[rip]
	cmove	rdx, rax
	lea	r14, 4[rsp]
	call	IWL_DEBUG_FW@PLT
	mov	rcx, r14
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbp
	call	iwl_pcie_load_cpu_sections@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR [r12], 0
	jne	.L4
.L7:
	cmp	QWORD PTR iwlwifi_mod_params[rip], 0
	je	.L6
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR IWL_DEVICE_FAMILY_7000[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L19
.L6:
	mov	rdi, rbp
	call	iwl_pcie_dbg_on@PLT
	test	rax, rax
	jne	.L20
.L9:
	mov	rdi, rbp
	call	iwl_enable_interrupts@PLT
	mov	esi, DWORD PTR CSR_RESET[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	iwl_write32@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR LMPM_SECURE_CPU2_HDR_MEM_SPACE[rip]
	mov	esi, DWORD PTR LMPM_SECURE_UCODE_LOAD_CPU2_HDR_ADDR[rip]
	mov	rdi, rbp
	call	iwl_write_prph@PLT
	mov	rcx, r14
	mov	edx, 2
	mov	rsi, r12
	mov	rdi, rbp
	call	iwl_pcie_load_cpu_sections@PLT
	test	eax, eax
	je	.L7
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	iwl_pcie_apply_destination@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	xor	esi, esi
	mov	rdi, rbp
	call	iwl_pcie_alloc_fw_monitor@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L9
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR MON_BUFF_BASE_ADDR[rip]
	mov	rdi, rbp
	sar	edx, 4
	call	iwl_write_prph@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR MON_BUFF_END_ADDR[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	add	edx, DWORD PTR 4[rax]
	sar	edx, 4
	call	iwl_write_prph@PLT
	jmp	.L9
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwl_pcie_load_given_ucode, .-iwl_pcie_load_given_ucode
	.comm	iwlwifi_mod_params,8,8
	.comm	MON_BUFF_END_ADDR,4,4
	.comm	MON_BUFF_BASE_ADDR,4,4
	.comm	LMPM_SECURE_UCODE_LOAD_CPU2_HDR_ADDR,4,4
	.comm	LMPM_SECURE_CPU2_HDR_MEM_SPACE,4,4
	.comm	IWL_DEVICE_FAMILY_7000,8,8
	.comm	CSR_RESET,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_trans.c_iwl_pcie_load_given_ucode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Dual\000"
	.align	2
.LC1:
	.ascii	"Single\000"
	.align	2
.LC2:
	.ascii	"working with %s CPU\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_pcie_load_given_ucode, %function
iwl_pcie_load_given_ucode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r4, r0
	ldr	ip, [r1]
	ldr	r3, .L22
	cmp	ip, #0
	ldr	r2, .L22+4
	moveq	r2, r3
	ldr	r3, .L22+8
	sub	sp, sp, #8
	ldr	r1, .L22+12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	IWL_DEBUG_FW
	mov	r1, r6
	mov	r0, r4
	mov	r3, sp
	mov	r2, #1
	bl	iwl_pcie_load_cpu_sections
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L4
.L7:
	ldr	r3, .L22+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r2, [r4, #4]
	ldr	r3, .L22+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
.L6:
	mov	r0, r4
	bl	iwl_pcie_dbg_on
	cmp	r0, #0
	bne	.L20
.L9:
	mov	r0, r4
	bl	iwl_enable_interrupts
	ldr	r3, .L22+24
	mov	r0, r4
	mov	r2, #0
	ldr	r1, [r3]
	bl	iwl_write32
.L1:
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L22+28
	ldr	r2, .L22+32
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	iwl_write_prph
	mov	r3, sp
	mov	r1, r6
	mov	r2, #2
	mov	r0, r4
	bl	iwl_pcie_load_cpu_sections
	cmp	r0, #0
	beq	.L7
	mov	r5, r0
	b	.L1
.L20:
	mov	r0, r4
	bl	iwl_pcie_apply_destination
	b	.L9
.L19:
	mov	r1, #0
	mov	r0, r4
	bl	iwl_pcie_alloc_fw_monitor
	ldr	r3, [r4]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L9
	ldr	r2, [r3, #4]
	ldr	r3, .L22+36
	mov	r0, r4
	ldr	r1, [r3]
	asr	r2, r2, #4
	bl	iwl_write_prph
	ldr	r3, [r4]
	ldr	r1, .L22+40
	ldr	r2, [r3, #4]
	ldr	r3, [r3]
	mov	r0, r4
	add	r2, r2, r3
	ldr	r1, [r1]
	asr	r2, r2, #4
	bl	iwl_write_prph
	b	.L9
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	iwlwifi_mod_params
	.word	IWL_DEVICE_FAMILY_7000
	.word	CSR_RESET
	.word	LMPM_SECURE_UCODE_LOAD_CPU2_HDR_ADDR
	.word	LMPM_SECURE_CPU2_HDR_MEM_SPACE
	.word	MON_BUFF_BASE_ADDR
	.word	MON_BUFF_END_ADDR
	.size	iwl_pcie_load_given_ucode, .-iwl_pcie_load_given_ucode
	.comm	iwlwifi_mod_params,4,4
	.comm	MON_BUFF_END_ADDR,4,4
	.comm	MON_BUFF_BASE_ADDR,4,4
	.comm	LMPM_SECURE_UCODE_LOAD_CPU2_HDR_ADDR,4,4
	.comm	LMPM_SECURE_CPU2_HDR_MEM_SPACE,4,4
	.comm	IWL_DEVICE_FAMILY_7000,4,4
	.comm	CSR_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
