	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_init
_nlm_init:                              ## @nlm_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_nlm_global_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_nlm_waiting_locks@GOTPCREL(%rip), %rdi
	callq	_TAILQ_INIT
	movq	_nlm_hosts@GOTPCREL(%rip), %rdi
	callq	_TAILQ_INIT
	movq	_nlm_syscalls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SY_THR_STATIC_KLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_syscall_helper_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_NLM_ERR
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nlm_global_lock,4,2            ## @nlm_global_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlm_global_lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_nlm_waiting_locks,4,2          ## @nlm_waiting_locks
	.comm	_nlm_hosts,4,2                  ## @nlm_hosts
	.comm	_nlm_syscalls,4,2               ## @nlm_syscalls
	.comm	_SY_THR_STATIC_KLD,4,2          ## @SY_THR_STATIC_KLD
L_.str.1:                               ## @.str.1
	.asciz	"Can't register NLM syscall\n"

	.no_dead_strip	_nlm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_init
_nlm_init:                              ; @nlm_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _nlm_global_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nlm_global_lock@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh7:
	adrp	x0, _nlm_waiting_locks@GOTPAGE
Lloh8:
	ldr	x0, [x0, _nlm_waiting_locks@GOTPAGEOFF]
	bl	_TAILQ_INIT
Lloh9:
	adrp	x0, _nlm_hosts@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nlm_hosts@GOTPAGEOFF]
	bl	_TAILQ_INIT
Lloh11:
	adrp	x8, _nlm_syscalls@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nlm_syscalls@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SY_THR_STATIC_KLD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SY_THR_STATIC_KLD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_syscall_helper_register
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NLM_ERR
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_nlm_global_lock,4,2            ; @nlm_global_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlm_global_lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_nlm_waiting_locks,4,2          ; @nlm_waiting_locks
	.comm	_nlm_hosts,4,2                  ; @nlm_hosts
	.comm	_nlm_syscalls,4,2               ; @nlm_syscalls
	.comm	_SY_THR_STATIC_KLD,4,2          ; @SY_THR_STATIC_KLD
l_.str.1:                               ; @.str.1
	.asciz	"Can't register NLM syscall\n"

	.no_dead_strip	_nlm_init
.subsections_via_symbols
