	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_client_reserve           ## -- Begin function brain_client_reserve
	.p2align	4, 0x90
_brain_client_reserve:                  ## @brain_client_reserve
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)
	movl	%ecx, -48(%rbp)
	movl	(%rdi), %r13d
	cmpl	$-1, %r13d
	je	LBB0_6
## %bb.1:
	movq	%r8, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_BRAIN_OPERATION_ATTACK_RESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SEND_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rsi
	movl	%r13d, %edi
	movl	$4, %edx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_brain_send
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	leaq	-52(%rbp), %rsi
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_brain_send
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	leaq	-48(%rbp), %rsi
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_brain_send
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_brain_recv
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRAIN_OPERATION_ATTACK_RESERVE,4,2 ## @BRAIN_OPERATION_ATTACK_RESERVE
	.comm	_SEND_FLAGS,4,2                 ## @SEND_FLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_client_reserve           ; -- Begin function brain_client_reserve
	.p2align	2
_brain_client_reserve:                  ; @brain_client_reserve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	stp	w3, w2, [sp, #8]
	ldr	w22, [x0]
	cmn	w22, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x4
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BRAIN_OPERATION_ATTACK_RESERVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRAIN_OPERATION_ATTACK_RESERVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #4]
Lloh3:
	adrp	x8, _SEND_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEND_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #4
	mov	x0, x22
	mov	w2, #4
	mov	x4, x21
	mov	x5, x19
	bl	_brain_send
	cbz	w0, LBB0_6
; %bb.2:
	add	x1, sp, #12
	mov	x0, x22
	mov	w2, #4
	mov	w3, #0
	mov	x4, x21
	mov	x5, x19
	bl	_brain_send
	cbz	w0, LBB0_6
; %bb.3:
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #4
	mov	w3, #0
	mov	x4, x21
	mov	x5, x19
	bl	_brain_send
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	mov	w2, #4
	mov	w3, #0
	mov	x4, x21
	mov	x5, x19
	bl	_brain_recv
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRAIN_OPERATION_ATTACK_RESERVE,4,2 ; @BRAIN_OPERATION_ATTACK_RESERVE
	.comm	_SEND_FLAGS,4,2                 ; @SEND_FLAGS
.subsections_via_symbols
