	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_valid_mcast_lid
_is_valid_mcast_lid:                    ## @is_valid_mcast_lid
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	callq	_ib_query_qp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	-64(%rbp), %rax
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
LBB0_3:
	movq	(%r15), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	callq	_rdma_port_get_link_layer
	xorl	%ecx, %ecx
	cmpq	(%r12), %rax
	setne	%cl
	addl	%ecx, %r13d
	incl	%ebx
	movq	(%r15), %rdi
	cmpl	(%rdi), %ebx
	jl	LBB0_5
## %bb.6:
	movl	$1, %eax
	testl	%r13d, %r13d
	jne	LBB0_9
	jmp	LBB0_7
LBB0_2:
	movq	(%r15), %rdi
	movl	-56(%rbp), %esi
	callq	_rdma_port_get_link_layer
	movq	%rax, %rcx
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
LBB0_7:
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	jg	LBB0_9
## %bb.8:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	setne	%al
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.comm	_IB_QPS_INIT,8,3                ## @IB_QPS_INIT
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ## @IB_LINK_LAYER_INFINIBAND
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_IB_LID_PERMISSIVE,4,2          ## @IB_LID_PERMISSIVE
	.no_dead_strip	_is_valid_mcast_lid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_valid_mcast_lid
_is_valid_mcast_lid:                    ; @is_valid_mcast_lid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	str	wzr, [sp, #24]
Lloh0:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
	stp	xzr, xzr, [sp, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IB_QP_PORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QP_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #8
	add	x3, sp, #24
	bl	_ib_query_qp
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _IB_QPS_INIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QPS_INIT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
LBB0_2:
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w21, #0
	mov	w22, #0
Lloh9:
	adrp	x23, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_rdma_port_get_link_layer
	ldr	x8, [x23]
	cmp	x0, x8
	cinc	w22, w22, ne
	add	w21, w21, #1
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w21, w8
	b.lt	LBB0_4
; %bb.5:
	cbz	w22, LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_11
LBB0_7:
	ldr	x0, [x20]
	ldr	w1, [sp, #16]
	bl	_rdma_port_get_link_layer
Lloh11:
	adrp	x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_8:
Lloh14:
	adrp	x8, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	x0, x19
	b.le	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	x0, x19
	cset	w0, ne
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.comm	_IB_QPS_INIT,8,3                ; @IB_QPS_INIT
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ; @IB_LINK_LAYER_INFINIBAND
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_IB_LID_PERMISSIVE,4,2          ; @IB_LID_PERMISSIVE
	.no_dead_strip	_is_valid_mcast_lid
.subsections_via_symbols
