	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subn_get_pkeytable
_subn_get_pkeytable:                    ## @subn_get_pkeytable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movq	8(%r14), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testw	%r13w, %r13w
	je	LBB0_1
## %bb.4:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	callq	_dd_from_ibdev
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_qib_get_npkeys
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_get_pkeys
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_cpu_to_be16
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.no_dead_strip	_subn_get_pkeytable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subn_get_pkeytable
_subn_get_pkeytable:                    ; @subn_get_pkeytable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	x20, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	tst	w23, #0xffff
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_2:
	mov	x0, x22
	bl	_dd_from_ibdev
	mov	x23, x0
	bl	_qib_get_npkeys
	mov	x22, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_get_pkeys
	cbz	w22, LBB0_5
; %bb.3:
	mov	w21, w22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_cpu_to_be16
	str	w0, [x20], #4
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.no_dead_strip	_subn_get_pkeytable
.subsections_via_symbols
