	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_bmi_lz_stream_start     ## -- Begin function ath6kl_bmi_lz_stream_start
	.p2align	4, 0x90
_ath6kl_bmi_lz_stream_start:            ## @ath6kl_bmi_lz_stream_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, -40(%rbp)
	movq	_BMI_LZ_STREAM_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, -32(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ath6kl_err
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %r14
	cmpl	$15, (%rdi)
	jg	LBB0_5
## %bb.3:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_ATH6KL_DBG_BMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_ath6kl_dbg
	movq	8(%r14), %rdi
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	addq	$32, %rdi
	leaq	-40(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%r14), %rsi
	movl	$16, %edx
	movq	%r14, %rdi
	callq	_ath6kl_hif_bmi_write
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_ath6kl_err
	movl	%r14d, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BMI_LZ_STREAM_START,8,3        ## @BMI_LZ_STREAM_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi done sent already, cmd %d disallowed\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_BMI,4,2             ## @ATH6KL_DBG_BMI
L_.str.1:                               ## @.str.1
	.asciz	"bmi LZ stream start: addr: 0x%x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to start LZ stream to the device: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_bmi_lz_stream_start     ; -- Begin function ath6kl_bmi_lz_stream_start
	.p2align	2
_ath6kl_bmi_lz_stream_start:            ; @ath6kl_bmi_lz_stream_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	str	x1, [sp, #8]
Lloh0:
	adrp	x8, _BMI_LZ_STREAM_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMI_LZ_STREAM_START@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	str	x1, [sp]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ath6kl_err
Lloh5:
	adrp	x8, _EACCES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #15
	b.gt	LBB0_6
; %bb.3:
	mov	w0, #1
	bl	_WARN_ON
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh9:
	adrp	x8, _ATH6KL_DBG_BMI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH6KL_DBG_BMI@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_ath6kl_dbg
	ldr	x0, [x19, #8]
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, #32
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #16
	bl	_ath6kl_hif_bmi_write
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.7:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_ath6kl_err
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BMI_LZ_STREAM_START,8,3        ; @BMI_LZ_STREAM_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi done sent already, cmd %d disallowed\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_BMI,4,2             ; @ATH6KL_DBG_BMI
l_.str.1:                               ; @.str.1
	.asciz	"bmi LZ stream start: addr: 0x%x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to start LZ stream to the device: %d\n"

.subsections_via_symbols
