	.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	%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, %rbx
	movq	%rdi, %r15
	movl	16(%rsi), %edi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	cmpl	$27, (%rbx)
	ja	LBB0_3
## %bb.2:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_5
LBB0_3:
	movq	8(%rbx), %r13
	movq	(%r13), %rbx
	movq	_USB_CDC_NCM_NTH16_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.6:
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	movl	(%r15), %r9d
	cmpl	%r9d, %eax
	jle	LBB0_8
## %bb.7:
	movq	_rx_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_5
LBB0_4:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %r15d
	movq	(%r13), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r15), %ebx
	incl	%ebx
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	cmpl	%eax, %ebx
	je	LBB0_16
## %bb.9:
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.10:
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	4(%r15), %ebx
LBB0_12:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jne	LBB0_15
## %bb.13:
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	4(%r15), %ebx
LBB0_15:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
LBB0_16:
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 4(%r15)
	movl	8(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_le16_to_cpu                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame too short\n"

	.comm	_USB_CDC_NCM_NTH16_SIGN,4,2     ## @USB_CDC_NCM_NTH16_SIGN
L_.str.1:                               ## @.str.1
	.asciz	"invalid NTH16 signature <%#010x>\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, #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	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #16]
	bl	_netdev_priv
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbz	x20, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #27
	b.hi	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _rx_err@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_7
LBB0_3:
	ldr	x23, [x21, #8]
	ldr	x21, [x23]
Lloh8:
	adrp	x8, _USB_CDC_NCM_NTH16_SIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_CDC_NCM_NTH16_SIGN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	cmp	x21, x0
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x23, #16]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_9
; %bb.5:
Lloh11:
	adrp	x9, _rx_err@GOTPAGE
Lloh12:
	ldr	x9, [x9, _rx_err@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	ldr	w2, [x19]
	stp	x0, x8, [sp]
Lloh14:
	adrp	x3, l_.str.2@PAGE
Lloh15:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _rx_err@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	ldr	w21, [x19]
	ldr	x0, [x23]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
LBB0_7:
	bl	_netif_dbg
LBB0_8:
	neg	w0, w22
	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
	ret
LBB0_9:
	ldr	w8, [x20, #4]
	add	w21, w8, #1
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	cmp	w21, w0
	b.eq	LBB0_17
; %bb.10:
	ldr	w24, [x20, #4]
	cbnz	w24, LBB0_13
; %bb.11:
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	cbz	w0, LBB0_17
; %bb.12:
	ldr	w24, [x20, #4]
LBB0_13:
	mov	w8, #65535
	cmp	w24, w8
	b.ne	LBB0_16
; %bb.14:
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	cbz	w0, LBB0_17
; %bb.15:
	ldr	w24, [x20, #4]
LBB0_16:
Lloh21:
	adrp	x8, _rx_err@GOTPAGE
Lloh22:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	ldr	w22, [x19]
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh24:
	adrp	x3, l_.str.3@PAGE
Lloh25:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_netif_dbg
LBB0_17:
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	str	w0, [x20, #4]
	ldr	w0, [x23, #8]
	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	_le16_to_cpu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame too short\n"

	.comm	_USB_CDC_NCM_NTH16_SIGN,4,2     ; @USB_CDC_NCM_NTH16_SIGN
l_.str.1:                               ; @.str.1
	.asciz	"invalid NTH16 signature <%#010x>\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
