	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_usb_rx_complete
_ath10k_usb_rx_complete:                ## @ath10k_usb_rx_complete
	.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, %r14
	movq	%rdi, %r15
	movslq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_eid_from_htc_hdr
	movq	(%r15), %rcx
	movl	%eax, %r13d
	movq	%r13, %r12
	shlq	$4, %r12
	cmpq	$0, (%rcx,%r12)
	je	LBB0_1
## %bb.3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movslq	(%rbx), %rdx
	cmpl	%edx, %eax
	jge	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb                  ## TAILCALL
LBB0_8:
	movq	_ATH10K_HTC_FLAG_TRAILER_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_12
## %bb.9:
	movslq	(%r14), %rcx
	cltq
	subq	%rdx, %rax
	leaq	(%rax,%rcx), %rsi
	addq	$12, %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ath10k_htc_process_trailer
	testl	%eax, %eax
	jne	LBB0_2
## %bb.10:
	movq	%rbx, %rdi
	callq	_is_trailer_only_msg
	testq	%rax, %rax
	jne	LBB0_2
## %bb.11:
	movl	4(%r14), %esi
	subl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_skb_trim
LBB0_12:
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_skb_pull
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r12), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ep %d is not connected\n"

L_.str.1:                               ## @.str.1
	.asciz	"zero length frame received, firmware crashed?\n"

L_.str.2:                               ## @.str.2
	.asciz	"malformed frame received, firmware crashed?\n"

	.comm	_ATH10K_HTC_FLAG_TRAILER_PRESENT,4,2 ## @ATH10K_HTC_FLAG_TRAILER_PRESENT
	.no_dead_strip	_ath10k_usb_rx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_usb_rx_complete
_ath10k_usb_rx_complete:                ; @ath10k_usb_rx_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldrsw	x22, [x1]
	mov	x0, x22
	bl	_eid_from_htc_hdr
	ldr	x23, [x20]
	mov	w21, w0
	lsl	x8, x21, #4
	ldr	x8, [x23, x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x22, #8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.2:
	ldrsw	x2, [x22]
	cmp	w0, w2
	b.ge	LBB0_8
; %bb.3:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_ath10k_warn
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_kfree_skb
LBB0_8:
	ldr	w8, [x22, #4]
Lloh6:
	adrp	x9, _ATH10K_HTC_FLAG_TRAILER_PRESENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH10K_HTC_FLAG_TRAILER_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldrsw	x8, [x19]
	sxtw	x9, w0
	sub	x9, x9, x2
	add	x8, x9, x8
	add	x1, x8, #12
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x21
	mov	x4, #0
	mov	x5, #0
	bl	_ath10k_htc_process_trailer
	cbnz	w0, LBB0_7
; %bb.10:
	mov	x0, x22
	bl	_is_trailer_only_msg
	cbnz	x0, LBB0_7
; %bb.11:
	ldr	w8, [x19, #4]
	ldr	w9, [x22]
	sub	w1, w8, w9
	mov	x0, x19
	bl	_skb_trim
LBB0_12:
	mov	x0, x19
	mov	w1, #12
	bl	_skb_pull
	add	x8, x23, x21, lsl #4
	ldr	x2, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ep %d is not connected\n"

l_.str.1:                               ; @.str.1
	.asciz	"zero length frame received, firmware crashed?\n"

l_.str.2:                               ; @.str.2
	.asciz	"malformed frame received, firmware crashed?\n"

	.comm	_ATH10K_HTC_FLAG_TRAILER_PRESENT,4,2 ; @ATH10K_HTC_FLAG_TRAILER_PRESENT
	.no_dead_strip	_ath10k_usb_rx_complete
.subsections_via_symbols
