	.file	"extr_driver.c_set_armed_to_active.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unexpected link state %s\n"
	.text
	.p2align 4
	.type	set_armed_to_active, @function
set_armed_to_active:
.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, rdx
	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, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	edi, DWORD PTR 8[rsi]
	call	rhf_rcv_type@PLT
	cmp	QWORD PTR RHF_RCV_TYPE_IB[rip], rax
	je	.L11
	cmp	QWORD PTR RHF_RCV_TYPE_BYPASS[rip], rax
	je	.L4
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	hfi1_get_msgheader@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rax
	call	hfi1_9B_get_sc5@PLT
.L3:
	cmp	QWORD PTR SC15_PACKET[rip], rax
	je	.L9
	mov	rdi, QWORD PTR 0[rbp]
	call	driver_lstate@PLT
	cmp	DWORD PTR IB_PORT_ACTIVE[rip], eax
	mov	edi, eax
	je	.L7
	call	opa_lstate_name@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	edx, eax
	call	dd_dev_info@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	hfi1_get_16B_header@PLT
	mov	rdi, rax
	call	hfi1_16B_get_sc@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, 4[r13]
	mov	edi, DWORD PTR [rax]
	call	queue_work@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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	set_armed_to_active, .-set_armed_to_active
	.comm	SC15_PACKET,8,8
	.comm	RHF_RCV_TYPE_IB,8,8
	.comm	RHF_RCV_TYPE_BYPASS,8,8
	.comm	IB_PORT_ACTIVE,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_driver.c_set_armed_to_active.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unexpected link state %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_armed_to_active, %function
set_armed_to_active:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r1, #8]
	mov	r4, r1
	mov	r6, r2
	ldr	r7, [r5]
	bl	rhf_rcv_type
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L11
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	hfi1_get_msgheader
	ldr	r1, [r4, #8]
	bl	hfi1_9B_get_sc5
.L3:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L9
	ldr	r0, [r5]
	bl	driver_lstate
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	bl	opa_lstate_name
	ldr	r1, .L12+16
	mov	r2, r0
	mov	r0, r6
	bl	dd_dev_info
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [r5]
	add	r1, r7, #4
	ldr	r0, [r3]
	bl	queue_work
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	hfi1_get_16B_header
	bl	hfi1_16B_get_sc
	b	.L3
.L13:
	.align	2
.L12:
	.word	RHF_RCV_TYPE_IB
	.word	RHF_RCV_TYPE_BYPASS
	.word	SC15_PACKET
	.word	IB_PORT_ACTIVE
	.word	.LC0
	.size	set_armed_to_active, .-set_armed_to_active
	.comm	SC15_PACKET,4,4
	.comm	RHF_RCV_TYPE_IB,4,4
	.comm	RHF_RCV_TYPE_BYPASS,4,4
	.comm	IB_PORT_ACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
