	.file	"extr_ipmi_bt_sm.c_bt_start_transaction.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"+++++++++++++++++ New command\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"NetFn/LUN CMD [%d data]:"
.LC2:
	.string	" %02x"
.LC3:
	.string	"\n"
	.text
	.p2align 4
	.type	bt_start_transaction, @function
bt_start_transaction:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edx, 1
	jbe	.L17
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR IPMI_MAX_MSG_LENGTH[rip], edx
	mov	eax, DWORD PTR IPMI_REQ_LEN_EXCEEDED_ERR[rip]
	jb	.L1
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR BT_STATE_LONG_BUSY[rip]
	mov	r14, rdi
	je	.L18
	cmp	rax, QWORD PTR BT_STATE_IDLE[rip]
	jne	.L19
	lea	eax, -1[rdx]
	mov	r15, rsi
	mov	DWORD PTR 4[rsp], eax
	lea	rax, 1[rsi]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR bt_debug[rip]
	test	DWORD PTR BT_DEBUG_MSG[rip], eax
	jne	.L20
.L7:
	mov	rdi, QWORD PTR 8[r14]
	lea	eax, 1[rbx]
	mov	rsi, QWORD PTR 8[rsp]
	add	ebx, 2
	mov	DWORD PTR [rdi], eax
	movzx	eax, BYTE PTR [r15]
	add	rdi, 12
	mov	DWORD PTR -8[rdi], eax
	mov	eax, DWORD PTR 56[r14]
	lea	edx, 1[rax]
	mov	DWORD PTR 56[r14], edx
	mov	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR -4[rdi], eax
	call	memcpy@PLT
	mov	rax, QWORD PTR BT_STATE_XACTION_START[rip]
	mov	rdi, r14
	mov	DWORD PTR 16[r14], ebx
	mov	QWORD PTR 48[r14], 0
	mov	esi, DWORD PTR IPMI_ERR_UNSPECIFIED[rip]
	mov	QWORD PTR [r14], rax
	mov	eax, DWORD PTR 20[r14]
	mov	QWORD PTR 40[r14], 0
	mov	QWORD PTR 32[r14], 0
	mov	DWORD PTR 24[r14], eax
	call	force_result@PLT
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR IPMI_REQ_LEN_INVALID_ERR[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	eax, DWORD PTR IPMI_NOT_IN_MY_STATE_ERR[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR IPMI_NODE_BUSY_ERR[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 64[rdi]
	lea	rsi, .LC0[rip]
	mov	rbp, r15
	lea	r13, .LC2[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rax, QWORD PTR 64[r14]
	lea	edx, -2[rbx]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12d, DWORD PTR 4[rsp]
	add	r12, QWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L8:
	movzx	esi, BYTE PTR 0[rbp]
	mov	rdi, r13
	xor	eax, eax
	add	rbp, 1
	call	pr_cont@PLT
	cmp	r12, rbp
	jne	.L8
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	pr_cont@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	bt_start_transaction, .-bt_start_transaction
	.comm	bt_debug,4,4
	.comm	IPMI_REQ_LEN_INVALID_ERR,4,4
	.comm	IPMI_REQ_LEN_EXCEEDED_ERR,4,4
	.comm	IPMI_NOT_IN_MY_STATE_ERR,4,4
	.comm	IPMI_NODE_BUSY_ERR,4,4
	.comm	IPMI_MAX_MSG_LENGTH,4,4
	.comm	IPMI_ERR_UNSPECIFIED,4,4
	.comm	BT_STATE_XACTION_START,8,8
	.comm	BT_STATE_LONG_BUSY,8,8
	.comm	BT_STATE_IDLE,8,8
	.comm	BT_DEBUG_MSG,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_ipmi_bt_sm.c_bt_start_transaction.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"+++++++++++++++++ New command\012\000"
	.align	2
.LC1:
	.ascii	"NetFn/LUN CMD [%d data]:\000"
	.align	2
.LC2:
	.ascii	" %02x\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bt_start_transaction, %function
bt_start_transaction:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #1
	bls	.L17
	ldr	r3, .L22
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	mov	r4, r2
	cmp	r3, r2
	bcc	.L18
	ldr	r2, .L22+4
	ldr	r3, [r0]
	ldr	r2, [r2]
	mov	r5, r0
	cmp	r3, r2
	beq	.L19
	ldr	r2, .L22+8
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L20
	ldr	r2, .L22+12
	ldr	r3, .L22+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r6, r1
	tst	r2, r3
	bne	.L21
.L7:
	mov	r1, r6
	mov	r6, #0
	ldr	r0, [r5, #4]
	add	r3, r4, #1
	str	r3, [r0]
	ldrb	r3, [r1], #1	@ zero_extendqisi2
	add	r0, r0, #12
	str	r3, [r0, #-8]
	ldr	r3, [r5, #32]
	add	r2, r3, #1
	str	r2, [r5, #32]
	sub	r2, r4, #1
	str	r3, [r0, #-4]
	bl	memcpy
	ldr	r3, .L22+20
	ldr	r2, [r5, #12]
	ldr	r1, [r3]
	ldr	r3, .L22+24
	add	r4, r4, #2
	str	r1, [r5]
	mov	r0, r5
	ldr	r1, [r3]
	str	r4, [r5, #8]
	str	r6, [r5, #28]
	str	r6, [r5, #24]
	str	r6, [r5, #20]
	str	r2, [r5, #16]
	bl	force_result
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r3, .L22+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r3, .L22+32
	ldr	r0, [r3]
	bx	lr
.L20:
	ldr	r3, .L22+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, .L22+40
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r3, [r0, #36]
	ldr	r1, .L22+44
	ldr	r0, [r3]
	bl	dev_dbg
	ldr	r3, [r5, #36]
	ldr	r1, .L22+48
	ldr	r0, [r3]
	sub	r2, r4, #2
	bl	dev_dbg
	sub	r7, r6, #1
	ldr	r9, .L22+52
	add	r8, r7, r4
.L8:
	ldrb	r1, [r7, #1]!	@ zero_extendqisi2
	mov	r0, r9
	bl	pr_cont
	cmp	r8, r7
	bne	.L8
	ldr	r0, .L22+56
	bl	pr_cont
	b	.L7
.L23:
	.align	2
.L22:
	.word	IPMI_MAX_MSG_LENGTH
	.word	BT_STATE_LONG_BUSY
	.word	BT_STATE_IDLE
	.word	bt_debug
	.word	BT_DEBUG_MSG
	.word	BT_STATE_XACTION_START
	.word	IPMI_ERR_UNSPECIFIED
	.word	IPMI_REQ_LEN_EXCEEDED_ERR
	.word	IPMI_REQ_LEN_INVALID_ERR
	.word	IPMI_NOT_IN_MY_STATE_ERR
	.word	IPMI_NODE_BUSY_ERR
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	bt_start_transaction, .-bt_start_transaction
	.comm	bt_debug,4,4
	.comm	IPMI_REQ_LEN_INVALID_ERR,4,4
	.comm	IPMI_REQ_LEN_EXCEEDED_ERR,4,4
	.comm	IPMI_NOT_IN_MY_STATE_ERR,4,4
	.comm	IPMI_NODE_BUSY_ERR,4,4
	.comm	IPMI_MAX_MSG_LENGTH,4,4
	.comm	IPMI_ERR_UNSPECIFIED,4,4
	.comm	BT_STATE_XACTION_START,4,4
	.comm	BT_STATE_LONG_BUSY,4,4
	.comm	BT_STATE_IDLE,4,4
	.comm	BT_DEBUG_MSG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
