	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_process_trailer     ## -- Begin function ath10k_htc_process_trailer
	.p2align	4, 0x90
_ath10k_htc_process_trailer:            ## @ath10k_htc_process_trailer
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_23
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13), %rax
	leaq	32(%r13,%rax,4), %r13
	addq	$8, %rax
	subl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_23
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$8, %ebx
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13), %rcx
	cmpl	%ebx, %ecx
	jg	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edx
	cmpl	$128, %edx
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %edx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %edx
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %ecx
	ja	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %ecx
	ja	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_ath10k_warn
	xorl	%r12d, %r12d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_22
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rsi
	movq	%r15, %rdi
	movq	%rcx, %rdx
	movl	%r14d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_ath10k_htc_process_lookahead_bundle
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %esi
	movq	%r15, %rdi
	movq	%rcx, %rdx
	movl	%r14d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_ath10k_htc_process_lookahead
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	testl	%r12d, %r12d
	je	LBB0_22
	jmp	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r13), %esi
	movq	%r15, %rdi
	movq	%rcx, %rdx
	movl	%r14d, %ecx
	callq	_ath10k_htc_process_credit_report
	jmp	LBB0_22
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.6:
	negl	%r12d
LBB0_7:
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_ath10k_dbg_dump
	jmp	LBB0_24
LBB0_23:
	xorl	%r12d, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid record length: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Credit report too long\n"

L_.str.2:                               ## @.str.2
	.asciz	"Lookahead report too long\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unhandled record: id:%d length:%d\n"

	.comm	_ATH10K_DBG_HTC,4,2             ## @ATH10K_DBG_HTC
L_.str.4:                               ## @.str.4
	.asciz	"htc rx bad trailer"

L_.str.5:                               ## @.str.5
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_process_trailer     ; -- Begin function ath10k_htc_process_trailer
	.p2align	2
_ath10k_htc_process_trailer:            ; @ath10k_htc_process_trailer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x27, x2
	mov	x28, x1
	mov	x25, x0
	ldr	x21, [x0]
	mov	x20, x1
	mov	x19, x2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	x8, x2, [sp]
	mov	x0, x21
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ath10k_warn
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x20]
	add	x8, x8, #8
	add	x20, x20, x8, lsl #2
	sub	w19, w19, w8
	cmp	w19, #0
	b.le	LBB0_22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, #8
	b.lo	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x2, [x20]
	cmp	w2, w19
	b.gt	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #130
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #3
	b.hi	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #3
	b.hi	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_ath10k_warn
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w26, w8
	cbz	w26, LBB0_3
	b	LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #8]
	mov	x0, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_ath10k_htc_process_lookahead_bundle
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20, #16]
	mov	x0, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_ath10k_htc_process_lookahead
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	cbz	w26, LBB0_3
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20, #20]
	mov	x0, x25
	mov	x3, x24
	bl	_ath10k_htc_process_credit_report
	b	LBB0_3
LBB0_18:
	str	x2, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath10k_warn
LBB0_19:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.20:
	neg	w26, w8
LBB0_21:
Lloh14:
	adrp	x8, _ATH10K_DBG_HTC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATH10K_DBG_HTC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
Lloh19:
	adrp	x3, l_.str.5@PAGE
Lloh20:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x4, x28
	mov	x5, x27
	bl	_ath10k_dbg_dump
	b	LBB0_23
LBB0_22:
	mov	w26, #0
LBB0_23:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid record length: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Credit report too long\n"

l_.str.2:                               ; @.str.2
	.asciz	"Lookahead report too long\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unhandled record: id:%d length:%d\n"

	.comm	_ATH10K_DBG_HTC,4,2             ; @ATH10K_DBG_HTC
l_.str.4:                               ; @.str.4
	.asciz	"htc rx bad trailer"

l_.str.5:                               ; @.str.5
	.space	1

.subsections_via_symbols
