	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_client_lookup            ## -- Begin function brain_client_lookup
	.p2align	4, 0x90
_brain_client_lookup:                   ## @brain_client_lookup
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	4(%rdi), %r15d
	cmpl	$-1, %r15d
	je	LBB0_3
## %bb.4:
	movq	%rsi, %r14
	movq	16(%rbx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	movq	_BRAIN_HASH_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, -48(%rbp)
	movq	_BRAIN_OPERATION_HASH_LOOKUP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)
	movq	_SEND_FLAGS@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%r13d, %r13d
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	movl	%r15d, %edi
	movq	%rbx, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_brain_send
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	(%r12), %ecx
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	movl	%r15d, %edi
	movq	%rbx, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_brain_send
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	-48(%rbp), %edx
	movl	(%r12), %ecx
	xorl	%r13d, %r13d
	movl	%r15d, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_brain_send
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	xorl	%r13d, %r13d
	leaq	-52(%rbp), %rsi
	movl	$4, %edx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_brain_recv
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movslq	-52(%rbp), %rdx
	cmpl	8(%rbx), %edx
	jg	LBB0_10
## %bb.9:
	movl	%r15d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_brain_recv
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	jmp	LBB0_10
LBB0_1:
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_3:
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRAIN_HASH_SIZE,4,2            ## @BRAIN_HASH_SIZE
	.comm	_BRAIN_OPERATION_HASH_LOOKUP,1,0 ## @BRAIN_OPERATION_HASH_LOOKUP
	.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_lookup            ; -- Begin function brain_client_lookup
	.p2align	2
_brain_client_lookup:                   ; @brain_client_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w19, [x0, #4]
	cmn	w19, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x21, x1
	ldp	x23, x22, [x20, #16]
	stur	wzr, [x29, #-52]
Lloh0:
	adrp	x9, _BRAIN_HASH_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRAIN_HASH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh3:
	adrp	x9, _BRAIN_OPERATION_HASH_LOOKUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRAIN_OPERATION_HASH_LOOKUP@GOTPAGEOFF]
	str	w8, [sp, #56]
	ldrb	w8, [x9]
	strb	w8, [sp, #55]
Lloh5:
	adrp	x24, _SEND_FLAGS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SEND_FLAGS@GOTPAGEOFF]
	ldr	w10, [x24]
	stp	x20, x1, [sp, #24]
	mov	w8, #1
	add	x9, sp, #55
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	bl	_brain_send
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w10, [x24]
	stp	x20, x21, [sp, #24]
	mov	w8, #4
	add	x9, sp, #56
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	bl	_brain_send
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w8, [sp, #56]
	ldr	w9, [x24]
	stp	x20, x21, [sp, #24]
	stp	x8, x9, [sp, #8]
	str	x23, [sp]
	mov	x0, x19
	bl	_brain_send
	cbz	w0, LBB0_9
; %bb.5:
	stp	x20, x21, [sp, #24]
	mov	w8, #4
	sub	x9, x29, #52
	stp	x8, xzr, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	bl	_brain_recv
	cbz	w0, LBB0_9
; %bb.6:
	ldursw	x8, [x29, #-52]
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.le	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	stp	x20, x21, [sp, #24]
	stp	x8, xzr, [sp, #8]
	str	x22, [sp]
	mov	x0, x19
	bl	_brain_recv
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRAIN_HASH_SIZE,4,2            ; @BRAIN_HASH_SIZE
	.comm	_BRAIN_OPERATION_HASH_LOOKUP,1,0 ; @BRAIN_OPERATION_HASH_LOOKUP
	.comm	_SEND_FLAGS,4,2                 ; @SEND_FLAGS
.subsections_via_symbols
