	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cookie_check
_cookie_check:                          ## @cookie_check
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ip_hdr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_tcp_hdr
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_ntohl
	leaq	-1(%rax), %r9
	movl	(%r15), %r10d
	movl	4(%r15), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HZ@GOTPCREL(%rip), %rdx
	imull	$60, (%rdx), %edi
	cltd
	idivl	%edi
                                        ## kill: def $eax killed $eax def $rax
	movq	_COUNTER_TRIES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	%r14, %rdi
	movl	%r10d, %edx
	pushq	%rbx
	pushq	%rax
	callq	_check_tcp_syn_cookie
	addq	$16, %rsp
	movq	_NUM_MSS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	jae	LBB0_2
## %bb.1:
	movq	_msstab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ecx
	incl	%ecx
LBB0_2:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_COUNTER_TRIES,4,2              ## @COUNTER_TRIES
	.comm	_NUM_MSS,8,3                    ## @NUM_MSS
	.comm	_msstab,8,3                     ## @msstab
	.no_dead_strip	_cookie_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cookie_check
_cookie_check:                          ; @cookie_check
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_ip_hdr
	mov	x21, x0
	mov	x0, x20
	bl	_tcp_hdr
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_ntohl
	sub	x5, x0, #1
	ldp	w2, w1, [x21]
	ldp	w4, w3, [x20]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #60
	mul	w9, w9, w10
	sdiv	w6, w8, w9
Lloh6:
	adrp	x8, _COUNTER_TRIES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COUNTER_TRIES@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	x0, x19
	bl	_check_tcp_syn_cookie
Lloh9:
	adrp	x8, _NUM_MSS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NUM_MSS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _msstab@GOTPAGE
Lloh13:
	ldr	x8, [x8, _msstab@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8, x0, lsl #2]
	add	w0, w8, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_COUNTER_TRIES,4,2              ; @COUNTER_TRIES
	.comm	_NUM_MSS,8,3                    ; @NUM_MSS
	.comm	_msstab,8,3                     ; @msstab
	.no_dead_strip	_cookie_check
.subsections_via_symbols
