	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_clean_part_key
_ipath_clean_part_key:                  ## @ipath_clean_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	callq	_atomic_dec_and_test
	movq	_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%rbx), %edx
	movq	(%rbx), %rcx
	movslq	(%rcx,%r12,4), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_ipath_cdbg
	movq	(%r14), %rax
	movl	$0, (%rax,%r15)
	movq	_ipath_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax,%r15)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	movl	$0, (%rdi,%r12,4)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%rbx), %rdi
	movslq	(%rdi,%r12,4), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_ipath_cdbg
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdi
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	xorl	(%rdi,%r15), %eax
	testl	$32767, %eax                    ## imm = 0x7FFF
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_5
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	16(%r14), %r15
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%edx, %r15d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_atomic_read
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_ipath_cdbg
	jmp	LBB0_10
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.14:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_ipath_cdbg
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipath_write_kreg               ## TAILCALL
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"look for key[%d] %hx in pkeys\n"

L_.str.1:                               ## @.str.1
	.asciz	"p%u clear key %x matches #%d\n"

	.comm	_ipath_stats,8,3                ## @ipath_stats
L_.str.2:                               ## @.str.2
	.asciz	"p%u key %x matches #%d, but ref still %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"p%u old pkey reg %llx, new pkey reg %llx\n"

	.no_dead_strip	_ipath_clean_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_clean_part_key
_ipath_clean_part_key:                  ; @ipath_clean_part_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x21, #0
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x23, _VERBOSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VERBOSE@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x24
	bl	_atomic_dec_and_test
	ldr	w27, [x23]
	ldr	w25, [x20, #8]
	ldr	x8, [x20]
	ldrsw	x26, [x8, x21, lsl #2]
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_6 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	str	x28, [sp]
	mov	x0, x27
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_ipath_cdbg
	ldr	x8, [x19]
	str	wzr, [x8, x24]
Lloh6:
	adrp	x8, _ipath_stats@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ipath_stats@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	wzr, [x8, x24]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	str	wzr, [x0, x21, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x0, [x20]
	ldrsw	x3, [x0, x21, lsl #2]
	cbz	w3, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23]
	mov	x1, x22
	mov	x2, x21
	bl	_ipath_cdbg
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, #0
	mov	x28, #0
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19]
	ldr	w8, [x0, x24]
	ldr	x9, [x20]
	ldr	w9, [x9, x21, lsl #2]
	eor	w8, w9, w8
	tst	w8, #0x7fff
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x28, x28, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #4
	cmp	x28, w0, sxtw
	b.lt	LBB0_9
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x24
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	stp	x28, x0, [sp]
	mov	x0, x27
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_ipath_cdbg
	b	LBB0_4
LBB0_12:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_14
; %bb.13:
	ldr	w0, [x23]
	ldr	w2, [x20, #8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ipath_cdbg
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ipath_write_kreg
LBB0_14:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"look for key[%d] %hx in pkeys\n"

l_.str.1:                               ; @.str.1
	.asciz	"p%u clear key %x matches #%d\n"

	.comm	_ipath_stats,8,3                ; @ipath_stats
l_.str.2:                               ; @.str.2
	.asciz	"p%u key %x matches #%d, but ref still %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"p%u old pkey reg %llx, new pkey reg %llx\n"

	.no_dead_strip	_ipath_clean_part_key
.subsections_via_symbols
