	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_bmi_fast_download       ## -- Begin function ath6kl_bmi_fast_download
	.p2align	4, 0x90
_ath6kl_bmi_fast_download:              ## @ath6kl_bmi_fast_download
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	callq	_ath6kl_bmi_lz_stream_start
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %edx
	andl	$-4, %edx
	andl	$3, %ebx
	je	LBB0_2
## %bb.3:
	movslq	%edx, %r12
	leaq	(%r14,%r12,4), %rsi
	leaq	-36(%rbp), %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_ath6kl_bmi_lz_data
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
LBB0_5:
	callq	_ath6kl_bmi_lz_data
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ath6kl_bmi_lz_stream_start
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_bmi_fast_download       ; -- Begin function ath6kl_bmi_fast_download
	.p2align	2
_ath6kl_bmi_fast_download:              ; @ath6kl_bmi_fast_download
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x3
	mov	x20, x2
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_ath6kl_bmi_lz_stream_start
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	and	w21, w22, #0xfffffffc
	and	w2, w22, #0x3
	cbz	w2, LBB0_5
; %bb.3:
	add	x1, x20, w21, sxtw #2
	add	x0, sp, #12
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ath6kl_bmi_lz_data
	cbnz	w0, LBB0_1
; %bb.4:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_ath6kl_bmi_lz_data
	cbnz	w0, LBB0_1
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ath6kl_bmi_lz_data
	cbnz	w0, LBB0_1
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_ath6kl_bmi_lz_stream_start
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
