	.file	"extr_b1.c_b1_send_message.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	b1_send_message
	.type	b1_send_message, @function
b1_send_message:
.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
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR [rdi]
	mov	rdi, QWORD PTR [rsi]
	mov	r12, QWORD PTR 8[r15]
	mov	r14d, DWORD PTR [r12]
	add	r12, 4
	call	CAPIMSG_LEN@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r13, rax
	call	CAPIMSG_COMMAND@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	ebx, eax
	call	CAPIMSG_SUBCOMMAND@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	call	spin_lock_irqsave@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	edi, ebx
	mov	esi, r8d
	call	CAPICMD@PLT
	cmp	rax, QWORD PTR CAPI_DATA_B3_REQ[rip]
	je	.L8
	mov	esi, DWORD PTR SEND_MESSAGE[rip]
	mov	edi, r14d
	call	b1_put_byte@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, r13
	mov	edi, r14d
	call	b1_put_slice@PLT
.L5:
	xor	esi, esi
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	dev_kfree_skb_any@PLT
	mov	r15, QWORD PTR CAPI_NOERROR[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[rbp]
	call	CAPIMSG_MSGID@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	DWORD PTR 12[rsp], eax
	call	CAPIMSG_NCCI@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	ebx, eax
	call	CAPIMSG_APPID@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	rdi, r15
	mov	edx, ebx
	mov	esi, eax
	call	capilib_data_b3_req@PLT
	cmp	QWORD PTR CAPI_NOERROR[rip], rax
	mov	r15, rax
	je	.L3
	xor	esi, esi
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 0[rbp]
	call	CAPIMSG_DATALEN@PLT
	mov	esi, DWORD PTR SEND_DATA_B3_REQ[rip]
	mov	edi, r14d
	mov	r15, rax
	call	b1_put_byte@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, r13
	mov	edi, r14d
	call	b1_put_slice@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, r15
	mov	edi, r14d
	add	rsi, r13
	call	b1_put_slice@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	b1_send_message, .-b1_send_message
	.comm	SEND_MESSAGE,4,4
	.comm	SEND_DATA_B3_REQ,4,4
	.comm	CAPI_NOERROR,8,8
	.comm	CAPI_DATA_B3_REQ,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_b1.c_b1_send_message.c"
	.text
	.align	2
	.global	b1_send_message
	.syntax unified
	.arm
	.fpu softvfp
	.type	b1_send_message, %function
b1_send_message:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [r0]
	ldr	r0, [r1]
	ldr	r5, [r10, #4]
	mov	r4, r1
	ldr	r9, [r5], #4
	bl	CAPIMSG_LEN
	mov	r6, r0
	ldr	r0, [r4]
	bl	CAPIMSG_COMMAND
	mov	r7, r0
	ldr	r0, [r4]
	bl	CAPIMSG_SUBCOMMAND
	mov	r8, r0
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	mov	r1, r8
	mov	r0, r7
	bl	CAPICMD
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	ldr	r3, .L9+4
	mov	r0, r9
	ldr	r1, [r3]
	bl	b1_put_byte
	mov	r2, r6
	mov	r0, r9
	ldr	r1, [r4]
	bl	b1_put_slice
	ldr	r8, .L9+8
.L5:
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	dev_kfree_skb_any
	ldr	r7, [r8]
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r0, [r4]
	bl	CAPIMSG_APPID
	mov	r7, r0
	ldr	r0, [r4]
	bl	CAPIMSG_NCCI
	mov	r8, r0
	ldr	r0, [r4]
	bl	CAPIMSG_MSGID
	mov	r2, r8
	mov	r3, r0
	mov	r1, r7
	mov	r0, r10
	bl	capilib_data_b3_req
	ldr	r8, .L9+8
	mov	r7, r0
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L3
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r0, [r4]
	bl	CAPIMSG_DATALEN
	mov	r7, r0
	ldr	r3, .L9+12
	mov	r0, r9
	ldr	r1, [r3]
	bl	b1_put_byte
	mov	r2, r6
	ldr	r1, [r4]
	mov	r0, r9
	bl	b1_put_slice
	ldr	r1, [r4]
	mov	r2, r7
	mov	r0, r9
	add	r1, r6, r1
	bl	b1_put_slice
	b	.L5
.L10:
	.align	2
.L9:
	.word	CAPI_DATA_B3_REQ
	.word	SEND_MESSAGE
	.word	CAPI_NOERROR
	.word	SEND_DATA_B3_REQ
	.size	b1_send_message, .-b1_send_message
	.comm	SEND_MESSAGE,4,4
	.comm	SEND_DATA_B3_REQ,4,4
	.comm	CAPI_NOERROR,4,4
	.comm	CAPI_DATA_B3_REQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
