	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_server_write_hash_dumps  ## -- Begin function brain_server_write_hash_dumps
	.p2align	4, 0x90
_brain_server_write_hash_dumps:         ## @brain_server_write_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rdi, -168(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %r15
	leaq	(%r15,%r12), %rbx
	movl	4(%r15,%r14,8), %edi
	callq	_hc_thread_mutex_lock
	leaq	-160(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$100, %edx
	callq	_memset
	movl	(%r15,%r14,8), %r8d
	movq	%r13, %rdi
	movl	$100, %esi
	leaq	L_.str(%rip), %rdx
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_brain_server_write_hash_dump
	movl	4(%r15,%r14,8), %edi
	callq	_hc_thread_mutex_unlock
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	incq	%r14
	addq	$8, %r12
	cmpq	(%rdi), %r14
	jb	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	$1, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/brain.%08x.ldmp"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_server_write_hash_dumps  ; -- Begin function brain_server_write_hash_dumps
	.p2align	2
_brain_server_write_hash_dumps:         ; @brain_server_write_hash_dumps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	mov	x24, #0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x22, x8, x23
	ldr	w0, [x22, #4]
	bl	_hc_thread_mutex_lock
	add	x0, sp, #4
	mov	w1, #0
	mov	w2, #100
	bl	_memset
	ldr	w4, [x22]
	add	x0, sp, #4
	mov	w1, #100
	mov	x2, x21
	mov	x3, x19
	bl	_snprintf
	add	x1, sp, #4
	mov	x0, x22
	bl	_brain_server_write_hash_dump
	ldr	w0, [x22, #4]
	bl	_hc_thread_mutex_unlock
	add	x24, x24, #1
	ldr	x8, [x20]
	add	x23, x23, #8
	cmp	x24, x8
	b.lo	LBB0_2
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/brain.%08x.ldmp"

.subsections_via_symbols
