	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htc_process_lookahead_bundle
_ath10k_htc_process_lookahead_bundle:   ## @ath10k_htc_process_lookahead_bundle
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	sarl	$2, %r12d
	cmpl	$4, %edx
	jb	LBB0_2
## %bb.1:
	movq	_HTC_HOST_MAX_MSG_PER_RX_BUNDLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_2
## %bb.3:
	movq	%r8, %rbx
	xorl	%eax, %eax
	testq	%r8, %r8
	je	LBB0_9
## %bb.4:
	testq	%r9, %r9
	je	LBB0_9
## %bb.5:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	cmpl	$4, %edx
	jl	LBB0_8
## %bb.6:
	movq	%rsi, %r13
	cmpl	$2, %r12d
	movl	$1, %r14d
	cmovgel	%r12d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r15,4), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	incq	%r15
	addq	$16, %rbx
	cmpq	%r15, %r14
	jne	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_ath10k_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTC_HOST_MAX_MSG_PER_RX_BUNDLE,4,2 ## @HTC_HOST_MAX_MSG_PER_RX_BUNDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid lookahead bundle count: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath10k_htc_process_lookahead_bundle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htc_process_lookahead_bundle
_ath10k_htc_process_lookahead_bundle:   ; @ath10k_htc_process_lookahead_bundle
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	asr	w19, w2, #2
	cmp	w2, #4
	b.lo	LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _HTC_HOST_MAX_MSG_PER_RX_BUNDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTC_HOST_MAX_MSG_PER_RX_BUNDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.gt	LBB0_8
; %bb.2:
	mov	x21, x4
	mov	w0, #0
	cbz	x4, LBB0_9
; %bb.3:
	mov	x20, x5
	cbz	x5, LBB0_9
; %bb.4:
	cmp	w2, #4
	b.lt	LBB0_7
; %bb.5:
	mov	x22, x1
	cmp	w19, #1
	csinc	w23, w19, wzr, gt
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22], #4
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	x21, x21, #16
	subs	x23, x23, #1
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
	str	w19, [x20]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_ath10k_warn
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HTC_HOST_MAX_MSG_PER_RX_BUNDLE,4,2 ; @HTC_HOST_MAX_MSG_PER_RX_BUNDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid lookahead bundle count: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath10k_htc_process_lookahead_bundle
.subsections_via_symbols
