	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_rx_verify_nth16        ## -- Begin function cdc_ncm_rx_verify_nth16
	.p2align	4, 0x90
_cdc_ncm_rx_verify_nth16:               ## @cdc_ncm_rx_verify_nth16
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpl	$19, (%rsi)
	ja	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_5
LBB0_3:
	movq	%rdi, %r14
	movq	8(%rsi), %r15
	movl	12(%r15), %edi
	callq	_le32_to_cpu
	movq	_USB_CDC_NCM_NTH16_SIGN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	movl	(%r14), %edx
	cmpl	%edx, %eax
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_5
LBB0_4:
	movl	12(%r15), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r14), %ebx
	incl	%ebx
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	cmpl	%eax, %ebx
	je	LBB0_16
## %bb.9:
	movl	4(%r14), %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.10:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	4(%r14), %ebx
LBB0_12:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jne	LBB0_15
## %bb.13:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	4(%r14), %ebx
LBB0_15:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_16:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 4(%r14)
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_le16_to_cpu                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame too short\n"

	.comm	_USB_CDC_NCM_NTH16_SIGN,8,3     ## @USB_CDC_NCM_NTH16_SIGN
L_.str.1:                               ## @.str.1
	.asciz	"invalid NTH16 signature <%u>\n"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported NTB block length %u/%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"sequence number glitch prev=%d curr=%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_nth16        ; -- Begin function cdc_ncm_rx_verify_nth16
	.p2align	2
_cdc_ncm_rx_verify_nth16:               ; @cdc_ncm_rx_verify_nth16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x1]
	cmp	w8, #19
	b.hi	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	mov	x19, x0
	ldr	x20, [x1, #8]
	ldr	w0, [x20, #12]
	bl	_le32_to_cpu
Lloh5:
	adrp	x8, _USB_CDC_NCM_NTH16_SIGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_CDC_NCM_NTH16_SIGN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.le	LBB0_9
; %bb.5:
	stp	x0, x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w0, [x20, #12]
	bl	_le32_to_cpu
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_pr_debug
LBB0_8:
	neg	w0, w21
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	w8, [x19, #4]
	add	w21, w8, #1
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	cmp	w21, w0
	b.eq	LBB0_17
; %bb.10:
	ldr	w21, [x19, #4]
	cbnz	w21, LBB0_13
; %bb.11:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	cbz	w0, LBB0_17
; %bb.12:
	ldr	w21, [x19, #4]
LBB0_13:
	mov	w8, #65535
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.14:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	cbz	w0, LBB0_17
; %bb.15:
	ldr	w21, [x19, #4]
LBB0_16:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
LBB0_17:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	str	w0, [x19, #4]
	ldr	w0, [x20]
	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
	add	sp, sp, #64
	b	_le16_to_cpu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame too short\n"

	.comm	_USB_CDC_NCM_NTH16_SIGN,8,3     ; @USB_CDC_NCM_NTH16_SIGN
l_.str.1:                               ; @.str.1
	.asciz	"invalid NTH16 signature <%u>\n"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported NTB block length %u/%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"sequence number glitch prev=%d curr=%d\n"

.subsections_via_symbols
