	.file	"extr_mlx5_main.c_handle_hca_cap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Current Pkey table size %d Setting new size %d\n"
	.text
	.p2align 4
	.type	handle_hca_cap, @function
handle_hca_cap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR set_hca_cap_in[rip]
	call	MLX5_ST_SZ_BYTES@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, eax
	mov	r14d, eax
	call	kzalloc@PLT
	mov	rsi, QWORD PTR MLX5_CAP_GENERAL[rip]
	mov	rdi, rbp
	mov	r13, rax
	call	mlx5_core_get_caps@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L2:
	mov	rdi, r13
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR capability[rip]
	mov	edi, DWORD PTR set_hca_cap_in[rip]
	mov	rsi, r13
	call	MLX5_ADDR_OF@PLT
	mov	edi, DWORD PTR cmd_hca_cap[rip]
	mov	r12, rax
	call	MLX5_ST_SZ_BYTES@PLT
	mov	rcx, QWORD PTR MLX5_CAP_GENERAL[rip]
	mov	rdi, r12
	mov	edx, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR [rax+rcx*4]
	call	memcpy@PLT
	mov	esi, DWORD PTR pkey_table_size[rip]
	mov	rdi, rbp
	call	MLX5_CAP_GEN@PLT
	mov	edi, eax
	call	mlx5_to_sw_pkey_sz@PLT
	mov	ecx, 128
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	mlx5_core_dbg@PLT
	mov	esi, 128
	mov	rdi, rbp
	call	to_fw_pkey_sz@PLT
	mov	edx, DWORD PTR pkey_table_size[rip]
	mov	edi, DWORD PTR cmd_hca_cap[rip]
	mov	rsi, r12
	mov	ecx, eax
	call	MLX5_SET@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MLX5_PROF_MASK_QP_SIZE[rip], eax
	jne	.L11
.L3:
	mov	edx, DWORD PTR cmdif_checksum[rip]
	mov	edi, DWORD PTR cmd_hca_cap[rip]
	mov	rsi, r12
	xor	ecx, ecx
	call	MLX5_SET@PLT
	mov	edx, DWORD PTR drain_sigerr[rip]
	mov	edi, DWORD PTR cmd_hca_cap[rip]
	mov	rsi, r12
	mov	ecx, 1
	call	MLX5_SET@PLT
	mov	eax, DWORD PTR PAGE_SHIFT[rip]
	mov	edx, DWORD PTR log_uar_page_sz[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR cmd_hca_cap[rip]
	lea	ecx, -12[rax]
	call	MLX5_SET@PLT
	mov	edx, r14d
	mov	rsi, r13
	mov	rdi, rbp
	call	set_caps@PLT
	mov	r12d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR log_max_qp[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR cmd_hca_cap[rip]
	call	MLX5_SET@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	handle_hca_cap, .-handle_hca_cap
	.comm	set_hca_cap_in,4,4
	.comm	pkey_table_size,4,4
	.comm	log_uar_page_sz,4,4
	.comm	log_max_qp,4,4
	.comm	drain_sigerr,4,4
	.comm	cmdif_checksum,4,4
	.comm	cmd_hca_cap,4,4
	.comm	capability,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	MLX5_PROF_MASK_QP_SIZE,4,4
	.comm	MLX5_CAP_GENERAL,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_mlx5_main.c_handle_hca_cap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Current Pkey table size %d Setting new size %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_hca_cap, %function
handle_hca_cap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L11
	mov	r4, r0
	ldr	r9, [r0, #4]
	ldr	r0, [r10]
	bl	MLX5_ST_SZ_BYTES
	ldr	r3, .L11+4
	mov	r7, r0
	ldr	r1, [r3]
	bl	kzalloc
	ldr	r8, .L11+8
	mov	r6, r0
	ldr	r1, [r8]
	mov	r0, r4
	bl	mlx5_core_get_caps
	subs	r5, r0, #0
	beq	.L9
.L2:
	mov	r0, r6
	bl	kfree
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L11+12
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r10]
	bl	MLX5_ADDR_OF
	ldr	r2, [r8]
	ldr	r8, .L11+16
	ldr	r3, [r4]
	mov	r5, r0
	ldr	r0, [r8]
	ldr	fp, [r3, r2, lsl #2]
	bl	MLX5_ST_SZ_BYTES
	ldr	r10, .L11+20
	mov	r2, r0
	mov	r1, fp
	mov	r0, r5
	bl	memcpy
	ldr	r1, [r10]
	mov	r0, r4
	bl	MLX5_CAP_GEN
	bl	mlx5_to_sw_pkey_sz
	mov	r3, #128
	mov	r2, r0
	ldr	r1, .L11+24
	mov	r0, r4
	bl	mlx5_core_dbg
	mov	r1, #128
	mov	r0, r4
	ldr	fp, [r10]
	ldr	r10, [r8]
	bl	to_fw_pkey_sz
	mov	r2, fp
	mov	r3, r0
	mov	r1, r5
	mov	r0, r10
	bl	MLX5_SET
	ldr	r3, .L11+28
	ldr	r2, [r9]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L10
.L3:
	ldr	r2, .L11+32
	mov	r1, r5
	mov	r3, #0
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	MLX5_SET
	ldr	r2, .L11+36
	mov	r1, r5
	mov	r3, #1
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	MLX5_SET
	ldr	r3, .L11+40
	ldr	r2, .L11+44
	ldr	r3, [r3]
	mov	r1, r5
	ldr	r2, [r2]
	sub	r3, r3, #12
	ldr	r0, [r8]
	bl	MLX5_SET
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	set_caps
	mov	r5, r0
	b	.L2
.L10:
	ldr	r2, .L11+48
	mov	r1, r5
	ldr	r3, [r9, #4]
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	MLX5_SET
	b	.L3
.L12:
	.align	2
.L11:
	.word	set_hca_cap_in
	.word	GFP_KERNEL
	.word	MLX5_CAP_GENERAL
	.word	capability
	.word	cmd_hca_cap
	.word	pkey_table_size
	.word	.LC0
	.word	MLX5_PROF_MASK_QP_SIZE
	.word	cmdif_checksum
	.word	drain_sigerr
	.word	PAGE_SHIFT
	.word	log_uar_page_sz
	.word	log_max_qp
	.size	handle_hca_cap, .-handle_hca_cap
	.comm	set_hca_cap_in,4,4
	.comm	pkey_table_size,4,4
	.comm	log_uar_page_sz,4,4
	.comm	log_max_qp,4,4
	.comm	drain_sigerr,4,4
	.comm	cmdif_checksum,4,4
	.comm	cmd_hca_cap,4,4
	.comm	capability,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	MLX5_PROF_MASK_QP_SIZE,4,4
	.comm	MLX5_CAP_GENERAL,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
