	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bind_user_metafile             ## -- Begin function bind_user_metafile
	.p2align	4, 0x90
_bind_user_metafile:                    ## @bind_user_metafile
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_users@GOTPCREL(%rip), %rax
	movq	%r15, %rcx
	subq	(%rax), %rcx
	shrq	$3, %rcx
	imull	$-1431655765, %ecx, %edx        ## imm = 0xAAAAAAAB
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rcx
	callq	_fprintf
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.3:
	movq	_users@GOTPCREL(%rip), %rax
	movq	%r15, %rcx
	subq	(%rax), %rcx
	sarq	$3, %rcx
	movabsq	$-6148914691236517205, %r13     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %r13
	testl	%r13d, %r13d
	setg	%al
	movq	_header@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$4, (%r15)
	setge	%dil
	callq	_assert
	movq	8(%r15), %rax
	movl	(%rax), %eax
	leal	4(,%rax,4), %ebx
	movl	(%r15), %r12d
	movl	%r12d, %edi
	subl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	subl	%ebx, %r12d
	je	LBB0_11
## %bb.4:
	movq	_index_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%r12d, %r14
	movl	%r14d, %eax
	andl	$7, %eax
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_assert
	movq	8(%r15), %rdi
	shrq	$2, %r14
	decq	%r14
	shrq	%r14
	movq	_all_sugg_cnt@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movq	_MAX_SUGGESTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.7:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	16(%r15), %rbx
	movl	%r14d, %r12d
	leaq	(%rdi,%rax,4), %r14
	addq	$8, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r13,8), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	$499999999, %eax                ## imm = 0x1DCD64FF
	setb	%dil
	callq	_assert
	movl	-4(%r14,%r13,8), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	$99999, %eax                    ## imm = 0x1869F
	setb	%dil
	callq	_assert
	movl	-4(%r14,%r13,8), %edx
	movl	(%r14,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_trp_incr
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_8
## %bb.9:
	movq	8(%r15), %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_header@GOTPCREL(%rip), %r14
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	_header@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r15), %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_qrealloc
	movl	%ebx, (%r15)
	movq	8(%r14), %rax
	movslq	%r13d, %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %rax
	subl	%r12d, (%rax)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bind user metafile local id = %d (%p)\n"

	.comm	_users,8,3                      ## @users
	.comm	_header,16,3                    ## @header
	.comm	_index_mode,4,2                 ## @index_mode
	.comm	_all_sugg_cnt,4,2               ## @all_sugg_cnt
	.comm	_MAX_SUGGESTIONS,4,2            ## @MAX_SUGGESTIONS
	.comm	_allocated_metafile_bytes,4,2   ## @allocated_metafile_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bind_user_metafile             ; -- Begin function bind_user_metafile
	.p2align	2
_bind_user_metafile:                    ; @bind_user_metafile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _users@GOTPAGE
Lloh4:
	ldr	x20, [x20, _users@GOTPAGEOFF]
	cmp	w8, #2
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20]
	sub	x8, x19, x8
	lsr	x8, x8, #3
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w2, w8, w9
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_fprintf
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x20]
	sub	x8, x19, x8
	asr	x8, x8, #3
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	mul	x22, x8, x9
	cmp	w22, #0
Lloh10:
	adrp	x23, _header@GOTPAGE
Lloh11:
	ldr	x23, [x23, _header@GOTPAGEOFF]
	ldr	w8, [x23]
	ccmp	w8, w22, #8, gt
	cset	w0, ge
	bl	_assert
	ldr	w8, [x19]
	cmp	w8, #3
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w20, w8, #4
	ldr	w21, [x19]
	subs	w8, w21, w20
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
	subs	w24, w21, w20
Lloh12:
	adrp	x8, _index_mode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_9
; %bb.4:
	sxtw	x21, w24
	and	x8, x21, #0x7
	cmp	x8, #4
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #8]
	lsr	x8, x21, #2
	sub	x8, x8, #1
	lsr	x8, x8, #1
Lloh15:
	adrp	x9, _all_sugg_cnt@GOTPAGE
Lloh16:
	ldr	x9, [x9, _all_sugg_cnt@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, w8
	str	w10, [x9]
Lloh17:
	adrp	x9, _MAX_SUGGESTIONS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX_SUGGESTIONS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w25, w9, w8, lt
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.5:
	sxtw	x8, w20
	add	x21, x19, #16
	add	x8, x0, x8, lsl #2
	add	x26, x8, #8
	mov	w27, #25855
	movk	w27, #7629, lsl #16
	mov	w28, #34463
	movk	w28, #1, lsl #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	sub	w8, w8, #1
	cmp	w8, w27
	cset	w0, lo
	bl	_assert
	ldur	w8, [x26, #-4]
	sub	w8, w8, #1
	cmp	w8, w28
	cset	w0, lo
	bl	_assert
	ldp	w2, w1, [x26, #-4]
	mov	x0, x21
	bl	_trp_incr
	add	x26, x26, #8
	subs	x25, x25, #1
	b.ne	LBB0_6
; %bb.7:
	ldr	x0, [x19, #8]
LBB0_8:
	ldr	w2, [x19]
	mov	x1, x20
	bl	_qrealloc
	ldr	x8, [x23, #8]
	sbfiz	x9, x22, #2, #32
	str	w20, [x8, x9]
	str	w20, [x19]
Lloh20:
	adrp	x8, _allocated_metafile_bytes@GOTPAGE
Lloh21:
	ldr	x8, [x8, _allocated_metafile_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, w24
	str	w9, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bind user metafile local id = %d (%p)\n"

	.comm	_users,8,3                      ; @users
	.comm	_header,16,3                    ; @header
	.comm	_index_mode,4,2                 ; @index_mode
	.comm	_all_sugg_cnt,4,2               ; @all_sugg_cnt
	.comm	_MAX_SUGGESTIONS,4,2            ; @MAX_SUGGESTIONS
	.comm	_allocated_metafile_bytes,4,2   ; @allocated_metafile_bytes
.subsections_via_symbols
