	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_rx_mss_helper
_ibmveth_rx_mss_helper:                 ## @ibmveth_rx_mss_helper
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.1:
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movslq	8(%rax), %r14
	leaq	(,%r14,4), %r13
	movq	_SKB_GSO_TCPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	%ebx, 12(%rax)
	movq	%r13, %rbx
	addq	16(%r12), %r13
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_4:
	movq	(%r12), %rbx
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.5:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	movq	_SKB_GSO_TCPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	%ebx, 12(%rax)
	movq	16(%r12), %r13
	addq	$8, %r13
	movl	$8, %ebx
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	%r14, (%rax)
	jmp	LBB0_11
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_10:
	movq	8(%r13), %rdi
	callq	_ntohs
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	%r14, (%rax)
	movq	$0, 8(%r13)
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movslq	(%r13), %rax
	movslq	%ebx, %rcx
	leaq	(%rcx,%rax,4), %rax
	movq	8(%r12), %r14
	subq	%rax, %r14
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	%r14d, 8(%rax)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_SKB_GSO_TCPV4,4,2              ## @SKB_GSO_TCPV4
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_SKB_GSO_TCPV6,4,2              ## @SKB_GSO_TCPV6
	.no_dead_strip	_ibmveth_rx_mss_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_rx_mss_helper
_ibmveth_rx_mss_helper:                 ; @ibmveth_rx_mss_helper
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.2:
	ldrsw	x24, [x8, #8]
	lsl	x22, x24, #2
Lloh6:
	adrp	x8, _SKB_GSO_TCPV4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SKB_GSO_TCPV4@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_skb_shinfo
	str	w23, [x0, #12]
	ldr	x8, [x19, #16]
	add	x23, x8, x22
	cbnz	w21, LBB0_8
; %bb.3:
	cbnz	w24, LBB0_9
; %bb.4:
	mov	w22, #0
	b	LBB0_10
LBB0_5:
	ldr	x22, [x19]
Lloh9:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_12
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
Lloh15:
	adrp	x8, _SKB_GSO_TCPV6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SKB_GSO_TCPV6@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_skb_shinfo
	str	w22, [x0, #12]
	ldr	x8, [x19, #16]
	add	x23, x8, #8
	mov	w22, #8
	cbz	w21, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_skb_shinfo
	str	x20, [x0]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x23, #8]
	bl	_ntohs
	mov	x20, x0
	mov	x0, x19
	bl	_skb_shinfo
	str	x20, [x0]
	str	xzr, [x23, #8]
LBB0_10:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.11:
	ldrsw	x8, [x23]
	lsl	x8, x8, #2
	add	x8, x8, w22, sxtw
	ldr	x9, [x19, #8]
	sub	x20, x9, x8
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x1, [x0]
	mov	x0, x20
	bl	_DIV_ROUND_UP
	mov	x20, x0
	mov	x0, x19
	bl	_skb_shinfo
	str	w20, [x0, #8]
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_SKB_GSO_TCPV4,4,2              ; @SKB_GSO_TCPV4
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_SKB_GSO_TCPV6,4,2              ; @SKB_GSO_TCPV6
	.no_dead_strip	_ibmveth_rx_mss_helper
.subsections_via_symbols
