	.file	"extr_fw.c_mlx4_QUERY_DEV_CAP_wrapper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_QUERY_DEV_CAP_wrapper
	.type	mlx4_QUERY_DEV_CAP_wrapper, @function
mlx4_QUERY_DEV_CAP_wrapper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	ecx, ecx
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	mov	rbx, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	mov	edx, DWORD PTR 8[r8]
	xor	r8d, r8d
	mov	r9d, DWORD PTR MLX4_CMD_QUERY_DEV_CAP[rip]
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR MLX4_CMD_TIME_CLASS_A[rip]
	push	rax
	.cfi_def_cfa_offset 64
	call	mlx4_cmd_box@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	je	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR QUERY_DEV_CAP_EXT_FLAGS_OFFSET[rip]
	mov	rsi, QWORD PTR [rbx]
	xor	edi, edi
	xor	r13d, r13d
	call	MLX4_GET@PLT
	mov	esi, DWORD PTR MLX4_DEV_CAP_FLAG_MEM_WINDOW[rip]
	mov	edx, DWORD PTR QUERY_DEV_CAP_EXT_FLAGS_OFFSET[rip]
	mov	rdi, QWORD PTR [rbx]
	not	esi
	and	esi, DWORD PTR MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV[rip]
	call	MLX4_PUT@PLT
	mov	edx, DWORD PTR QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET[rip]
	mov	rsi, QWORD PTR [rbx]
	mov	edi, r13d
	and	r13d, 127
	call	MLX4_GET@PLT
	mov	edx, DWORD PTR QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	esi, r13d
	call	MLX4_PUT@PLT
	mov	edx, DWORD PTR QUERY_DEV_CAP_BF_OFFSET[rip]
	mov	rsi, QWORD PTR [rbx]
	mov	edi, r13d
	call	MLX4_GET@PLT
	mov	edx, DWORD PTR QUERY_DEV_CAP_BF_OFFSET[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	esi, r13d
	call	MLX4_PUT@PLT
	mov	edx, DWORD PTR QUERY_DEV_CAP_BMME_FLAGS_OFFSET[rip]
	mov	rsi, rbx
	xor	edi, edi
	call	MLX4_GET@PLT
	mov	edx, DWORD PTR QUERY_DEV_CAP_BMME_FLAGS_OFFSET[rip]
	mov	rdi, QWORD PTR [rbx]
	xor	esi, esi
	call	MLX4_PUT@PLT
	mov	rax, QWORD PTR MLX4_STEERING_MODE_DEVICE_MANAGED[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L1
	mov	rsi, QWORD PTR [rbx]
	mov	edx, DWORD PTR QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET[rip]
	mov	edi, r13d
	call	MLX4_GET@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, DWORD PTR QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET[rip]
	mov	esi, r13d
	call	MLX4_PUT@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	mlx4_QUERY_DEV_CAP_wrapper, .-mlx4_QUERY_DEV_CAP_wrapper
	.comm	QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET,4,4
	.comm	QUERY_DEV_CAP_EXT_FLAGS_OFFSET,4,4
	.comm	QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET,4,4
	.comm	QUERY_DEV_CAP_BMME_FLAGS_OFFSET,4,4
	.comm	QUERY_DEV_CAP_BF_OFFSET,4,4
	.comm	MLX4_STEERING_MODE_DEVICE_MANAGED,8,8
	.comm	MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV,4,4
	.comm	MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,4
	.comm	MLX4_CMD_TIME_CLASS_A,4,4
	.comm	MLX4_CMD_QUERY_DEV_CAP,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.comm	MLX4_BMME_FLAG_TYPE_2_WIN,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_fw.c_mlx4_QUERY_DEV_CAP_wrapper.c"
	.text
	.align	2
	.global	mlx4_QUERY_DEV_CAP_wrapper
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_QUERY_DEV_CAP_wrapper, %function
mlx4_QUERY_DEV_CAP_wrapper:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L6
	ldr	r1, .L6+4
	ldr	r2, .L6+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	sub	sp, sp, #20
	ldr	ip, [ip]
	ldr	r4, [sp, #48]
	str	r1, [sp, #8]
	str	ip, [sp, #12]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, r3
	ldr	r2, [r4, #4]
	mov	r7, r0
	bl	mlx4_cmd_box
	subs	r5, r0, #0
	beq	.L5
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r9, #0
	ldr	r6, .L6+12
	mov	r0, r9
	ldr	r2, [r6]
	ldr	r1, [r4]
	bl	MLX4_GET
	ldr	r2, .L6+16
	ldr	r3, .L6+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r8, .L6+24
	bic	r1, r3, r1
	ldr	r2, [r6]
	ldr	r0, [r4]
	bl	MLX4_PUT
	and	r6, r9, #127
	ldr	r2, [r8]
	mov	r0, r9
	ldr	r1, [r4]
	ldr	r9, .L6+28
	bl	MLX4_GET
	ldr	r2, [r8]
	mov	r1, r6
	ldr	r0, [r4]
	bl	MLX4_PUT
	ldr	r8, .L6+32
	ldr	r2, [r9]
	ldr	r1, [r4]
	mov	r0, r6
	bl	MLX4_GET
	mov	r1, r6
	ldr	r2, [r9]
	ldr	r0, [r4]
	bl	MLX4_PUT
	mov	r1, r4
	ldr	r2, [r8]
	mov	r0, #0
	bl	MLX4_GET
	ldr	r2, [r8]
	mov	r1, #0
	ldr	r0, [r4]
	bl	MLX4_PUT
	ldr	r3, .L6+36
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	ldr	r7, .L6+40
	ldr	r1, [r4]
	ldr	r2, [r7]
	mov	r0, r6
	bl	MLX4_GET
	mov	r1, r6
	ldr	r2, [r7]
	ldr	r0, [r4]
	bl	MLX4_PUT
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	.align	2
.L6:
	.word	MLX4_CMD_NATIVE
	.word	MLX4_CMD_TIME_CLASS_A
	.word	MLX4_CMD_QUERY_DEV_CAP
	.word	QUERY_DEV_CAP_EXT_FLAGS_OFFSET
	.word	MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.word	MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV
	.word	QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET
	.word	QUERY_DEV_CAP_BF_OFFSET
	.word	QUERY_DEV_CAP_BMME_FLAGS_OFFSET
	.word	MLX4_STEERING_MODE_DEVICE_MANAGED
	.word	QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET
	.size	mlx4_QUERY_DEV_CAP_wrapper, .-mlx4_QUERY_DEV_CAP_wrapper
	.comm	QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET,4,4
	.comm	QUERY_DEV_CAP_EXT_FLAGS_OFFSET,4,4
	.comm	QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET,4,4
	.comm	QUERY_DEV_CAP_BMME_FLAGS_OFFSET,4,4
	.comm	QUERY_DEV_CAP_BF_OFFSET,4,4
	.comm	MLX4_STEERING_MODE_DEVICE_MANAGED,4,4
	.comm	MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV,4,4
	.comm	MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,4
	.comm	MLX4_CMD_TIME_CLASS_A,4,4
	.comm	MLX4_CMD_QUERY_DEV_CAP,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.comm	MLX4_BMME_FLAG_TYPE_2_WIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
