	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_port_caps
_validate_port_caps:                    ## @validate_port_caps
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_ib_port_info_get_neighbor_mtu
	movl	(%r12), %r8d
	andl	$63, %r8d
	cmpq	%r8, %rax
	jge	LBB0_2
## %bb.1:
	movq	_OSM_LOG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rcx
	jmp	LBB0_5
LBB0_2:
	movq	_IB_PORT_CAP_HAS_EXT_SPEEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ib_port_info_compute_rate
	movq	%rax, %r15
	movl	4(%r12), %ebx
	andl	$63, %ebx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ib_path_compare_rates
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_OSM_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	movq	%rbx, %r8
LBB0_5:
	callq	_OSM_LOG
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_VERBOSE,4,2            ## @OSM_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port's MTU %x is less than %x\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IB_PORT_CAP_HAS_EXT_SPEEDS,4,2 ## @IB_PORT_CAP_HAS_EXT_SPEEDS
L_.str.1:                               ## @.str.1
	.asciz	"Port's RATE %x is less than %x\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_validate_port_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_port_caps
_validate_port_caps:                    ; @validate_port_caps
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_ib_port_info_get_neighbor_mtu
	ldr	w8, [x20]
	and	x4, x8, #0x3f
	cmp	x0, x4
	b.ge	LBB0_2
; %bb.1:
	mov	x3, x0
Lloh0:
	adrp	x8, _OSM_LOG_VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _IB_PORT_CAP_HAS_EXT_SPEEDS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_PORT_CAP_HAS_EXT_SPEEDS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x21
	bl	_ib_port_info_compute_rate
	mov	x21, x0
	ldr	w8, [x20, #4]
	and	x20, x8, #0x3f
	mov	x1, x20
	bl	_ib_path_compare_rates
	tbnz	x0, #63, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _OSM_LOG_VERBOSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OSM_LOG_VERBOSE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
LBB0_5:
	bl	_OSM_LOG
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_VERBOSE,4,2            ; @OSM_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port's MTU %x is less than %x\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IB_PORT_CAP_HAS_EXT_SPEEDS,4,2 ; @IB_PORT_CAP_HAS_EXT_SPEEDS
l_.str.1:                               ; @.str.1
	.asciz	"Port's RATE %x is less than %x\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_validate_port_caps
.subsections_via_symbols
