	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_size
_select_size:                           ## @select_size
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_tcp_sk
	movl	(%rax), %r14d
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_sk_can_gso
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.2:
	movq	_MAX_TCP_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SKB_MAX_HEAD
	cmpl	%eax, %r14d
	jge	LBB0_5
LBB0_4:
	movl	%r14d, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	addl	%eax, %ecx
	cmpl	%ecx, %r14d
	cmovgl	%r14d, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_MAX_TCP_HEADER,4,2             ## @MAX_TCP_HEADER
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_select_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_size
_select_size:                           ; @select_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_tcp_sk
	ldr	w19, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_sk_can_gso
	cbz	x0, LBB0_3
; %bb.2:
	mov	w19, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _MAX_TCP_HEADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TCP_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SKB_MAX_HEAD
	cmp	w19, w0
	b.lt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w8, w8, #1
Lloh9:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	madd	w8, w8, w9, w0
	cmp	w19, w8
	csel	w19, w19, w0, gt
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_MAX_TCP_HEADER,4,2             ; @MAX_TCP_HEADER
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_select_size
.subsections_via_symbols
