	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IntAddConsoleAlias
_IntAddConsoleAlias:                    ## @IntAddConsoleAlias
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%r8, %r8
	je	LBB0_5
## %bb.1:
	movq	%r9, %r12
	movq	%r8, %r13
	movl	%ecx, %ebx
	movl	%esi, %r15d
	movq	%r8, %rdi
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	callq	_wcslen
	jmp	LBB0_4
LBB0_3:
	callq	_strlen
LBB0_4:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	callq	_NtCurrentPeb
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%r15d, -112(%rbp)
	leal	(,%r14,4), %eax
	movl	%eax, -108(%rbp)
	movq	%r12, -80(%rbp)
	movq	%r12, -72(%rbp)
	xorl	%edi, %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	sete	%dil
	movl	$0, %eax
	cmovel	%eax, %ebx
	xorl	$3, %edi
	movl	%ebx, -104(%rbp)
	leal	(%r15,%r14,4), %esi
	addl	%ebx, %esi
	callq	_CsrAllocateCaptureBuffer
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	leaq	-84(%rbp), %rcx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_CsrCaptureMessageBuffer
	movl	-108(%rbp), %edx
	leaq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_CsrCaptureMessageBuffer
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movl	-104(%rbp), %edx
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_CsrCaptureMessageBuffer
	jmp	LBB0_12
LBB0_5:
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_15:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT1
	movq	_ERROR_NOT_ENOUGH_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	$0, -96(%rbp)
LBB0_12:
	leaq	-120(%rbp), %r14
	movq	_CONSRV_SERVERDLL_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ConsolepAddAlias@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CSR_CREATE_API_NUMBER
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$56, %ecx
	callq	_CsrClientCallServer
	movq	%rbx, %rdi
	callq	_CsrFreeCaptureBuffer
	movl	-120(%rbp), %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movl	-120(%rbp), %edi
	callq	_BaseSetLastNTError
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INVALID_PARAMETER,4,2    ## @ERROR_INVALID_PARAMETER
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CsrAllocateCaptureBuffer failed!\n"

	.comm	_ERROR_NOT_ENOUGH_MEMORY,4,2    ## @ERROR_NOT_ENOUGH_MEMORY
	.comm	_CONSRV_SERVERDLL_INDEX,4,2     ## @CONSRV_SERVERDLL_INDEX
	.comm	_ConsolepAddAlias,4,2           ## @ConsolepAddAlias
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_IntAddConsoleAlias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IntAddConsoleAlias
_IntAddConsoleAlias:                    ; @IntAddConsoleAlias
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	cbz	x4, LBB0_7
; %bb.1:
	mov	x24, x5
	mov	x20, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x4
	cbz	x5, LBB0_6
; %bb.2:
	bl	_wcslen
	mov	x25, x0
	cbz	w0, LBB0_7
LBB0_3:
	bl	_NtCurrentPeb
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [sp, #56]
	lsl	w8, w25, #2
	stp	w21, w8, [sp, #8]
	stp	x24, x24, [sp, #40]
	cmp	x19, #0
	csel	w9, wzr, w22, eq
	mov	w10, #2
	cinc	w0, w10, ne
	str	w9, [sp, #16]
	add	w8, w8, w21
	add	w1, w8, w9
	bl	_CsrAllocateCaptureBuffer
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	mov	x24, sp
	add	x3, x24, #36
	mov	x1, x23
	mov	x2, x21
	bl	_CsrCaptureMessageBuffer
	ldr	w2, [sp, #12]
	add	x3, x24, #32
	mov	x0, x22
	mov	x1, x20
	bl	_CsrCaptureMessageBuffer
	cbz	x19, LBB0_12
; %bb.5:
	ldr	w2, [sp, #16]
	add	x3, x24, #24
	mov	x0, x22
	mov	x1, x19
	bl	_CsrCaptureMessageBuffer
	b	LBB0_13
LBB0_6:
	bl	_strlen
	mov	x25, x0
	cbnz	w0, LBB0_3
LBB0_7:
Lloh0:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_9:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT1
Lloh6:
	adrp	x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
	str	xzr, [sp, #24]
LBB0_13:
Lloh8:
	adrp	x8, _CONSRV_SERVERDLL_INDEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONSRV_SERVERDLL_INDEX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ConsolepAddAlias@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ConsolepAddAlias@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_CSR_CREATE_API_NUMBER
	mov	x2, x0
	mov	x0, sp
	mov	x1, x22
	mov	w3, #56
	bl	_CsrClientCallServer
	mov	x0, x22
	bl	_CsrFreeCaptureBuffer
	ldr	w0, [sp]
	bl	_NT_SUCCESS
	cbz	w0, LBB0_15
; %bb.14:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_15:
	ldr	w0, [sp]
	bl	_BaseSetLastNTError
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INVALID_PARAMETER,4,2    ; @ERROR_INVALID_PARAMETER
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CsrAllocateCaptureBuffer failed!\n"

	.comm	_ERROR_NOT_ENOUGH_MEMORY,4,2    ; @ERROR_NOT_ENOUGH_MEMORY
	.comm	_CONSRV_SERVERDLL_INDEX,4,2     ; @CONSRV_SERVERDLL_INDEX
	.comm	_ConsolepAddAlias,4,2           ; @ConsolepAddAlias
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_IntAddConsoleAlias
.subsections_via_symbols
