	.file	"extr_qca_spi.c_qcaspi_tx_cmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qcaspi_tx_cmd, @function
qcaspi_tx_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r14, 16[rsp]
	lea	r12, 12[rsp]
	mov	rdi, r14
	call	memset@PLT
	mov	rdi, r12
	call	spi_message_init@PLT
	mov	edi, r13d
	call	cpu_to_be16@PLT
	mov	rsi, r12
	mov	rdi, r14
	mov	DWORD PTR 16[rsp], 4
	mov	DWORD PTR 8[rsp], eax
	lea	rax, 8[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	spi_message_add_tail@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r12
	call	spi_sync@PLT
	test	eax, eax
	je	.L11
	mov	r12d, eax
.L2:
	mov	rdi, rbp
	call	qcaspi_spi_error@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r12d, DWORD PTR 12[rsp]
	test	r12d, r12d
	je	.L1
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qcaspi_tx_cmd, .-qcaspi_tx_cmd
	.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_qca_spi.c_qcaspi_tx_cmd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qcaspi_tx_cmd, %function
qcaspi_tx_cmd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r3, #0
	mov	r4, r1
	sub	sp, sp, #28
	ldr	r2, .L12
	mov	r5, r0
	add	r0, sp, #8
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	spi_message_init
	mov	r0, r4
	bl	cpu_to_be16
	mov	r2, #4
	mov	r3, r0
	add	r1, sp, #8
	str	r3, [sp, #4]
	add	r0, sp, #12
	add	r3, sp, r2
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	bl	spi_message_add_tail
	ldr	r0, [r5]
	add	r1, sp, #8
	bl	spi_sync
	subs	r4, r0, #0
	beq	.L10
.L2:
	mov	r0, r5
	bl	qcaspi_spi_error
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	ldr	r4, [sp, #8]
	cmp	r4, #0
	beq	.L1
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	qcaspi_tx_cmd, .-qcaspi_tx_cmd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
