	.file	"extr_bmi.c_ath6kl_bmi_lz_stream_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bmi done sent already, cmd %d disallowed\n"
	.align 8
.LC1:
	.string	"bmi LZ stream start: addr: 0x%x)\n"
	.align 8
.LC2:
	.string	"Unable to start LZ stream to the device: %d\n"
	.text
	.p2align 4
	.globl	ath6kl_bmi_lz_stream_start
	.type	ath6kl_bmi_lz_stream_start, @function
ath6kl_bmi_lz_stream_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	QWORD PTR 8[rsp], rsi
	mov	rsi, QWORD PTR BMI_LZ_STREAM_START[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 16[rdi], 0
	mov	QWORD PTR 16[rsp], rsi
	jne	.L11
	cmp	DWORD PTR [rdi], 15
	mov	rbp, rdi
	jle	.L12
	mov	rdi, QWORD PTR 8[rdi]
	mov	edx, 16
	xor	esi, esi
	call	memset@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR ATH6KL_DBG_BMI[rip]
	lea	rsi, .LC1[rip]
	call	ath6kl_dbg@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, 16[rsp]
	mov	edx, 8
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, 8[rsp]
	mov	edx, 8
	lea	rdi, 32[rax]
	call	memcpy@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, 16
	mov	rdi, rbp
	call	ath6kl_hif_bmi_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, 1
	call	WARN_ON@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC0[rip]
	call	ath6kl_err@PLT
	mov	r12d, DWORD PTR EACCES[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, eax
	lea	rdi, .LC2[rip]
	call	ath6kl_err@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath6kl_bmi_lz_stream_start, .-ath6kl_bmi_lz_stream_start
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.comm	BMI_LZ_STREAM_START,8,8
	.comm	ATH6KL_DBG_BMI,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_bmi.c_ath6kl_bmi_lz_stream_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bmi done sent already, cmd %d disallowed\012\000"
	.align	2
.LC1:
	.ascii	"bmi LZ stream start: addr: 0x%x)\012\000"
	.align	2
.LC2:
	.ascii	"Unable to start LZ stream to the device: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ath6kl_bmi_lz_stream_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_bmi_lz_stream_start, %function
ath6kl_bmi_lz_stream_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r2, .L15
	sub	sp, sp, #16
	ldr	r3, [r0, #8]
	str	r1, [sp, #4]
	ldr	r2, [r2]
	ldr	r1, .L15+4
	cmp	r3, #0
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	str	r2, [sp, #8]
	bne	.L11
	ldr	r2, [r0]
	mov	r4, r0
	cmp	r2, #7
	ble	.L12
	mov	r1, r3
	mov	r2, #8
	ldr	r0, [r0, #4]
	bl	memset
	ldr	r3, .L15+8
	ldr	r2, [sp, #4]
	ldr	r0, [r3]
	ldr	r1, .L15+12
	bl	ath6kl_dbg
	mov	r2, #4
	ldr	r0, [r4, #4]
	add	r1, sp, #8
	bl	memcpy
	mov	r2, #4
	ldr	r0, [r4, #4]
	add	r1, sp, r2
	add	r0, r0, #16
	bl	memcpy
	mov	r0, r4
	ldr	r1, [r4, #4]
	mov	r2, #8
	bl	ath6kl_hif_bmi_write
	subs	r4, r0, #0
	bne	.L13
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L12:
	mov	r0, #1
	bl	WARN_ON
	ldr	r3, .L15+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L11:
	mov	r1, r2
	ldr	r0, .L15+20
	bl	ath6kl_err
	ldr	r3, .L15+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L13:
	mov	r1, r4
	ldr	r0, .L15+28
	bl	ath6kl_err
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	BMI_LZ_STREAM_START
	.word	.LC3
	.word	ATH6KL_DBG_BMI
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	EACCES
	.word	.LC2
	.size	ath6kl_bmi_lz_stream_start, .-ath6kl_bmi_lz_stream_start
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.comm	BMI_LZ_STREAM_START,4,4
	.comm	ATH6KL_DBG_BMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
