	.file	"extr_ib_mad.c_generate_unmatched_resp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generate_unmatched_resp, @function
generate_unmatched_resp:
.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
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r15, QWORD PTR [rdi]
	mov	rax, QWORD PTR [r15]
	cmp	rax, QWORD PTR IB_MGMT_METHOD_GET[rip]
	je	.L2
	xor	r8d, r8d
	cmp	rax, QWORD PTR IB_MGMT_METHOD_SET[rip]
	je	.L2
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	mov	r12, QWORD PTR [rbx]
	call	mad_priv_size@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	edx, eax
	call	memcpy@PLT
	lea	rax, 40[rbx]
	mov	edi, DWORD PTR IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB[rip]
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 24[rbx], rax
	lea	rax, 8[rbx]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR IB_MGMT_METHOD_GET_RESP[rip]
	mov	QWORD PTR [r12], rax
	call	cpu_to_be16@PLT
	mov	rdx, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE[rip]
	mov	DWORD PTR 24[r12], eax
	cmp	rdx, rcx
	jne	.L4
	or	eax, DWORD PTR IB_SMP_DIRECTION[rip]
	mov	DWORD PTR 24[r12], eax
.L4:
	mov	r8d, 1
	test	r14d, r14d
	je	.L1
	mov	rax, QWORD PTR OPA_MGMT_BASE_VERSION[rip]
	cmp	QWORD PTR 16[r15], rax
	jne	.L1
	cmp	QWORD PTR IB_MGMT_CLASS_SUBN_LID_ROUTED[rip], rdx
	je	.L10
	cmp	rdx, rcx
	je	.L10
	mov	QWORD PTR 0[r13], 32
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 0[rbp]
	call	opa_get_smp_header_size@PLT
	mov	r8d, 1
	mov	QWORD PTR 0[r13], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	generate_unmatched_resp, .-generate_unmatched_resp
	.comm	OPA_MGMT_BASE_VERSION,8,8
	.comm	IB_SMP_DIRECTION,4,4
	.comm	IB_MGMT_METHOD_SET,8,8
	.comm	IB_MGMT_METHOD_GET_RESP,8,8
	.comm	IB_MGMT_METHOD_GET,8,8
	.comm	IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB,4,4
	.comm	IB_MGMT_CLASS_SUBN_LID_ROUTED,8,8
	.comm	IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,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_ib_mad.c_generate_unmatched_resp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_unmatched_resp, %function
generate_unmatched_resp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r0]
	mov	r6, r0
	ldr	r0, .L13
	ldr	ip, [r7]
	ldr	lr, [r0]
	mov	r4, r1
	cmp	ip, lr
	mov	r8, r2
	mov	r5, r3
	beq	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	ip, r3
	beq	.L2
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r4
	ldr	r9, [r4]
	bl	mad_priv_size
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	memcpy
	ldr	r3, .L13+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r2, .L13+12
	str	r1, [r4, #12]
	add	r0, r4, #20
	add	r1, r4, #4
	str	r1, [r4, #8]
	str	r0, [r4, #16]
	ldr	r0, [r2]
	str	r3, [r9]
	bl	cpu_to_be16
	ldr	r2, .L13+16
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	str	r0, [r9, #12]
	cmp	r3, r2
	ldreq	r1, .L13+20
	ldreq	r1, [r1]
	orreq	r0, r1, r0
	streq	r0, [r9, #12]
	cmp	r5, #0
	beq	.L8
	ldr	r1, .L13+24
	ldr	r0, [r7, #8]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L11
.L8:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r1, .L13+28
	ldr	r1, [r1]
	cmp	r3, r2
	cmpne	r1, r3
	beq	.L12
	mov	r3, #16
	mov	r0, #1
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, [r6]
	bl	opa_get_smp_header_size
	mov	r3, r0
	mov	r0, #1
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	IB_MGMT_METHOD_GET
	.word	IB_MGMT_METHOD_SET
	.word	IB_MGMT_METHOD_GET_RESP
	.word	IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB
	.word	IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.word	IB_SMP_DIRECTION
	.word	OPA_MGMT_BASE_VERSION
	.word	IB_MGMT_CLASS_SUBN_LID_ROUTED
	.size	generate_unmatched_resp, .-generate_unmatched_resp
	.comm	OPA_MGMT_BASE_VERSION,4,4
	.comm	IB_SMP_DIRECTION,4,4
	.comm	IB_MGMT_METHOD_SET,4,4
	.comm	IB_MGMT_METHOD_GET_RESP,4,4
	.comm	IB_MGMT_METHOD_GET,4,4
	.comm	IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB,4,4
	.comm	IB_MGMT_CLASS_SUBN_LID_ROUTED,4,4
	.comm	IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
