	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_plugin_find              ## -- Begin function _krb5_plugin_find
	.p2align	4, 0x90
__krb5_plugin_find:                     ## @_krb5_plugin_find
	.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
	movq	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	movq	$0, (%rcx)
	movq	_plugin_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movl	%r14d, %edi
	callq	_load_plugins
	movq	_registered@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %edi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	__krb5_plugin_free
	movq	$0, (%r13)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r12), %r12
	testq	%r12, %r12
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	callq	_dlsym
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%rax, %rdx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r12)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rdx
	movl	%r14d, %edi
	movq	%r13, %rsi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_add_symbol
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_15:
	movq	_plugin_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	testq	%rbx, %rbx
	jne	LBB0_19
## %bb.16:
	cmpq	$0, (%r13)
	je	LBB0_18
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_20:
	movq	_plugin_mutex@GOTPCREL(%rip), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	cmpq	$0, (%r13)
	jne	LBB0_17
LBB0_18:
	movq	_ENOENT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movq	%r15, %rcx
	callq	_krb5_set_error_message
	movq	(%rbx), %rbx
LBB0_19:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_plugin_mutex,4,2               ## @plugin_mutex
	.comm	_registered,8,3                 ## @registered
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Did not find a plugin for %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_plugin_find              ; -- Begin function _krb5_plugin_find
	.p2align	2
__krb5_plugin_find:                     ; @_krb5_plugin_find
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [x3]
Lloh0:
	adrp	x0, _plugin_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _plugin_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_lock
	mov	x0, x20
	bl	_load_plugins
Lloh2:
	adrp	x8, _registered@GOTPAGE
Lloh3:
	ldr	x8, [x8, _registered@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	cbz	x24, LBB0_17
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x24, #40]
	cbz	x24, LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24, #32]
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	bl	_dlsym
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #24]
	mov	x1, x19
	bl	_strcmp
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24, #8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x24, #16]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_add_symbol
	mov	x23, x0
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	bl	__krb5_plugin_free
	str	xzr, [x21]
	b	LBB0_2
LBB0_14:
Lloh5:
	adrp	x0, _plugin_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _plugin_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_unlock
	cbnz	x23, LBB0_19
; %bb.15:
	ldr	x8, [x21]
	cbz	x8, LBB0_18
LBB0_16:
	mov	x23, #0
	b	LBB0_19
LBB0_17:
Lloh7:
	adrp	x0, _plugin_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _plugin_mutex@GOTPAGEOFF]
	bl	_HEIMDAL_MUTEX_unlock
	ldr	x8, [x21]
	cbnz	x8, LBB0_16
LBB0_18:
Lloh9:
	adrp	x21, _ENOENT@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ENOENT@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_krb5_set_error_message
	ldr	x23, [x21]
LBB0_19:
	mov	x0, x23
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_plugin_mutex,4,2               ; @plugin_mutex
	.comm	_registered,8,3                 ; @registered
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Did not find a plugin for %s"

.subsections_via_symbols
