	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aggr_slice_amsdu
_aggr_slice_amsdu:                      ## @aggr_slice_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r15d
	cmpl	$9, %r15d
	jl	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	addl	$-4, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r13
	addq	$16, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_be16_to_cpu
	movl	%eax, %ebx
	movq	_MIN_MSDU_SUBFRAME_PAYLOAD_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_MSDU_SUBFRAME_PAYLOAD_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_aggr_get_free_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	addl	$4, %ebx
	movq	8(%rax), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r14, %rdi
	callq	_ath6kl_wmi_dot3_2_dix
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_skb_queue_tail
	cmpl	%ebx, %r15d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_ALIGN
	cltq
	leaq	(%r13,%rax,4), %r13
	subl	%eax, %r15d
	cmpl	$4, %r15d
	jg	LBB0_2
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ath6kl_err
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ath6kl_err
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ath6kl_err
	movq	%r14, %rdi
	callq	_dev_kfree_skb
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_MSDU_SUBFRAME_PAYLOAD_LEN,4,2 ## @MIN_MSDU_SUBFRAME_PAYLOAD_LEN
	.comm	_MAX_MSDU_SUBFRAME_PAYLOAD_LEN,4,2 ## @MAX_MSDU_SUBFRAME_PAYLOAD_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"802.3 AMSDU frame bound check failed. len %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"no buffer available\n"

L_.str.2:                               ## @.str.2
	.asciz	"dot3_2_dix error\n"

	.no_dead_strip	_aggr_slice_amsdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aggr_slice_amsdu
_aggr_slice_amsdu:                      ; @aggr_slice_amsdu
	.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
	mov	x19, x2
	ldr	w8, [x2]
	cmp	w8, #9
	b.lt	LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	sub	w25, w8, #4
	ldr	x8, [x19, #8]
	add	x22, x8, #16
Lloh0:
	adrp	x26, _MIN_MSDU_SUBFRAME_PAYLOAD_LEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MIN_MSDU_SUBFRAME_PAYLOAD_LEN@GOTPAGEOFF]
Lloh2:
	adrp	x27, _MAX_MSDU_SUBFRAME_PAYLOAD_LEN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MAX_MSDU_SUBFRAME_PAYLOAD_LEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_be16_to_cpu
	mov	x24, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.gt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_aggr_get_free_skb
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	add	w24, w24, #4
	ldr	x0, [x0, #8]
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	mov	x0, x23
	mov	x1, x24
	bl	_skb_put
	mov	x0, x23
	bl	_ath6kl_wmi_dot3_2_dix
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_skb_queue_tail
	cmp	w25, w24
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	w1, #4
	bl	_ALIGN
	add	x22, x22, w0, sxtw #2
	sub	w25, w25, w0
	cmp	w25, #4
	b.gt	LBB0_2
	b	LBB0_10
LBB0_7:
	str	x24, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ath6kl_err
	mov	x0, x23
	bl	_dev_kfree_skb
LBB0_10:
	mov	x0, x19
	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
	b	_dev_kfree_skb
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_MSDU_SUBFRAME_PAYLOAD_LEN,4,2 ; @MIN_MSDU_SUBFRAME_PAYLOAD_LEN
	.comm	_MAX_MSDU_SUBFRAME_PAYLOAD_LEN,4,2 ; @MAX_MSDU_SUBFRAME_PAYLOAD_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"802.3 AMSDU frame bound check failed. len %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"no buffer available\n"

l_.str.2:                               ; @.str.2
	.asciz	"dot3_2_dix error\n"

	.no_dead_strip	_aggr_slice_amsdu
.subsections_via_symbols
