	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlnx_ext_port_info
_mlnx_ext_port_info:                    ## @mlnx_ext_port_info
	.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	$2328, %rsp                     ## imm = 0x918
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsp, -2360(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IB_SMP_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	(%r13), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_IB_ATTR_MLNX_EXT_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_srcport@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_smp_query_via
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-2352(%rbp), %r13
	movq	%r13, %rdi
	movl	$2300, %esi                     ## imm = 0x8FC
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_mad_dump_mlnx_ext_port_info
	movq	%r14, %rdi
	callq	_portid2str
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_printf
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rax
LBB0_6:
	movq	-2360(%rbp), %rsp               ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_DATA_SIZE,4,2           ## @IB_SMP_DATA_SIZE
	.comm	_IB_ATTR_MLNX_EXT_PORT_INFO,4,2 ## @IB_ATTR_MLNX_EXT_PORT_INFO
	.comm	_srcport,4,2                    ## @srcport
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mellanox ext port info query failed"

L_.str.1:                               ## @.str.1
	.asciz	"# MLNX ext Port info: %s port %d\n%s"

	.no_dead_strip	_mlnx_ext_port_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlnx_ext_port_info
_mlnx_ext_port_info:                    ; @mlnx_ext_port_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #2320
	mov	x19, sp
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _IB_SMP_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SMP_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x1]
	mov	w1, #0
	mov	w2, #0
	bl	_strtol
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
Lloh8:
	adrp	x8, _IB_ATTR_MLNX_EXT_PORT_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_ATTR_MLNX_EXT_PORT_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _srcport@GOTPAGE
Lloh12:
	ldr	x8, [x8, _srcport@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x3, x23
	mov	w4, #0
	bl	_smp_query_via
	cbz	w0, LBB0_5
; %bb.4:
	add	x0, x19, #12
	mov	w1, #2300
	mov	x2, x22
	mov	x3, x21
	bl	_mad_dump_mlnx_ext_port_info
	mov	x0, x20
	bl	_portid2str
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x3, x19, #12
	mov	x2, x23
	bl	_printf
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_DATA_SIZE,4,2           ; @IB_SMP_DATA_SIZE
	.comm	_IB_ATTR_MLNX_EXT_PORT_INFO,4,2 ; @IB_ATTR_MLNX_EXT_PORT_INFO
	.comm	_srcport,4,2                    ; @srcport
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mellanox ext port info query failed"

l_.str.1:                               ; @.str.1
	.asciz	"# MLNX ext Port info: %s port %d\n%s"

	.no_dead_strip	_mlnx_ext_port_info
.subsections_via_symbols
