	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pma_query_via                  ## -- Begin function pma_query_via
	.p2align	4, 0x90
_pma_query_via:                         ## @pma_query_via
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movups	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	movl	(%rsi), %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_DEBUG
	cmpl	$-1, %r12d
	je	LBB0_1
## %bb.2:
	movq	_IB_PERFORMANCE_CLASS@GOTPCREL(%rip), %rax
	movq	_IB_MAD_RPC_VERSION1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -104(%rbp)
	movq	_IB_MAD_METHOD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%r14d, -80(%rbp)
	movq	_IB_PC_PORT_SELECT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r13d, %ecx
	callq	_mad_set_field
	movq	$0, -72(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
	movq	_IB_PC_DATA_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_IB_PC_DATA_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	cmpl	$0, 4(%rbx)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
LBB0_6:
	leaq	-104(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r15, %r8
	callq	_mad_rpc
	movl	-96(%rbp), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_IBWARN
	xorl	%eax, %eax
LBB0_7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, 4(%rbx)
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
LBB0_5:
	movq	_IB_DEFAULT_QP1_QKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lid %u port %d"

L_.str.1:                               ## @.str.1
	.asciz	"only lid routed is supported"

	.comm	_IB_PERFORMANCE_CLASS,4,2       ## @IB_PERFORMANCE_CLASS
	.comm	_IB_MAD_RPC_VERSION1,4,2        ## @IB_MAD_RPC_VERSION1
	.comm	_IB_MAD_METHOD_GET,4,2          ## @IB_MAD_METHOD_GET
	.comm	_IB_PC_PORT_SELECT_F,4,2        ## @IB_PC_PORT_SELECT_F
	.comm	_IB_PC_DATA_SZ,4,2              ## @IB_PC_DATA_SZ
	.comm	_IB_PC_DATA_OFFS,4,2            ## @IB_PC_DATA_OFFS
	.comm	_IB_DEFAULT_QP1_QKEY,8,3        ## @IB_DEFAULT_QP1_QKEY
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pma_query_via                  ; -- Begin function pma_query_via
	.p2align	2
_pma_query_via:                         ; @pma_query_via
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x5
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #24]
	stur	q0, [sp, #8]
	ldr	w25, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_DEBUG
	cmn	w25, #1
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _IB_PERFORMANCE_CLASS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_PERFORMANCE_CLASS@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IB_MAD_RPC_VERSION1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IB_MAD_RPC_VERSION1@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _IB_MAD_METHOD_GET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_MAD_METHOD_GET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	str	w8, [sp]
	str	w24, [sp, #24]
Lloh11:
	adrp	x8, _IB_PC_PORT_SELECT_F@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_PC_PORT_SELECT_F@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x3, x23
	bl	_mad_set_field
	str	xzr, [sp, #32]
Lloh14:
	adrp	x8, _IB_PC_DATA_SZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_PC_DATA_SZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh17:
	adrp	x8, _IB_PC_DATA_OFFS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_PC_DATA_OFFS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w22, [sp, #4]
	str	w8, [sp, #12]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	x4, x20
	bl	_mad_rpc
	ldr	w8, [sp, #8]
Lloh20:
	adrp	x9, _errno@GOTPAGE
Lloh21:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBWARN
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	mov	w8, #1
	str	w8, [x21, #4]
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_3
LBB0_7:
Lloh25:
	adrp	x8, _IB_DEFAULT_QP1_QKEY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IB_DEFAULT_QP1_QKEY@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lid %u port %d"

l_.str.1:                               ; @.str.1
	.asciz	"only lid routed is supported"

	.comm	_IB_PERFORMANCE_CLASS,4,2       ; @IB_PERFORMANCE_CLASS
	.comm	_IB_MAD_RPC_VERSION1,4,2        ; @IB_MAD_RPC_VERSION1
	.comm	_IB_MAD_METHOD_GET,4,2          ; @IB_MAD_METHOD_GET
	.comm	_IB_PC_PORT_SELECT_F,4,2        ; @IB_PC_PORT_SELECT_F
	.comm	_IB_PC_DATA_SZ,4,2              ; @IB_PC_DATA_SZ
	.comm	_IB_PC_DATA_OFFS,4,2            ; @IB_PC_DATA_OFFS
	.comm	_IB_DEFAULT_QP1_QKEY,8,3        ; @IB_DEFAULT_QP1_QKEY
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
