	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_place_f
_get_place_f:                           ## @get_place_f
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NOTIFY_MODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
	movq	_COMM_MODE@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, %r15d
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	leaq	L_.str(%rip), %rsi
	movl	$5, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_vkprintf
	imull	$17239, %r15d, %ecx             ## imm = 0x4357
	imull	$239, %r14d, %eax
	addl	%ecx, %eax
	addl	%r12d, %eax
	movq	_PLACES_HASH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %r13d
	movq	_Place@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	(%rax,%r13,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	leaq	(%rax,%r13,8), %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	movq	32(%rbx), %rcx
	addq	$32, %rax
	movq	%rcx, %rbx
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rbx)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, 4(%rbx)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, 8(%rbx)
	jne	LBB0_8
## %bb.5:
	movq	32(%rbx), %rcx
	movq	%rcx, (%rax)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_7
## %bb.6:
	movq	(%rdx), %rax
	movq	(%rax,%r13,8), %rcx
	movq	%rcx, 32(%rbx)
	movq	%rbx, (%rax,%r13,8)
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_14
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.11:
	movl	$40, %edi
	movq	_COMM_MODE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	_NOTIFY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	movl	$4, %edi
LBB0_13:
	callq	_zmalloc0
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_vkprintf
	movl	%r15d, 8(%rbx)
	movl	%r14d, 4(%rbx)
	movl	%r12d, (%rbx)
	movq	_Place@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rcx
	movq	%rcx, 32(%rbx)
	movq	%rbx, 16(%rbx)
	movq	%rbx, 24(%rbx)
	movq	%rbx, (%rax,%r13,8)
	movq	_tot_places@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$5, %edi
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOTIFY_MODE,4,2                ## @NOTIFY_MODE
	.comm	_COMM_MODE,8,3                  ## @COMM_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_place_f: type = %d, owner = %d, place = %d, force = %d\n"

	.comm	_PLACES_HASH,4,2                ## @PLACES_HASH
	.comm	_Place,8,3                      ## @Place
L_.str.1:                               ## @.str.1
	.asciz	"get_place_f: result = %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"get_place_f: nothing found\n"

L_.str.3:                               ## @.str.3
	.asciz	"Creating new place: type = %d, owner = %d, place = %d: p = %p\n"

	.comm	_tot_places,4,2                 ## @tot_places
	.no_dead_strip	_get_place_f
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_place_f
_get_place_f:                           ; @get_place_f
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _NOTIFY_MODE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NOTIFY_MODE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #0
Lloh2:
	adrp	x27, _COMM_MODE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _COMM_MODE@GOTPAGEOFF]
	ldr	x8, [x27]
	ccmp	x8, #0, #0, eq
	cset	w0, ne
	bl	_assert
	mov	x8, x19
	stp	x8, x23, [sp, #16]
	mov	x8, x20
	mov	x9, x21
	stp	x9, x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #5
	bl	_vkprintf
	mov	w8, #17239
	mul	w8, w21, w8
	mov	w9, #239
	madd	w8, w20, w9, w8
	add	w8, w8, w19
Lloh6:
	adrp	x9, _PLACES_HASH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PLACES_HASH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w24, w10, w9, w8
Lloh9:
	adrp	x25, _Place@GOTPAGE
Lloh10:
	ldr	x25, [x25, _Place@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x8, x8, w24, uxtw #3
	ldr	x22, [x8]
	cbnz	x22, LBB0_5
LBB0_1:
	cmp	w23, #0
	b.le	LBB0_11
; %bb.2:
	ldr	x8, [x27]
	cbz	x8, LBB0_12
; %bb.3:
	mov	w0, #40
	b	LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #32]!
	mov	x8, x22
	mov	x22, x9
	cbz	x9, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	cmp	w9, w19
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #4]
	cmp	w9, w20
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #8]
	cmp	w9, w21
	b.ne	LBB0_4
; %bb.8:
	ldr	x9, [x22, #32]
	str	x9, [x8]
	tbnz	w23, #31, LBB0_10
; %bb.9:
	ldr	x8, [x25]
	lsl	x9, x24, #3
	ldr	x10, [x8, x9]
	str	x10, [x22, #32]
	str	x22, [x8, x9]
LBB0_10:
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #5
	bl	_vkprintf
	b	LBB0_14
LBB0_11:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #5
	bl	_vkprintf
	mov	x22, #0
	b	LBB0_14
LBB0_12:
	ldr	w0, [x26]
	bl	_assert
	mov	w0, #4
LBB0_13:
	bl	_zmalloc0
	mov	x22, x0
	stp	x19, x0, [sp, #16]
	stp	x21, x20, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	str	w21, [x22, #8]
	ldr	x8, [x25]
	lsl	x9, x24, #3
	ldr	x10, [x8, x9]
	stp	x22, x10, [x22, #24]
	str	x22, [x22, #16]
	str	x22, [x8, x9]
	stp	w19, w20, [x22]
Lloh17:
	adrp	x8, _tot_places@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tot_places@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_14:
	mov	x0, x22
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NOTIFY_MODE,4,2                ; @NOTIFY_MODE
	.comm	_COMM_MODE,8,3                  ; @COMM_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_place_f: type = %d, owner = %d, place = %d, force = %d\n"

	.comm	_PLACES_HASH,4,2                ; @PLACES_HASH
	.comm	_Place,8,3                      ; @Place
l_.str.1:                               ; @.str.1
	.asciz	"get_place_f: result = %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"get_place_f: nothing found\n"

l_.str.3:                               ; @.str.3
	.asciz	"Creating new place: type = %d, owner = %d, place = %d: p = %p\n"

	.comm	_tot_places,4,2                 ; @tot_places
	.no_dead_strip	_get_place_f
.subsections_via_symbols
