	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filterdownport_check           ## -- Begin function filterdownport_check
	.p2align	4, 0x90
_filterdownport_check:                  ## @filterdownport_check
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_filterdownports_fabric@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	16(%rdi), %esi
	movl	%eax, %edi
	callq	_ibnd_find_node_guid
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdx
	cmpq	(%rcx), %rdx
	ja	LBB0_4
## %bb.2:
	movq	8(%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	8(%rcx), %edi
	movq	_IB_PORT_STATE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, %ecx
	movq	_IB_LINK_DOWN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	sete	%al
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_filterdownports_fabric,4,2     ## @filterdownports_fabric
	.comm	_IB_PORT_STATE_F,4,2            ## @IB_PORT_STATE_F
	.comm	_IB_LINK_DOWN,4,2               ## @IB_LINK_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filterdownport_check           ; -- Begin function filterdownport_check
	.p2align	2
_filterdownport_check:                  ; @filterdownport_check
	.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	x19, x1
Lloh0:
	adrp	x8, _filterdownports_fabric@GOTPAGE
Lloh1:
	ldr	x8, [x8, _filterdownports_fabric@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w1, [x0, #16]
	mov	x0, x8
	bl	_ibnd_find_node_guid
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hi	LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x8, #8]
Lloh3:
	adrp	x8, _IB_PORT_STATE_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_STATE_F@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field
Lloh6:
	adrp	x8, _IB_LINK_DOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_LINK_DOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_filterdownports_fabric,4,2     ; @filterdownports_fabric
	.comm	_IB_PORT_STATE_F,4,2            ; @IB_PORT_STATE_F
	.comm	_IB_LINK_DOWN,4,2               ; @IB_LINK_DOWN
.subsections_via_symbols
