	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_server_read_hash_dumps   ## -- Begin function brain_server_read_hash_dumps
	.p2align	4, 0x90
_brain_server_read_hash_dumps:          ## @brain_server_read_hash_dumps
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, (%rdi)
	movq	%rsi, %rdi
	callq	_chdir
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	$19, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$98, (%rbx)
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$114, 1(%rbx)
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$97, 2(%rbx)
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$105, 3(%rbx)
	jne	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$110, 4(%rbx)
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$46, 5(%rbx)
	jne	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$46, 14(%rbx)
	jne	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$108, 15(%rbx)
	jne	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$100, 16(%rbx)
	jne	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$109, 17(%rbx)
	jne	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$112, 18(%rbx)
	jne	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	24(%rbx), %rdi
	callq	_hex_to_u32
	movl	%eax, %edi
	callq	_byte_swap_32
	movq	(%r14), %r12
	shlq	$2, %r12
	addq	8(%r14), %r12
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_brain_server_db_hash_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_brain_server_read_hash_dump
	testl	%eax, %eax
	je	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	(%r14)
	jmp	LBB0_4
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_brain_logging
	jmp	LBB0_20
LBB0_19:
	movq	%r15, %rdi
	callq	_closedir
	movl	$1, %r14d
LBB0_20:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_server_read_hash_dumps   ; -- Begin function brain_server_read_hash_dumps
	.p2align	2
_brain_server_read_hash_dumps:          ; @brain_server_read_hash_dumps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	str	xzr, [x0]
	mov	x0, x1
	bl	_chdir
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.1:
	mov	x0, x21
	bl	_opendir
	cbz	x0, LBB0_18
; %bb.2:
	mov	x20, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_strlen
	cmp	x0, #19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #98
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #114
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #2]
	cmp	w8, #97
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #3]
	cmp	w8, #105
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #4]
	cmp	w8, #110
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #5]
	cmp	w8, #46
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #14]
	cmp	w8, #46
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #15]
	cmp	w8, #108
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #16]
	cmp	w8, #100
	b.ne	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #17]
	cmp	w8, #109
	b.ne	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #18]
	cmp	w8, #112
	b.ne	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x21, #24
	bl	_hex_to_u32
	bl	_byte_swap_32
	mov	x1, x0
	ldp	x9, x8, [x19]
	add	x22, x8, x9, lsl #2
	mov	x0, x22
	bl	_brain_server_db_hash_init
	mov	x0, x22
	mov	x1, x21
	bl	_brain_server_read_hash_dump
	cbz	w0, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_3
LBB0_18:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_brain_logging
	mov	w0, #0
	b	LBB0_20
LBB0_19:
	mov	x0, x20
	bl	_closedir
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
