	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_rx_completion_handler ## -- Begin function ath10k_htc_rx_completion_handler
	.p2align	4, 0x90
_ath10k_htc_rx_completion_handler:      ## @ath10k_htc_rx_completion_handler
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_skb_pull
	movq	(%rbx), %r12
	movq	_ATH10K_HTC_EP_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jae	LBB0_1
## %bb.2:
	movq	(%r14), %r13
	movl	24(%rbx), %edi
	callq	___le16_to_cpu
	movl	%eax, %r8d
	cltq
	leaq	32(%rax), %rdx
	movq	_ATH10K_HTC_MAX_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jbe	LBB0_6
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_warn
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_ath10k_warn
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movslq	(%r15), %rcx
	cmpl	%r8d, %ecx
	jge	LBB0_8
## %bb.7:
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movl	(%r12), %esi
LBB0_4:
	leaq	L_.str.4(%rip), %rdx
LBB0_5:
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	movl	$32, %r9d
	callq	_ath10k_dbg_dump
LBB0_17:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
LBB0_8:
	movq	_ATH10K_HTC_FLAG_TRAILER_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rbx)
	je	LBB0_9
## %bb.10:
	movq	16(%rbx), %rdx
	cmpq	$4, %rdx
	jb	LBB0_12
## %bb.11:
	cmpq	%rax, %rdx
	ja	LBB0_12
## %bb.13:
	movl	%r8d, %r13d
	leaq	(%rbx,%rax,8), %rsi
	leaq	(,%rdx,8), %rax
	subq	%rax, %rsi
	addq	$256, %rsi                      ## imm = 0x100
	movq	(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rdx, %rbx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ath10k_htc_process_trailer
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movslq	(%r15), %rsi
	subq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_skb_trim
	movq	%rbx, %rax
	movl	%r13d, %r8d
	jmp	LBB0_15
LBB0_9:
	xorl	%eax, %eax
LBB0_15:
	cmpl	%eax, %r8d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_17
## %bb.16:
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rbx,%r12,8)
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_warn
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HTC_EP_COUNT,8,3        ## @ATH10K_HTC_EP_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTC Rx: invalid eid %d\n"

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

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

	.comm	_ATH10K_HTC_MAX_LEN,4,2         ## @ATH10K_HTC_MAX_LEN
L_.str.3:                               ## @.str.3
	.asciz	"HTC rx frame too long, len: %zu\n"

L_.str.4:                               ## @.str.4
	.asciz	"htc bad rx pkt len"

L_.str.5:                               ## @.str.5
	.asciz	"HTC Rx: insufficient length, got %d, expected %d\n"

	.comm	_ATH10K_HTC_FLAG_TRAILER_PRESENT,4,2 ## @ATH10K_HTC_FLAG_TRAILER_PRESENT
L_.str.6:                               ## @.str.6
	.asciz	"Invalid trailer length: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"htc rx completion ep %d skb %pK\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_rx_completion_handler ; -- Begin function ath10k_htc_rx_completion_handler
	.p2align	2
_ath10k_htc_rx_completion_handler:      ; @ath10k_htc_rx_completion_handler
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
	mov	x0, x1
	mov	w1, #32
	bl	_skb_pull
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _ATH10K_HTC_EP_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTC_EP_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_3
; %bb.1:
	ldr	x24, [x20]
	ldr	w0, [x21, #24]
	bl	___le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	add	x2, x25, #32
Lloh3:
	adrp	x8, _ATH10K_HTC_MAX_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_HTC_MAX_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	x2, x8
	b.ls	LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ath10k_warn
Lloh8:
	adrp	x8, _ATH10K_DBG_HTC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_DBG_HTC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ath10k_warn
Lloh13:
	adrp	x8, _ATH10K_DBG_HTC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATH10K_DBG_HTC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldrsw	x3, [x19]
	cmp	w3, w25
	b.ge	LBB0_9
; %bb.5:
Lloh18:
	adrp	x22, _ATH10K_DBG_HTC@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ATH10K_DBG_HTC@GOTPAGEOFF]
	ldr	w1, [x22]
	str	x25, [sp]
Lloh20:
	adrp	x2, l_.str.5@PAGE
Lloh21:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	ldr	w1, [x22]
LBB0_6:
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_7:
Lloh24:
	adrp	x3, l_.str.2@PAGE
Lloh25:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x4, x21
	mov	w5, #32
	bl	_ath10k_dbg_dump
LBB0_8:
	mov	x0, x19
	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
	b	_kfree_skb
LBB0_9:
	ldr	w8, [x21, #8]
Lloh26:
	adrp	x9, _ATH10K_HTC_FLAG_TRAILER_PRESENT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATH10K_HTC_FLAG_TRAILER_PRESENT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	x23, [x21, #16]
	cmp	x23, #4
	ccmp	x23, x25, #2, hs
	b.ls	LBB0_13
; %bb.11:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_ath10k_warn
	b	LBB0_8
LBB0_12:
	mov	w23, #0
	cmp	w25, w23
	b.le	LBB0_8
	b	LBB0_15
LBB0_13:
	add	x8, x21, x25, lsl #3
	sub	x8, x8, x23, lsl #3
	add	x1, x8, #256
	ldr	x3, [x21]
	mov	x0, x20
	mov	x2, x23
	mov	x4, #0
	mov	x5, #0
	bl	_ath10k_htc_process_trailer
	cbnz	w0, LBB0_8
; %bb.14:
	ldrsw	x8, [x19]
	sub	x1, x8, x23
	mov	x0, x19
	bl	_skb_trim
	cmp	w25, w23
	b.le	LBB0_8
LBB0_15:
Lloh31:
	adrp	x8, _ATH10K_DBG_HTC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ATH10K_DBG_HTC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh34:
	adrp	x2, l_.str.7@PAGE
Lloh35:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_ath10k_dbg
	ldr	x8, [x24, x22, lsl #3]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x19, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HTC_EP_COUNT,8,3        ; @ATH10K_HTC_EP_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTC Rx: invalid eid %d\n"

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

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

	.comm	_ATH10K_HTC_MAX_LEN,4,2         ; @ATH10K_HTC_MAX_LEN
l_.str.3:                               ; @.str.3
	.asciz	"HTC rx frame too long, len: %zu\n"

l_.str.4:                               ; @.str.4
	.asciz	"htc bad rx pkt len"

l_.str.5:                               ; @.str.5
	.asciz	"HTC Rx: insufficient length, got %d, expected %d\n"

	.comm	_ATH10K_HTC_FLAG_TRAILER_PRESENT,4,2 ; @ATH10K_HTC_FLAG_TRAILER_PRESENT
l_.str.6:                               ; @.str.6
	.asciz	"Invalid trailer length: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"htc rx completion ep %d skb %pK\n"

.subsections_via_symbols
