	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_init
_reg_init:                              ## @reg_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	_reg_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_users@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.1:
	movq	_USER_LIST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_MAX_USERID@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.4:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, 8(%rax,%rsi,8)
	movq	(%rcx), %rdx
	incq	%rsi
	cmpq	%rdx, %rsi
	jb	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%edx, %edx
LBB0_6:
	movq	_next_free_user@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
LBB0_7:
	movq	_reg_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpq	$0, (%rbx)
	cmovnel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_lock,4,2                   ## @reg_lock
	.comm	_users,8,3                      ## @users
	.comm	_USER_LIST_SIZE,4,2             ## @USER_LIST_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MAX_USERID,8,3                 ## @MAX_USERID
	.comm	_next_free_user,8,3             ## @next_free_user
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_reg_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_init
_reg_init:                              ; @reg_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	x0, _reg_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _reg_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh2:
	adrp	x19, _users@GOTPAGE
Lloh3:
	ldr	x19, [x19, _users@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.1:
Lloh4:
	adrp	x8, _USER_LIST_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USER_LIST_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.2:
Lloh10:
	adrp	x8, _MAX_USERID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_USERID@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_5
; %bb.3:
	mov	x9, #0
	add	x10, x0, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x9, [x10, x9, lsl #3]
	ldr	x11, [x8]
	add	x9, x9, #1
	cmp	x9, x11
	b.lo	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x11, #0
LBB0_6:
Lloh12:
	adrp	x8, _next_free_user@GOTPAGE
Lloh13:
	ldr	x8, [x8, _next_free_user@GOTPAGEOFF]
Lloh14:
	str	x11, [x8]
LBB0_7:
Lloh15:
	adrp	x0, _reg_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _reg_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w0, wzr, w9, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_lock,4,2                   ; @reg_lock
	.comm	_users,8,3                      ; @users
	.comm	_USER_LIST_SIZE,4,2             ; @USER_LIST_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MAX_USERID,8,3                 ; @MAX_USERID
	.comm	_next_free_user,8,3             ; @next_free_user
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_reg_init
.subsections_via_symbols
