	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_set_creds_for_lock
_nlm_set_creds_for_lock:                ## @nlm_set_creds_for_lock
	.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	%rdi, %r14
	movq	(%rsi), %rdi
	movq	_PID_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jle	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_NLM_SVID_HASH_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	movq	_nlm_file_svids@GOTPCREL(%rip), %r14
	movq	_ns_link@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rdi
	callq	_crhold
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leaq	(,%r13,4), %rdi
	addq	(%r14), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_LIST_NEXT
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_10:
	callq	_pfind
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %r15
	movq	(%rax), %rdi
	callq	_crhold
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_PROC_UNLOCK
	testq	%rbx, %rbx
	jne	LBB0_14
	jmp	LBB0_13
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_9:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_14
LBB0_13:
	movq	(%r14), %rdi
	callq	_crhold
	movq	%rax, %rbx
LBB0_14:
	movq	%rbx, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PID_MAX,8,3                    ## @PID_MAX
	.comm	_nlm_svid_lock,4,2              ## @nlm_svid_lock
	.comm	_NLM_SVID_HASH_SIZE,4,2         ## @NLM_SVID_HASH_SIZE
	.comm	_nlm_file_svids,8,3             ## @nlm_file_svids
	.comm	_ns_link,4,2                    ## @ns_link
	.no_dead_strip	_nlm_set_creds_for_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_set_creds_for_lock
_nlm_set_creds_for_lock:                ; @nlm_set_creds_for_lock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _PID_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PID_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_8
; %bb.1:
	mov	x21, x1
Lloh3:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh5:
	adrp	x22, _NLM_SVID_HASH_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NLM_SVID_HASH_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x23, #0
	mov	x20, #0
Lloh7:
	adrp	x24, _nlm_file_svids@GOTPAGE
Lloh8:
	ldr	x24, [x24, _nlm_file_svids@GOTPAGEOFF]
Lloh9:
	adrp	x25, _ns_link@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ns_link@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x0, #8]
	bl	_crhold
	mov	x20, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x24]
	add	x0, x8, x23, lsl #2
	bl	_LIST_FIRST
	cbz	x0, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w1, [x25]
	bl	_LIST_NEXT
	cbnz	x0, LBB0_6
	b	LBB0_4
LBB0_8:
	bl	_pfind
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, x0
	ldr	x0, [x0]
	bl	_crhold
	mov	x20, x0
	mov	x0, x21
	bl	_PROC_UNLOCK
	cbnz	x20, LBB0_13
	b	LBB0_12
LBB0_10:
	mov	x20, #0
LBB0_11:
Lloh11:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	cbnz	x20, LBB0_13
LBB0_12:
	ldr	x0, [x19]
	bl	_crhold
	mov	x20, x0
LBB0_13:
	str	x20, [x19]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PID_MAX,8,3                    ; @PID_MAX
	.comm	_nlm_svid_lock,4,2              ; @nlm_svid_lock
	.comm	_NLM_SVID_HASH_SIZE,4,2         ; @NLM_SVID_HASH_SIZE
	.comm	_nlm_file_svids,8,3             ; @nlm_file_svids
	.comm	_ns_link,4,2                    ; @ns_link
	.no_dead_strip	_nlm_set_creds_for_lock
.subsections_via_symbols
