	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_valid_NAK                      ## -- Begin function valid_NAK
	.p2align	4, 0x90
_valid_NAK:                             ## @valid_NAK
	.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	_MIN_V4_PKT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rsi), %ecx
	movq	_NONAK@GOTPCREL(%rip), %r12
	subl	%eax, %ecx
	je	LBB0_14
## %bb.1:
	cmpl	$4, %ecx
	jne	LBB0_14
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MODE_SERVER@GOTPCREL(%rip), %rcx
	movq	_INVALIDNAK@GOTPCREL(%rip), %r12
	cmpq	%rdx, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_MODE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_MODE_PASSIVE@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jne	LBB0_14
LBB0_5:
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	movl	4(%rbx,%rax,4), %edi
	callq	_ntohl
	testq	%r14, %r14
	je	LBB0_14
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	cmpl	$0, 24(%r14)
	jne	LBB0_9
## %bb.8:
	movq	_FLAG_SKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_14
LBB0_9:
	addq	$4, %rbx
	leaq	-44(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_NTOHL_FP
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	setg	%r13b
	movq	%r15, %rdi
	callq	_L_ISZERO
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movb	%r13b, %bl
	leaq	(%r14,%rbx,4), %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_L_ISZERO
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_L_ISEQU
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	movq	_INVALIDNAK@GOTPCREL(%rip), %r12
	jmp	LBB0_14
LBB0_12:
	movq	_VALIDNAK@GOTPCREL(%rip), %r12
LBB0_14:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_V4_PKT_LEN,4,2             ## @MIN_V4_PKT_LEN
	.comm	_NONAK,4,2                      ## @NONAK
	.comm	_MODE_SERVER,8,3                ## @MODE_SERVER
	.comm	_MODE_ACTIVE,8,3                ## @MODE_ACTIVE
	.comm	_MODE_PASSIVE,8,3               ## @MODE_PASSIVE
	.comm	_INVALIDNAK,4,2                 ## @INVALIDNAK
	.comm	_FLAG_SKEY,4,2                  ## @FLAG_SKEY
	.comm	_VALIDNAK,4,2                   ## @VALIDNAK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_valid_NAK                      ; -- Begin function valid_NAK
	.p2align	2
_valid_NAK:                             ; @valid_NAK
	.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, _MIN_V4_PKT_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_V4_PKT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1]
	subs	w9, w9, w8
	ccmp	w9, #4, #0, ne
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _NONAK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NONAK@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh5:
	adrp	x9, _MODE_SERVER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MODE_SERVER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _MODE_ACTIVE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MODE_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _MODE_PASSIVE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MODE_PASSIVE@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x9, x2
	ccmp	x10, x2, #4, ne
	ccmp	x11, x2, #4, ne
	b.ne	LBB0_8
; %bb.3:
	mov	x19, x0
	add	x20, x1, #4
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	ldr	w0, [x20, w8, sxtw #2]
	bl	_ntohl
Lloh14:
	adrp	x21, _INVALIDNAK@GOTPAGE
Lloh15:
	ldr	x21, [x21, _INVALIDNAK@GOTPAGEOFF]
	cbz	x19, LBB0_9
; %bb.4:
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _FLAG_SKEY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FLAG_SKEY@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	add	x1, sp, #12
	mov	x0, x20
	bl	_NTOHL_FP
	ldr	x8, [x19, #8]
	add	x9, x19, #20
	add	x10, x19, #16
	cmp	x8, #0
	csel	x19, x9, x10, gt
	add	x0, sp, #12
	bl	_L_ISZERO
	cbz	x0, LBB0_10
LBB0_8:
Lloh19:
	adrp	x21, _INVALIDNAK@GOTPAGE
Lloh20:
	ldr	x21, [x21, _INVALIDNAK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x21]
	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_10:
	mov	x0, x19
	bl	_L_ISZERO
Lloh21:
	adrp	x21, _INVALIDNAK@GOTPAGE
Lloh22:
	ldr	x21, [x21, _INVALIDNAK@GOTPAGEOFF]
	cbnz	x0, LBB0_9
; %bb.11:
	add	x0, sp, #12
	mov	x1, x19
	bl	_L_ISEQU
Lloh23:
	adrp	x8, _VALIDNAK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VALIDNAK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x21, x21, x8, eq
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_V4_PKT_LEN,4,2             ; @MIN_V4_PKT_LEN
	.comm	_NONAK,4,2                      ; @NONAK
	.comm	_MODE_SERVER,8,3                ; @MODE_SERVER
	.comm	_MODE_ACTIVE,8,3                ; @MODE_ACTIVE
	.comm	_MODE_PASSIVE,8,3               ; @MODE_PASSIVE
	.comm	_INVALIDNAK,4,2                 ; @INVALIDNAK
	.comm	_FLAG_SKEY,4,2                  ; @FLAG_SKEY
	.comm	_VALIDNAK,4,2                   ; @VALIDNAK
.subsections_via_symbols
