	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_rx_verify_ndp16        ## -- Begin function cdc_ncm_rx_verify_ndp16
	.p2align	4, 0x90
_cdc_ncm_rx_verify_ndp16:               ## @cdc_ncm_rx_verify_ndp16
	.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	_EINVAL@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
	movslq	%esi, %r12
	leaq	8(%r12), %rax
	movslq	(%rdi), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movl	(%r13,%r12), %edi
	callq	_le16_to_cpu
	movq	_USB_CDC_NCM_NDP16_LENGTH_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.3:
	movl	4(%r12,%r13), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	jmp	LBB0_6
LBB0_4:
	movl	(%r12,%r13), %edi
	callq	_le16_to_cpu
	cltq
	movabsq	$17179869176, %rbx              ## imm = 0x3FFFFFFF8
	addq	%rax, %rbx
	shrq	$2, %rbx
	movslq	%ebx, %rax
	decl	%ebx
	leaq	4(,%rax,4), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
LBB0_6:
	movl	%ebx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid NDP offset  <%u>\n"

	.comm	_USB_CDC_NCM_NDP16_LENGTH_MIN,4,2 ## @USB_CDC_NCM_NDP16_LENGTH_MIN
L_.str.1:                               ## @.str.1
	.asciz	"invalid DPT16 length <%u>\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid nframes = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_rx_verify_ndp16        ; -- Begin function cdc_ncm_rx_verify_ndp16
	.p2align	2
_cdc_ncm_rx_verify_ndp16:               ; @cdc_ncm_rx_verify_ndp16
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x21, _EINVAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x21]
	neg	w19, w8
	sxtw	x8, w1
	add	x9, x8, #8
	ldrsw	x10, [x0]
	cmp	x9, x10
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pr_debug
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	ldr	x9, [x0, #8]
	add	x22, x9, x8
	ldr	w0, [x22]
	bl	_le16_to_cpu
Lloh4:
	adrp	x8, _USB_CDC_NCM_NDP16_LENGTH_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_CDC_NCM_NDP16_LENGTH_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	b	LBB0_6
LBB0_4:
	ldr	w0, [x22]
	bl	_le16_to_cpu
	mov	x8, #17179869176
	add	x8, x8, w0, sxtw
	lsr	x8, x8, #2
	sub	w19, w8, #1
	sbfiz	x8, x19, #2, #32
	add	x8, x8, #8
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.ls	LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	ldr	w8, [x21]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid NDP offset  <%u>\n"

	.comm	_USB_CDC_NCM_NDP16_LENGTH_MIN,4,2 ; @USB_CDC_NCM_NDP16_LENGTH_MIN
l_.str.1:                               ; @.str.1
	.asciz	"invalid DPT16 length <%u>\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid nframes = %d\n"

.subsections_via_symbols
