	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_sa_cpi
_query_sa_cpi:                          ## @query_sa_cpi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_IB_MAD_METHOD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLASS_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ibd_sakey@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-32(%rbp), %rax
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_sa_query
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	jmp	LBB0_6
LBB0_2:
	movq	-32(%rbp), %rdi
	movq	_IB_SA_MAD_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
## %bb.4:
	movl	-24(%rbp), %edi
	xorl	%esi, %esi
	callq	_sa_get_query_rec
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_3:
	callq	_sa_report_err
LBB0_5:
	leaq	-32(%rbp), %rdi
	callq	_sa_free_result_mad
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_METHOD_GET,4,2          ## @IB_MAD_METHOD_GET
	.comm	_CLASS_PORT_INFO,4,2            ## @CLASS_PORT_INFO
	.comm	_ibd_sakey,4,2                  ## @ibd_sakey
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Query SA failed: %s\n"

	.comm	_IB_SA_MAD_STATUS_SUCCESS,8,3   ## @IB_SA_MAD_STATUS_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_query_sa_cpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_sa_cpi
_query_sa_cpi:                          ; @query_sa_cpi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x8, _IB_MAD_METHOD_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MAD_METHOD_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CLASS_PORT_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLASS_PORT_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ibd_sakey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ibd_sakey@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	add	x8, sp, #16
	str	x8, [sp]
	mov	w3, #0
	mov	w4, #0
	mov	x6, #0
	mov	w7, #0
	bl	_sa_query
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #16]
Lloh14:
	adrp	x8, _IB_SA_MAD_STATUS_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_SA_MAD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [sp, #24]
	mov	w1, #0
	bl	_sa_get_query_rec
	mov	x1, x0
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	bl	_sa_report_err
LBB0_5:
	add	x0, sp, #16
	bl	_sa_free_result_mad
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_METHOD_GET,4,2          ; @IB_MAD_METHOD_GET
	.comm	_CLASS_PORT_INFO,4,2            ; @CLASS_PORT_INFO
	.comm	_ibd_sakey,4,2                  ; @ibd_sakey
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Query SA failed: %s\n"

	.comm	_IB_SA_MAD_STATUS_SUCCESS,8,3   ; @IB_SA_MAD_STATUS_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_query_sa_cpi
.subsections_via_symbols
