	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_data_by_module
_allocate_data_by_module:               ## @allocate_data_by_module
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_get_max_choices
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_module_to_head
	movq	_dash@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%r12, %rdx
	shlq	$4, %rdx
	leaq	(%rdx,%rdx,2), %r13
	movl	%eax, 40(%rcx,%r13)
	movq	%r12, %rdi
	callq	_module_to_desc
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 36(%rdx,%r13)
	movq	_holder@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_gscroll@GOTPCREL(%rip), %r14
	cmpq	%r12, (%r14)
	cmovnel	%r15d, %ebx
	movq	8(%r14), %rax
	testq	%rax, %rax
	cmovel	%r15d, %ebx
	movl	(%rsi,%r12,8), %edi
	cmpl	%edi, %ebx
	cmovgel	%edi, %ebx
	movl	%ebx, (%rdx,%r13)
	movl	4(%rsi,%r12,8), %esi
	movl	%esi, 32(%rdx,%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdx,%r13)
	movq	_DASH_COLLAPSED@GOTPCREL(%rip), %rsi
	movq	%rsi, %rdi
	cmpq	%r12, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_DASH_EXPANDED@GOTPCREL(%rip), %rdi
LBB0_2:
	testq	%rax, %rax
	cmovneq	%rdi, %rsi
	leaq	(,%r12,8), %rbx
	movq	(%rsi), %rax
	movq	%rax, 8(%rdx,%r13)
	addl	%eax, 8(%rcx)
	movq	_gdns_thread@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	_holder@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_dash@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_load_data_to_dash
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dash,8,3                       ## @dash
	.comm	_holder,8,3                     ## @holder
	.comm	_gscroll,16,3                   ## @gscroll
	.comm	_DASH_EXPANDED,8,3              ## @DASH_EXPANDED
	.comm	_DASH_COLLAPSED,8,3             ## @DASH_COLLAPSED
	.comm	_gdns_thread,4,2                ## @gdns_thread
	.no_dead_strip	_allocate_data_by_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_data_by_module
_allocate_data_by_module:               ; @allocate_data_by_module
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_get_max_choices
	mov	x21, x0
	mov	x0, x19
	bl	_module_to_head
Lloh0:
	adrp	x23, _dash@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dash@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x9, x19, x19, lsl #1
	lsl	x22, x9, #4
	add	x8, x8, x22
	str	w0, [x8, #40]
	mov	x0, x19
	bl	_module_to_desc
	ldr	x8, [x23]
	ldr	x9, [x8]
	add	x9, x9, x22
Lloh2:
	adrp	x24, _holder@GOTPAGE
Lloh3:
	ldr	x24, [x24, _holder@GOTPAGEOFF]
	str	w0, [x9, #36]
	ldr	x10, [x24]
	lsl	x25, x19, #3
	add	x10, x10, x25
Lloh4:
	adrp	x22, _gscroll@GOTPAGE
Lloh5:
	ldr	x22, [x22, _gscroll@GOTPAGEOFF]
	ldp	x12, x11, [x22]
	cmp	x11, #0
	cset	w11, ne
	cmp	x12, x19
	cset	w12, eq
	tst	w11, w12
	csel	w12, w21, w20, ne
	ldp	w13, w10, [x10]
	cmp	w12, w13
	csel	w12, w12, w13, lt
	str	w12, [x9]
	str	w10, [x9, #32]
	stp	xzr, xzr, [x9, #16]
	ldr	x10, [x22]
	cmp	x10, x19
	cset	w10, eq
Lloh6:
	adrp	x12, _DASH_EXPANDED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DASH_EXPANDED@GOTPAGEOFF]
Lloh8:
	adrp	x13, _DASH_COLLAPSED@GOTPAGE
Lloh9:
	ldr	x13, [x13, _DASH_COLLAPSED@GOTPAGEOFF]
	tst	w11, w10
	csel	x10, x12, x13, ne
	ldr	x10, [x10]
	str	x10, [x9, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, w10
	str	w9, [x8, #8]
Lloh10:
	adrp	x20, _gdns_thread@GOTPAGE
Lloh11:
	ldr	x20, [x20, _gdns_thread@GOTPAGEOFF]
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	x8, [x24]
	add	x0, x8, x25
	ldr	x1, [x23]
	mov	x2, x19
	mov	x3, x22
	bl	_load_data_to_dash
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dash,8,3                       ; @dash
	.comm	_holder,8,3                     ; @holder
	.comm	_gscroll,16,3                   ; @gscroll
	.comm	_DASH_EXPANDED,8,3              ; @DASH_EXPANDED
	.comm	_DASH_COLLAPSED,8,3             ; @DASH_COLLAPSED
	.comm	_gdns_thread,4,2                ; @gdns_thread
	.no_dead_strip	_allocate_data_by_module
.subsections_via_symbols
