	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_set_part_key
_ipath_set_part_key:                    ## @ipath_set_part_key
	.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
	movl	%esi, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	movq	_IPATH_DEFAULT_P_KEY@GOTPCREL(%rip), %rax
	movl	$32767, %ecx                    ## imm = 0x7FFF
	andl	(%rax), %ecx
	xorl	%r13d, %r13d
	cmpl	%ecx, %edx
	je	LBB0_25
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rbx
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	callq	_atomic_read
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	4(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	$4, %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movl	8(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	$8, %rdi
	callq	_atomic_read
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rax), %r15d
	addq	$12, %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	-80(%rbp), %r8d                 ## 4-byte Reload
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r15
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_ipath_cdbg
	addq	$48, %rsp
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.2:
	orl	$32768, %r14d                   ## imm = 0x8000
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, %r15
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_20
## %bb.3:
	movl	$-1, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	movslq	%eax, %rcx
	movl	%r12d, %eax
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %ecx
	cmpl	%r14d, %ecx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edx
	notl	%edx
	orl	%edx, %ecx
	movl	%ebx, %r12d
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_8:
	movq	_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_cdbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_9:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_ipath_cdbg
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_10:
	cmpl	$-1, %r12d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_20
## %bb.11:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_33
## %bb.12:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	andl	$32767, %eax                    ## imm = 0x7FFF
	cmpl	%ebx, %eax
	je	LBB0_34
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r14
	jge	LBB0_26
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	(%rdi,%r15), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rbx
	movq	16(%r13), %r13
	addq	%r15, %r13
	movq	%r13, %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jg	LBB0_36
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	callq	_atomic_dec
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_atomic_read
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ipath_cdbg
	incl	-72(%rbp)                       ## 4-byte Folded Spill
	movq	(%rbx), %rdi
	movl	(%rdi,%r15), %eax
	movq	%rbx, %r13
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	-72(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_20:
	movl	8(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_21:
	movl	%r14d, %edx
LBB0_22:
	callq	_ipath_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%r13d, %r13d
LBB0_24:
	subl	(%rax), %r13d
LBB0_25:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_33
## %bb.27:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_35
## %bb.28:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r14
	jge	LBB0_35
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	cmpl	$0, (%rdi,%r15)
	jne	LBB0_29
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	16(%r13), %rdi
	addq	%r15, %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	je	LBB0_37
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	(%r13), %rdi
	jmp	LBB0_29
LBB0_33:
	movl	8(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_21
LBB0_34:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_35:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_22
LBB0_36:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movslq	%r12d, %rcx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, (%rax,%rcx,4)
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	8(%rdx), %r15d
	movq	%r13, %rdi
	callq	_atomic_read
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r12d, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_ipath_cdbg
	jmp	LBB0_25
LBB0_37:
	movq	_ipath_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, (%rax,%r15)
	movq	(%r13), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, (%rax,%r15)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movslq	%r12d, %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rdx), %edx
	subq	$16, %rsp
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %r15
	xorl	%r13d, %r13d
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_ipath_cdbg
	addq	$16, %rsp
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_write_kreg
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_DEFAULT_P_KEY,4,2        ## @IPATH_DEFAULT_P_KEY
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p%u try to set pkey %hx, current keys %hx:%x %hx:%x %hx:%x %hx:%x\n"

	.comm	_PROC,4,2                       ## @PROC
L_.str.1:                               ## @.str.1
	.asciz	"p%u tries to set key 0, not allowed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"p%u tries to set same pkey (%x) more than once\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.3:                               ## @.str.3
	.asciz	"All pkeys for port %u already in use, can't set %x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.4:                               ## @.str.4
	.asciz	"p%u set key %x matches #%d, count now %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Lost race, count was 0, after dec, it's %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"port %u, all pkeys already in use, can't set %x\n"

	.comm	_ipath_stats,8,3                ## @ipath_stats
L_.str.7:                               ## @.str.7
	.asciz	"p%u set key %x in #%d, portidx %d, new pkey reg %llx\n"

L_.str.8:                               ## @.str.8
	.asciz	"port %u, all pkeys already in use 2nd pass, can't set %x\n"

	.no_dead_strip	_ipath_set_part_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_set_part_key
_ipath_set_part_key:                    ; @ipath_set_part_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	and	w28, w1, #0x7fff
Lloh0:
	adrp	x8, _IPATH_DEFAULT_P_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPATH_DEFAULT_P_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, #0x7fff
	cmp	w28, w8
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_23
LBB0_2:
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
	ldr	x20, [x0, #16]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x29, #-84]                 ; 4-byte Folded Spill
	ldr	w8, [x0, #8]
	str	w8, [sp, #88]                   ; 4-byte Folded Spill
	ldr	x8, [x20]
	ldr	x0, [x20, #16]
	ldr	w8, [x8]
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	bl	_atomic_read
	mov	x24, x0
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
	add	x0, x9, #4
	ldr	w27, [x8, #4]
	bl	_atomic_read
	mov	x25, x0
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
	add	x0, x9, #8
	ldr	w22, [x8, #8]
	bl	_atomic_read
	mov	x26, x0
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
	add	x0, x9, #12
	ldr	w23, [x8, #12]
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #56]
	stp	x22, x26, [sp, #40]
	stp	x27, x25, [sp, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x27, x28
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	stp	x8, x24, [sp, #8]
	str	x21, [sp]
	ldur	w0, [x29, #-84]                 ; 4-byte Folded Reload
	ldr	w2, [sp, #88]                   ; 4-byte Folded Reload
	bl	_ipath_cdbg
	cbz	w28, LBB0_17
; %bb.3:
	orr	w21, w21, #0x8000
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.4:
	mov	x22, #0
	mov	w25, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	w8, [x0, x22, lsl #2]
	cmp	w8, w21
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w25, #1
	ccmp	w8, #0, #0, eq
	csel	w25, w22, w25, eq
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
; %bb.7:
	cmn	w25, #1
	b.eq	LBB0_18
; %bb.8:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.9:
	mov	x28, #0
	mov	x26, #0
	mov	w22, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	and	w8, w8, #0x7fff
	cmp	w8, w27
	b.eq	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	add	x28, x28, #4
	cmp	x26, w0, sxtw
	b.ge	LBB0_24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x28]
	cbz	w8, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #16]
	add	x23, x8, x28
	mov	x0, x23
	bl	_atomic_inc_return
	cmp	w0, #1
	b.gt	LBB0_33
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_atomic_dec
Lloh8:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_atomic_read
	mov	x2, x0
	mov	x0, x24
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ipath_cdbg
	add	w22, w22, #1
	ldr	x0, [x20]
	ldr	w8, [x0, x28]
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	b	LBB0_11
LBB0_17:
Lloh13:
	adrp	x8, _PROC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PROC@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ipath_cdbg
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	ldr	w1, [x19, #8]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_19:
	mov	x2, x21
	bl	_ipath_dbg
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh24:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ipath_cdbg
LBB0_21:
Lloh29:
	adrp	x8, _EEXIST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_24:
	cbz	w22, LBB0_31
; %bb.25:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_32
; %bb.26:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #4
	cmp	x22, w0, sxtw
	b.ge	LBB0_32
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x23]
	cbnz	w8, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x23
	bl	_atomic_inc_return
	cmp	w0, #1
	b.eq	LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x0, [x20]
	b	LBB0_27
LBB0_31:
	ldr	w1, [x19, #8]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_32:
	ldr	w1, [x19, #8]
Lloh33:
	adrp	x0, l_.str.8@PAGE
Lloh34:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_19
LBB0_33:
	ldr	x8, [x19]
	str	w21, [x8, w25, sxtw #2]
Lloh35:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	ldr	w19, [x19, #8]
	mov	x0, x23
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x26, x0, [sp, #8]
	str	x21, [sp]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_ipath_cdbg
	b	LBB0_1
LBB0_34:
Lloh40:
	adrp	x8, _ipath_stats@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ipath_stats@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	w27, [x8, x23]
	ldr	x8, [x20]
	str	w21, [x8, x23]
	ldr	x8, [x19]
	str	w21, [x8, w25, sxtw #2]
Lloh43:
	adrp	x8, _PROC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PROC@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x22, x25, [sp, #8]
	str	x21, [sp]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_ipath_cdbg
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ipath_write_kreg
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_DEFAULT_P_KEY,4,2        ; @IPATH_DEFAULT_P_KEY
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p%u try to set pkey %hx, current keys %hx:%x %hx:%x %hx:%x %hx:%x\n"

	.comm	_PROC,4,2                       ; @PROC
l_.str.1:                               ; @.str.1
	.asciz	"p%u tries to set key 0, not allowed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"p%u tries to set same pkey (%x) more than once\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.3:                               ; @.str.3
	.asciz	"All pkeys for port %u already in use, can't set %x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.4:                               ; @.str.4
	.asciz	"p%u set key %x matches #%d, count now %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Lost race, count was 0, after dec, it's %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"port %u, all pkeys already in use, can't set %x\n"

	.comm	_ipath_stats,8,3                ; @ipath_stats
l_.str.7:                               ; @.str.7
	.asciz	"p%u set key %x in #%d, portidx %d, new pkey reg %llx\n"

l_.str.8:                               ; @.str.8
	.asciz	"port %u, all pkeys already in use 2nd pass, can't set %x\n"

	.no_dead_strip	_ipath_set_part_key
.subsections_via_symbols
