	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_pkey_tbl_records
_query_pkey_tbl_records:                ## @query_pkey_tbl_records
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$-1, -36(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.1:
	movq	(%r8), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%r12, %rdi
	callq	_parse_lid_and_ports
LBB0_2:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %ecx
	movq	_PKEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	_LID@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_CHECK_AND_SET_VAL
	movl	-40(%rbp), %edi
	movl	-52(%rbp), %ecx
	movl	(%rbx), %r8d
	movq	_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$8, %esi
	movl	$-1, %edx
	callq	_CHECK_AND_SET_VAL
	movl	-36(%rbp), %edi
	movl	-56(%rbp), %ecx
	movl	(%rbx), %r8d
	movq	_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$16, %esi
	movl	$-1, %edx
	callq	_CHECK_AND_SET_VAL
	movq	_IB_SA_ATTR_PKEYTABLERECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dump_one_pkey_tbl_record@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	$12, %r9d
	pushq	%r14
	pushq	%rax
	callq	_get_and_dump_any_records
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKEY,4,2                       ## @PKEY
	.comm	_LID,4,2                        ## @LID
	.comm	_PORT,4,2                       ## @PORT
	.comm	_BLOCK,4,2                      ## @BLOCK
	.comm	_IB_SA_ATTR_PKEYTABLERECORD,4,2 ## @IB_SA_ATTR_PKEYTABLERECORD
	.comm	_dump_one_pkey_tbl_record,4,2   ## @dump_one_pkey_tbl_record
	.no_dead_strip	_query_pkey_tbl_records
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_pkey_tbl_records
_query_pkey_tbl_records:                ; @query_pkey_tbl_records
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	w8, #-1
	stp	w8, wzr, [sp, #8]
	str	w8, [sp, #4]
	cmp	w3, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x1, [x4]
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	bl	_parse_lid_and_ports
LBB0_2:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [sp, #12]
	ldr	w3, [sp, #24]
Lloh0:
	adrp	x21, _PKEY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PKEY@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh2:
	adrp	x8, _LID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LID@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	w1, #16
	mov	w2, #0
	bl	_CHECK_AND_SET_VAL
	ldr	w0, [sp, #8]
	ldr	w3, [sp, #20]
	ldr	w4, [x21]
Lloh5:
	adrp	x8, _PORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PORT@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	w1, #8
	mov	w2, #-1
	bl	_CHECK_AND_SET_VAL
	ldr	w0, [sp, #4]
	ldr	w3, [sp, #16]
	ldr	w4, [x21]
Lloh8:
	adrp	x8, _BLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	w1, #16
	mov	w2, #-1
	bl	_CHECK_AND_SET_VAL
Lloh11:
	adrp	x8, _IB_SA_ATTR_PKEYTABLERECORD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_SA_ATTR_PKEYTABLERECORD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _dump_one_pkey_tbl_record@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dump_one_pkey_tbl_record@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	w5, #12
	mov	x7, x19
	bl	_get_and_dump_any_records
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PKEY,4,2                       ; @PKEY
	.comm	_LID,4,2                        ; @LID
	.comm	_PORT,4,2                       ; @PORT
	.comm	_BLOCK,4,2                      ; @BLOCK
	.comm	_IB_SA_ATTR_PKEYTABLERECORD,4,2 ; @IB_SA_ATTR_PKEYTABLERECORD
	.comm	_dump_one_pkey_tbl_record,4,2   ; @dump_one_pkey_tbl_record
	.no_dead_strip	_query_pkey_tbl_records
.subsections_via_symbols
