	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htt_rx_handle_amsdu
_ath10k_htt_rx_handle_amsdu:            ## @ath10k_htt_rx_handle_amsdu
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	_ATH10K_PKT_RX_ERR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_RX_HTT_HDR_STATUS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-56(%rbp), %rdi
	callq	___skb_queue_head_init
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ath10k_htt_rx_amsdu_pop
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testl	%r12d, %r12d
	js	LBB0_3
## %bb.4:
	addq	$8, %r13
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_ath10k_htt_rx_h_ppdu
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	callq	_ath10k_htt_rx_h_unchain
LBB0_6:
	leaq	-56(%rbp), %rbx
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_ath10k_htt_rx_h_filter
	leaq	-60(%rbp), %r9
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r15, %r8
	callq	_ath10k_htt_rx_h_mpdu
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_ath10k_htt_rx_h_enqueue
	movl	-60(%rbp), %ecx
	movq	-80(%rbp), %r8
	movq	-88(%rbp), %r9
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	pushq	%r12
	pushq	-72(%rbp)
	callq	_ath10k_sta_update_rx_tid_stats
	addq	$16, %rsp
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_ath10k_warn
	leaq	-56(%rbp), %rdi
	callq	___skb_queue_purge
	movl	$1, (%r13)
LBB0_7:
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_PKT_RX_ERR_MAX,4,2      ## @ATH10K_PKT_RX_ERR_MAX
	.comm	_RX_HTT_HDR_STATUS_LEN,4,2      ## @RX_HTT_HDR_STATUS_LEN
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx ring became corrupted: %d\n"

	.no_dead_strip	_ath10k_htt_rx_handle_amsdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htt_rx_handle_amsdu
_ath10k_htt_rx_handle_amsdu:            ; @ath10k_htt_rx_handle_amsdu
	.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
	sub	sp, sp, #48
	mov	x21, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0, #16]
	stp	xzr, xzr, [x29, #-80]
Lloh3:
	adrp	x8, _ATH10K_PKT_RX_ERR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_PKT_RX_ERR_MAX@GOTPAGEOFF]
	stur	xzr, [x29, #-88]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x29, #-92]
Lloh6:
	adrp	x8, _RX_HTT_HDR_STATUS_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_HTT_HDR_STATUS_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x0, x29, #64
	bl	___skb_queue_head_init
	add	x22, x21, #4
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_2:
	sub	x1, x29, #64
	mov	x0, x21
	bl	_ath10k_htt_rx_amsdu_pop
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	tbnz	w23, #31, LBB0_6
; %bb.3:
	add	x22, x21, #8
	sub	x0, x29, #64
	bl	_skb_queue_len
	mov	x21, x0
	sub	x1, x29, #64
	mov	x0, x19
	mov	x2, x22
	mov	w3, #65535
	bl	_ath10k_htt_rx_h_ppdu
	cbz	w23, LBB0_5
; %bb.4:
	sub	x1, x29, #64
	sub	x2, x29, #72
	sub	x3, x29, #80
	mov	x0, x19
	bl	_ath10k_htt_rx_h_unchain
LBB0_5:
	sub	x1, x29, #64
	sub	x3, x29, #88
	mov	x0, x19
	mov	x2, x22
	bl	_ath10k_htt_rx_h_filter
	sub	x1, x29, #64
	sub	x5, x29, #92
	mov	x0, x19
	mov	x2, x22
	mov	w3, #1
	mov	x4, x20
	bl	_ath10k_htt_rx_h_mpdu
	sub	x0, x29, #64
	bl	_skb_queue_len
	mov	x23, x0
	sub	x1, x29, #64
	mov	x0, x19
	mov	x2, x22
	bl	_ath10k_htt_rx_h_enqueue
	ldur	w3, [x29, #-92]
	ldp	x4, x5, [x29, #-80]
	ldur	x6, [x29, #-88]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x7, x23
	bl	_ath10k_sta_update_rx_tid_stats
	mov	w23, #0
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_ath10k_warn
	sub	x0, x29, #64
	bl	___skb_queue_purge
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x23
	sub	sp, x29, #48
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_PKT_RX_ERR_MAX,4,2      ; @ATH10K_PKT_RX_ERR_MAX
	.comm	_RX_HTT_HDR_STATUS_LEN,4,2      ; @RX_HTT_HDR_STATUS_LEN
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx ring became corrupted: %d\n"

	.no_dead_strip	_ath10k_htt_rx_handle_amsdu
.subsections_via_symbols
