	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_best_aligned_mtu         ## -- Begin function cxgb4_best_aligned_mtu
	.p2align	4, 0x90
_cxgb4_best_aligned_mtu:                ## @cxgb4_best_aligned_mtu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_NMTUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	addl	%esi, %edx
	decl	%ecx
	movl	$-1, %r10d
	xorl	%r11d, %r11d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r11
	cmpq	%rax, %r9
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r10d, %ebx
	movzwl	(%rdi,%r11,2), %eax
	subl	%esi, %eax
	testw	%cx, %ax
	movl	%r11d, %r10d
	cmovnel	%ebx, %r10d
	leaq	1(%r11), %rax
	cmpq	%r9, %rax
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpw	%dx, 2(%rdi,%r11,2)
	jbe	LBB0_5
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r10d
	xorl	%r11d, %r11d
	jmp	LBB0_7
LBB0_6:
	movl	%r9d, %r11d
LBB0_7:
	xorl	%eax, %eax
	cmpl	%r9d, %r11d
	sete	%al
	subl	%eax, %r11d
	movl	%r11d, %eax
	subl	%r10d, %eax
	cmpl	$2, %eax
	movl	%r11d, %ecx
	cmovll	%r10d, %ecx
	testl	%r10d, %r10d
	cmovsl	%r11d, %ecx
	testq	%r8, %r8
	je	LBB0_9
## %bb.8:
	movl	%ecx, (%r8)
LBB0_9:
	movslq	%ecx, %rax
	movzwl	(%rdi,%rax,2), %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NMTUS,4,2                      ## @NMTUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_best_aligned_mtu         ; -- Begin function cxgb4_best_aligned_mtu
	.p2align	2
_cxgb4_best_aligned_mtu:                ; @cxgb4_best_aligned_mtu
	.cfi_startproc
; %bb.0:
	mov	w8, #-1
Lloh0:
	adrp	x9, _NMTUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NMTUS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x11, #0
	add	w12, w2, w1
	sub	w13, w3, #1
	mov	w10, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x14
	cmp	x9, x14
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w14, [x0, x11, lsl #1]
	sub	w14, w14, w1
	and	w14, w14, w13
	tst	w14, #0xffff
	csel	w10, w11, w10, eq
	add	x14, x11, #1
	cmp	x14, x9
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x15, x0, x11, lsl #1
	ldrh	w15, [x15, #2]
	cmp	w15, w12, uxth
	b.ls	LBB0_2
	b	LBB0_7
LBB0_5:
	mov	w11, #0
	mov	w10, #-1
	b	LBB0_7
LBB0_6:
	mov	x11, x9
LBB0_7:
	cmp	w11, w9
	cset	w9, eq
	sub	w9, w11, w9
	sub	w11, w9, w10
	cmp	w11, #2
	ccmp	w10, w8, #4, lt
	csel	w8, w10, w9, gt
	cbz	x4, LBB0_9
; %bb.8:
	str	w8, [x4]
LBB0_9:
	ldrh	w0, [x0, w8, sxtw #1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NMTUS,4,2                      ; @NMTUS
.subsections_via_symbols
