	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RtlpCreateAtomHandle           ## -- Begin function RtlpCreateAtomHandle
	.p2align	4, 0x90
_RtlpCreateAtomHandle:                  ## @RtlpCreateAtomHandle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rsi
	callq	_RtlAllocateHandle
	movq	_FALSE@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movslq	-28(%rbp), %rcx
	cmpq	$49151, %rcx                    ## imm = 0xBFFF
	jg	LBB0_3
## %bb.2:
	movq	%rcx, 8(%r14)
	addq	$49152, %rcx                    ## imm = 0xC000
	movq	%rcx, (%r14)
	movq	%r14, 8(%rax)
	movq	_RTL_HANDLE_VALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_3:
	movq	_RTL_HANDLE_VALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_RtlFreeHandle
LBB0_4:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_HANDLE_VALID,8,3           ## @RTL_HANDLE_VALID
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RtlpCreateAtomHandle           ; -- Begin function RtlpCreateAtomHandle
	.p2align	2
_RtlpCreateAtomHandle:                  ; @RtlpCreateAtomHandle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_RtlAllocateHandle
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x0
	ldrsw	x8, [sp, #12]
	cmp	w8, #12, lsl #12                ; =49152
	b.ge	LBB0_3
; %bb.2:
	add	x9, x8, #12, lsl #12            ; =49152
Lloh0:
	adrp	x10, _RTL_HANDLE_VALID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RTL_HANDLE_VALID@GOTPAGEOFF]
	stp	x9, x8, [x19]
Lloh2:
	ldr	x8, [x10]
	stp	x8, x19, [x1]
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _RTL_HANDLE_VALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL_HANDLE_VALID@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x1]
	mov	x0, x20
	bl	_RtlFreeHandle
LBB0_4:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_HANDLE_VALID,8,3           ; @RTL_HANDLE_VALID
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
