	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_mtu_validate
_check_mtu_validate:                    ## @check_mtu_validate
	.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	%rdx, %r14
	movq	%rdi, %rbx
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	decl	%eax
	jmp	LBB0_3
LBB0_2:
	movl	(%rsi), %eax
LBB0_3:
	movq	16(%rbx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_iboe_get_mtu
	movq	8(%rbx), %rcx
	movq	_IB_MTU_2048@GOTPCREL(%rip), %rsi
	movq	8(%r14), %rdx
	cmpq	(%rsi), %rcx
	jl	LBB0_5
## %bb.4:
	cmpq	%rcx, %rdx
	jg	LBB0_7
LBB0_5:
	movq	_IB_MTU_256@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jl	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	movl	%eax, %eax
	cmpq	%rax, %rdx
	jle	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ibdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_8:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.comm	_IB_MTU_2048,8,3                ## @IB_MTU_2048
	.comm	_IB_MTU_256,8,3                 ## @IB_MTU_256
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attr path_mtu(%d)invalid while modify qp"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_mtu_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_mtu_validate
_check_mtu_validate:                    ; @check_mtu_validate
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _IB_QP_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w8, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x1]
LBB0_3:
	ldr	x9, [x19, #16]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_iboe_get_mtu
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IB_MTU_2048@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_MTU_2048@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x2, [x20, #8]
	cmp	x8, x9
	ccmp	x2, x8, #4, ge
	b.gt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _IB_MTU_256@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MTU_256@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, w0
	cmp	x2, x8
	ccmp	x2, x9, #0, ge
	b.le	LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ibdev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.comm	_IB_MTU_2048,8,3                ; @IB_MTU_2048
	.comm	_IB_MTU_256,8,3                 ; @IB_MTU_256
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attr path_mtu(%d)invalid while modify qp"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_mtu_validate
.subsections_via_symbols
