	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htc_process_trailer
_htc_process_trailer:                   ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_9
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r15), %rax
	leaq	(,%rax,4), %r15
	addq	%r13, %r15
	subl	%eax, %ebx
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$7, %ebx
	jbe	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$-8, %ebx
	movl	(%r15), %eax
	cmpl	%ebx, %eax
	jg	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	32(%r15), %r13
	movl	4(%r15), %edx
	cmpl	$128, %edx
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %eax
	jbe	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	sarl	$2, %eax
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_htc_process_credit_report
	jmp	LBB0_3
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_10:
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_13:
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid length: %d (id:%d) buffer has: %d bytes left\n"

L_.str.1:                               ## @.str.1
	.asciz	"unhandled record: id:%d length:%d\n"

	.no_dead_strip	_htc_process_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htc_process_trailer
_htc_process_trailer:                   ; @htc_process_trailer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _ATH6KL_DBG_HTC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_ath6kl_dbg
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x20]
	add	x20, x23, x8, lsl #2
	sub	w2, w25, w8
	cmp	w2, #0
	b.le	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w2, #7
	b.ls	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w25, w2, #8
	mov	x23, x20
	ldr	w3, [x23], #32
	cmp	w3, w25
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20, #4]
	cmp	w2, #128
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w3, #3
	b.ls	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w2, w3, #2
	mov	x0, x21
	mov	x1, x23
	mov	x3, x19
	bl	_htc_process_credit_report
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	ldr	w0, [x24]
	ldr	w8, [x20, #4]
	str	x25, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	mov	x3, x8
	bl	_ath6kl_dbg
	b	LBB0_12
LBB0_11:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_12:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid length: %d (id:%d) buffer has: %d bytes left\n"

l_.str.1:                               ; @.str.1
	.asciz	"unhandled record: id:%d length:%d\n"

	.no_dead_strip	_htc_process_trailer
.subsections_via_symbols
