	.file	"extr_rx.c_iwl_pcie_get_rxb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Got virtual RB ID %u\n"
.LC1:
	.string	"Invalid rxb from HW %u\n"
	.text
	.p2align 4
	.type	iwl_pcie_get_rxb, @function
iwl_pcie_get_rxb:
.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	r12, rsi
	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
	movsx	rbx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	IWL_TRANS_GET_PCIE_TRANS@PLT
	mov	edi, 1
	mov	r13, rax
	call	BUILD_BUG_ON@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 8[rax]
	test	edx, edx
	je	.L12
	mov	rcx, QWORD PTR IWL_DEVICE_FAMILY_22560[rip]
	cmp	QWORD PTR [rax], rcx
	jge	.L13
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	le32_to_cpu@PLT
	and	eax, 4095
	mov	r12d, eax
	test	r12d, r12d
	je	.L6
.L14:
	mov	rdi, QWORD PTR 0[r13]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jl	.L6
	mov	rdx, QWORD PTR 0[r13]
	movsx	rax, r12d
	mov	r13, QWORD PTR -8[rdx+rax*8]
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR 8[r13]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	IWL_DEBUG_RX@PLT
	mov	DWORD PTR 0[r13], 1
	mov	rax, r13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	le16_to_cpu@PLT
	and	eax, 4095
	mov	r12d, eax
	test	r12d, r12d
	jne	.L14
.L6:
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	edi, 1
	xor	r13d, r13d
	call	WARN@PLT
	mov	rdi, rbp
	call	iwl_force_nmi@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[r12]
	lea	rax, [rax+rbx*8]
	mov	r13, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rax, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iwl_pcie_get_rxb, .-iwl_pcie_get_rxb
	.comm	IWL_DEVICE_FAMILY_22560,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_rx.c_iwl_pcie_get_rxb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Got virtual RB ID %u\012\000"
	.align	2
.LC1:
	.ascii	"Invalid rxb from HW %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_pcie_get_rxb, %function
iwl_pcie_get_rxb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r7, r1
	mov	r5, r0
	bl	IWL_TRANS_GET_PCIE_TRANS
	mov	r6, r0
	mov	r0, #1
	bl	BUILD_BUG_ON
	ldr	r3, [r5]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L12
	ldr	r1, .L15
	ldr	r2, [r3]
	ldr	r3, [r1]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [r7]
	ldr	r0, [r3, r4, lsl #2]
	bl	le32_to_cpu
	lsl	r4, r0, #20
	lsr	r4, r4, #20
	cmp	r4, #0
	beq	.L6
.L14:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r4
	blt	.L6
	ldr	r3, [r6]
	sub	r2, r4, #-1073741823
	ldr	r6, [r3, r2, lsl #2]
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L6
	mov	r0, r5
	ldr	r2, [r6, #4]
	ldr	r1, .L15+4
	bl	IWL_DEBUG_RX
	mov	r3, #1
	mov	r0, r6
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, [r7, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	le16_to_cpu
	lsl	r4, r0, #20
	lsr	r4, r4, #20
	cmp	r4, #0
	bne	.L14
.L6:
	mov	r6, #0
	mov	r2, r4
	ldr	r1, .L15+8
	mov	r0, #1
	bl	WARN
	mov	r0, r5
	bl	iwl_force_nmi
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, [r7, #8]
	ldr	r6, [r3, r4, lsl #2]
	str	r2, [r3, r4, lsl #2]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	IWL_DEVICE_FAMILY_22560
	.word	.LC0
	.word	.LC1
	.size	iwl_pcie_get_rxb, .-iwl_pcie_get_rxb
	.comm	IWL_DEVICE_FAMILY_22560,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
