	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IntSetConsoleNumberOfCommands
_IntSetConsoleNumberOfCommands:         ## @IntSetConsoleNumberOfCommands
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	%rsi, %rdi
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	callq	_wcslen
	jmp	LBB0_4
LBB0_3:
	callq	_strlen
LBB0_4:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	callq	_NtCurrentPeb
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%r12d, -40(%rbp)
	shll	$2, %ebx
	movl	%ebx, -64(%rbp)
	movq	%r15, -56(%rbp)
	movq	%r15, -48(%rbp)
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_CsrAllocateCaptureBuffer
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r15d
	leaq	-72(%rbp), %r12
	leal	12(%r12), %ecx
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_CsrCaptureMessageBuffer
	movq	_CONSRV_SERVERDLL_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ConsolepSetNumberOfCommands@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CSR_CREATE_API_NUMBER
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$32, %ecx
	callq	_CsrClientCallServer
	movl	%r15d, %edi
	callq	_CsrFreeCaptureBuffer
	movl	-72(%rbp), %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	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:
	movl	-72(%rbp), %edi
	callq	_BaseSetLastNTError
	jmp	LBB0_12
	.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	_ConsolepSetNumberOfCommands,4,2 ## @ConsolepSetNumberOfCommands
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_IntSetConsoleNumberOfCommands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IntSetConsoleNumberOfCommands
_IntSetConsoleNumberOfCommands:         ; @IntSetConsoleNumberOfCommands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	cbz	x2, LBB0_6
; %bb.2:
	bl	_wcslen
	mov	x22, x0
	cbz	w0, LBB0_7
LBB0_3:
	bl	_NtCurrentPeb
	ldr	x8, [x0]
	ldr	w8, [x8]
	stp	w21, w8, [sp, #40]
	lsl	w21, w22, #2
	str	w21, [sp, #16]
	stp	x20, x20, [sp, #24]
	mov	w0, #1
	mov	x1, x21
	bl	_CsrAllocateCaptureBuffer
	cbz	w0, LBB0_11
; %bb.4:
	mov	x20, x0
	add	x8, sp, #8
	add	w3, w8, #12
	mov	x1, x19
	mov	x2, x21
	bl	_CsrCaptureMessageBuffer
Lloh0:
	adrp	x8, _CONSRV_SERVERDLL_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONSRV_SERVERDLL_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ConsolepSetNumberOfCommands@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ConsolepSetNumberOfCommands@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_CSR_CREATE_API_NUMBER
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	w3, #32
	bl	_CsrClientCallServer
	mov	x0, x20
	bl	_CsrFreeCaptureBuffer
	ldr	w0, [sp, #8]
	bl	_NT_SUCCESS
	cbz	w0, LBB0_12
; %bb.5:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	bl	_strlen
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_7:
Lloh8:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_9:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT1
Lloh14:
	adrp	x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
	ldr	w0, [sp, #8]
	bl	_BaseSetLastNTError
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.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	_ConsolepSetNumberOfCommands,4,2 ; @ConsolepSetNumberOfCommands
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_IntSetConsoleNumberOfCommands
.subsections_via_symbols
