	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_mad
_validate_mad:                          ## @validate_mad
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rsi
	movq	_IB_MGMT_BASE_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_6
## %bb.1:
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movq	_OPA_MGMT_BASE_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
LBB0_6:
	movq	8(%rdi), %rax
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.7:
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.9:
	movq	_IB_MGMT_CLASS_CM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_14
## %bb.10:
	movq	16(%rdi), %rax
	movq	_IB_MGMT_CLASSPORTINFO_ATTR_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
LBB0_14:
	testq	%rcx, %rcx
	jne	LBB0_13
	jmp	LBB0_15
LBB0_8:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbp
	retq
LBB0_11:
	movq	24(%rdi), %rdx
	movq	_IB_MGMT_METHOD_SEND@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jne	LBB0_16
## %bb.12:
	testq	%rcx, %rcx
	je	LBB0_16
LBB0_13:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_BASE_VERSION,8,3       ## @IB_MGMT_BASE_VERSION
	.comm	_OPA_MGMT_BASE_VERSION,8,3      ## @OPA_MGMT_BASE_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAD received with unsupported base version %d %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"(opa)"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ## @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_CLASS_CM,8,3           ## @IB_MGMT_CLASS_CM
	.comm	_IB_MGMT_CLASSPORTINFO_ATTR_ID,8,3 ## @IB_MGMT_CLASSPORTINFO_ATTR_ID
	.comm	_IB_MGMT_METHOD_SEND,8,3        ## @IB_MGMT_METHOD_SEND
	.no_dead_strip	_validate_mad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_mad
_validate_mad:                          ; @validate_mad
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x1, [x0]
Lloh0:
	adrp	x9, _IB_MGMT_BASE_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_MGMT_BASE_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x1, x9
	b.eq	LBB0_3
; %bb.1:
	cbz	w2, LBB0_8
; %bb.2:
Lloh3:
	adrp	x9, _OPA_MGMT_BASE_VERSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPA_MGMT_BASE_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x1, x9
	b.ne	LBB0_9
LBB0_3:
	ldr	x9, [x0, #8]
Lloh6:
	adrp	x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.4:
	cmp	x8, #0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x10, _IB_MGMT_CLASS_CM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IB_MGMT_CLASS_CM@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [x0, #16]
Lloh15:
	adrp	x10, _IB_MGMT_CLASSPORTINFO_ATTR_ID@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IB_MGMT_CLASSPORTINFO_ATTR_ID@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_7:
	cbnz	x8, LBB0_13
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_10:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x9, [x0, #24]
Lloh24:
	adrp	x10, _IB_MGMT_METHOD_SEND@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IB_MGMT_METHOD_SEND@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_11
LBB0_13:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_BASE_VERSION,8,3       ; @IB_MGMT_BASE_VERSION
	.comm	_OPA_MGMT_BASE_VERSION,8,3      ; @OPA_MGMT_BASE_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAD received with unsupported base version %d %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"(opa)"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ; @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_CLASS_CM,8,3           ; @IB_MGMT_CLASS_CM
	.comm	_IB_MGMT_CLASSPORTINFO_ATTR_ID,8,3 ; @IB_MGMT_CLASSPORTINFO_ATTR_ID
	.comm	_IB_MGMT_METHOD_SEND,8,3        ; @IB_MGMT_METHOD_SEND
	.no_dead_strip	_validate_mad
.subsections_via_symbols
