	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_get_wscale
_pf_get_wscale:                         ## @pf_get_wscale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	shll	$2, %ebx
	xorl	%r14d, %r14d
	cmpl	$5, %ebx
	jb	LBB0_9
## %bb.1:
	movl	%ecx, (%rsp)
	xorl	%r14d, %r14d
	leaq	-272(%rbp), %rdx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_pf_pull_hdr
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	addl	$-4, %ebx
	cmpl	$3, %ebx
	jl	LBB0_9
## %bb.3:
	leaq	-256(%rbp), %rax
	movq	_TCP_MAX_WINSHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PF_WSCALE_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%r14d, %r14d
	movl	$2, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rax), %esi
	cmpl	$3, %esi
	cmovll	%r8d, %esi
	subl	%esi, %ebx
	leaq	(%rax,%rsi,4), %rax
	cmpl	$2, %ebx
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	leal	-129(%rdi), %esi
	cmpl	$2, %esi
	jae	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rax
	decl	%ebx
	cmpl	$2, %ebx
	jg	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %edi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rax), %r14d
	cmpl	%ecx, %r14d
	cmovgel	%ecx, %r14d
	orl	%edx, %r14d
	jmp	LBB0_7
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%r14d, %eax
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_MAX_WINSHIFT,4,2           ## @TCP_MAX_WINSHIFT
	.comm	_PF_WSCALE_FLAG,4,2             ## @PF_WSCALE_FLAG
	.no_dead_strip	_pf_get_wscale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_get_wscale
_pf_get_wscale:                         ; @pf_get_wscale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	lsl	w19, w2, #2
	cmp	w19, #5
	b.lo	LBB0_9
; %bb.1:
	mov	x6, x3
	add	x2, sp, #8
	mov	x3, x19
	mov	x4, #0
	mov	x5, #0
	bl	_pf_pull_hdr
	cbz	w0, LBB0_10
; %bb.2:
	sub	w8, w19, #4
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.3:
	mov	w0, #0
	add	x9, sp, #8
Lloh3:
	adrp	x10, _TCP_MAX_WINSHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TCP_MAX_WINSHIFT@GOTPAGEOFF]
	add	x9, x9, #16
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _PF_WSCALE_FLAG@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PF_WSCALE_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	mov	w12, #2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x9, #4]
	cmp	w13, #2
	csel	w13, w13, w12, gt
	sub	w8, w8, w13
	add	x9, x9, w13, uxtw #2
	cmp	w8, #2
	b.le	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9]
	sub	w14, w13, #129
	cmp	w14, #2
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #4
	sub	w8, w8, #1
	cmp	w8, #2
	b.gt	LBB0_5
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w13, #128
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x9, #8]
	cmp	w13, w10
	csel	w13, w13, w10, lt
	orr	w0, w13, w11
	b	LBB0_4
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_MAX_WINSHIFT,4,2           ; @TCP_MAX_WINSHIFT
	.comm	_PF_WSCALE_FLAG,4,2             ; @PF_WSCALE_FLAG
	.no_dead_strip	_pf_get_wscale
.subsections_via_symbols
