	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_port
_debug_port:                            ## @debug_port
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rdi
	movq	_IB_PORT_LINK_WIDTH_ACTIVE_F@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, -208(%rbp)
	movq	(%rbx), %rdi
	movq	_IB_PORT_LINK_SPEED_ACTIVE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, -204(%rbp)
	movq	24(%rbx), %rdi
	movq	_IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, -196(%rbp)                ## 4-byte Spill
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	_IB_NODE_SWITCH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
LBB0_3:
	movq	_IB_PORT_CAPMASK_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, %r13d
	movq	_IB_PORT_CAP_HAS_EXT_SPEEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CL_NTOH32
	testl	%r13d, %eax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movq	_IB_PORT_LINK_SPEED_EXT_ACTIVE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, %r12d
LBB0_5:
	movl	%r12d, -200(%rbp)
	movq	%r15, %rdi
	callq	_portid2str
	movl	%eax, -192(%rbp)                ## 4-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, -188(%rbp)                ## 4-byte Spill
	movl	8(%rbx), %eax
	movl	%eax, -184(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rdi
	movq	_IB_PORT_STATE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rdi
	movq	_IB_PORT_PHYS_STATE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	-112(%rbp), %rsi
	leaq	-208(%rbp), %rcx
	movl	$64, %edx
	callq	_mad_dump_val
	movl	%eax, %r12d
	movq	_IB_PORT_LINK_SPEED_ACTIVE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-176(%rbp), %r14
	leaq	-204(%rbp), %rcx
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_mad_dump_val
	movl	%eax, %r13d
	movq	_FDR10@GOTPCREL(%rip), %rax
	movl	-196(%rbp), %ecx                ## 4-byte Reload
	andl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	movq	_IB_PORT_LINK_SPEED_EXT_ACTIVE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-200(%rbp), %rcx
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_mad_dump_val
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str(%rip), %rdi
	movl	-192(%rbp), %esi                ## 4-byte Reload
	movl	-188(%rbp), %edx                ## 4-byte Reload
	movl	-184(%rbp), %ecx                ## 4-byte Reload
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r15
	pushq	%r13
	pushq	%r12
	callq	_IBND_DEBUG
	addq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_LINK_WIDTH_ACTIVE_F,4,2 ## @IB_PORT_LINK_WIDTH_ACTIVE_F
	.comm	_IB_PORT_LINK_SPEED_ACTIVE_F,4,2 ## @IB_PORT_LINK_SPEED_ACTIVE_F
	.comm	_IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F,4,2 ## @IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F
	.comm	_IB_NODE_SWITCH,8,3             ## @IB_NODE_SWITCH
	.comm	_IB_PORT_CAPMASK_F,4,2          ## @IB_PORT_CAPMASK_F
	.comm	_IB_PORT_CAP_HAS_EXT_SPEEDS,4,2 ## @IB_PORT_CAP_HAS_EXT_SPEEDS
	.comm	_IB_PORT_LINK_SPEED_EXT_ACTIVE_F,4,2 ## @IB_PORT_LINK_SPEED_EXT_ACTIVE_F
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"portid %s portnum %d: base lid %d state %d physstate %d %s %s %s %s\n"

	.comm	_IB_PORT_STATE_F,4,2            ## @IB_PORT_STATE_F
	.comm	_IB_PORT_PHYS_STATE_F,4,2       ## @IB_PORT_PHYS_STATE_F
	.comm	_FDR10,4,2                      ## @FDR10
L_.str.1:                               ## @.str.1
	.asciz	"FDR10"

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

	.no_dead_strip	_debug_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_port
_debug_port:                            ; @debug_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x0, [x1]
Lloh3:
	adrp	x25, _IB_PORT_LINK_WIDTH_ACTIVE_F@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IB_PORT_LINK_WIDTH_ACTIVE_F@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_mad_get_field
	str	w0, [sp, #20]
	ldr	x0, [x20]
Lloh5:
	adrp	x26, _IB_PORT_LINK_SPEED_ACTIVE_F@GOTPAGE
Lloh6:
	ldr	x26, [x26, _IB_PORT_LINK_SPEED_ACTIVE_F@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	w1, #0
	bl	_mad_get_field
	str	w0, [sp, #16]
	ldr	x0, [x20, #24]
Lloh7:
	adrp	x8, _IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field
	mov	x19, x0
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
Lloh10:
	adrp	x10, _IB_NODE_SWITCH@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IB_NODE_SWITCH@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
LBB0_3:
Lloh13:
	adrp	x8, _IB_PORT_CAPMASK_F@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_PORT_CAPMASK_F@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field
	mov	x22, x0
Lloh16:
	adrp	x8, _IB_PORT_CAP_HAS_EXT_SPEEDS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_PORT_CAP_HAS_EXT_SPEEDS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_CL_NTOH32
Lloh19:
	adrp	x27, _IB_PORT_LINK_SPEED_EXT_ACTIVE_F@GOTPAGE
Lloh20:
	ldr	x27, [x27, _IB_PORT_LINK_SPEED_EXT_ACTIVE_F@GOTPAGEOFF]
	tst	w0, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x20]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_mad_get_field
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	str	w0, [sp, #12]
	mov	x0, x21
	bl	_portid2str
	mov	x21, x0
	ldp	w23, w22, [x20, #8]
	ldr	x0, [x20]
Lloh21:
	adrp	x8, _IB_PORT_STATE_F@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_PORT_STATE_F@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field
	mov	x24, x0
	ldr	x0, [x20]
Lloh24:
	adrp	x8, _IB_PORT_PHYS_STATE_F@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_F@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field
	mov	x20, x0
	ldr	w0, [x25]
	add	x1, sp, #88
	add	x3, sp, #20
	mov	w2, #64
	bl	_mad_dump_val
	mov	x25, x0
	ldr	w0, [x26]
	add	x1, sp, #24
	add	x3, sp, #16
	mov	w2, #64
	bl	_mad_dump_val
	mov	x26, x0
Lloh27:
	adrp	x8, _FDR10@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FDR10@GOTPAGEOFF]
Lloh29:
	adrp	x9, l_.str.1@PAGE
Lloh30:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x10, l_.str.2@PAGE
Lloh33:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w19
	csel	x19, x10, x9, eq
	ldr	w0, [x27]
	add	x1, sp, #24
	add	x3, sp, #12
	mov	w2, #64
	bl	_mad_dump_val
	str	w0, [sp, #8]
	str	x19, [sp]
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x20
	mov	x6, x25
	mov	x7, x26
	bl	_IBND_DEBUG
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_LINK_WIDTH_ACTIVE_F,4,2 ; @IB_PORT_LINK_WIDTH_ACTIVE_F
	.comm	_IB_PORT_LINK_SPEED_ACTIVE_F,4,2 ; @IB_PORT_LINK_SPEED_ACTIVE_F
	.comm	_IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F,4,2 ; @IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F
	.comm	_IB_NODE_SWITCH,8,3             ; @IB_NODE_SWITCH
	.comm	_IB_PORT_CAPMASK_F,4,2          ; @IB_PORT_CAPMASK_F
	.comm	_IB_PORT_CAP_HAS_EXT_SPEEDS,4,2 ; @IB_PORT_CAP_HAS_EXT_SPEEDS
	.comm	_IB_PORT_LINK_SPEED_EXT_ACTIVE_F,4,2 ; @IB_PORT_LINK_SPEED_EXT_ACTIVE_F
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"portid %s portnum %d: base lid %d state %d physstate %d %s %s %s %s\n"

	.comm	_IB_PORT_STATE_F,4,2            ; @IB_PORT_STATE_F
	.comm	_IB_PORT_PHYS_STATE_F,4,2       ; @IB_PORT_PHYS_STATE_F
	.comm	_FDR10,4,2                      ; @FDR10
l_.str.1:                               ; @.str.1
	.asciz	"FDR10"

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

	.no_dead_strip	_debug_port
.subsections_via_symbols
