	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_q                          ## -- Begin function add_q
	.p2align	4, 0x90
_add_q:                                 ## @add_q
	.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	%edi, %r14d
	movslq	%edi, %rsi
	movq	_H_ADD@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_H_MUL@GOTPCREL(%rip), %rax
	imulq	(%rax), %rsi
	movq	_h_q@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_hmap_ll_int_add
	movq	%rax, %rbx
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_qn@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	leal	3(%rcx), %edx
	movq	_qr@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %edx
	jle	LBB0_3
## %bb.2:
	leal	(%rax,%rax), %r15d
	leal	(%rax,%rax), %r13d
	addl	$3, %r13d
	movq	_q_entry@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_STAT_ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	(%rdx,%rax,2), %esi
	addl	$3, %esi
	shll	$2, %esi
	addl	%eax, %edx
	shll	$2, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dl_realloc
	movq	_q_entry@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_q_rev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leal	12(,%r15,4), %esi
	movl	(%r12), %edx
	shll	$2, %edx
	callq	_dl_realloc
	movslq	(%r12), %rcx
	movl	%r13d, %edx
	subl	%ecx, %edx
	shlq	$2, %rcx
	movq	_q_entry@GOTPCREL(%rip), %rsi
	addq	(%rsi), %rcx
	movq	_q_rev@GOTPCREL(%rip), %rsi
	movq	%rax, (%rsi)
	movq	_STAT_ST@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rcx,%rax,4), %rdi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movslq	(%r12), %rdi
	movl	%r13d, %edx
	subl	%edi, %edx
	shlq	$2, %rdi
	movq	_q_rev@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_qn@GOTPCREL(%rip), %rsi
	movl	%r13d, (%r12)
	movl	(%rsi), %ecx
LBB0_3:
	incl	%ecx
	movl	%ecx, (%rsi)
	movl	%ecx, (%rbx)
	movq	_q_rev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rsi), %rcx
	movl	%r14d, (%rax,%rcx,4)
	movl	(%rbx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_ADD,8,3                      ## @H_ADD
	.comm	_H_MUL,8,3                      ## @H_MUL
	.comm	_h_q,4,2                        ## @h_q
	.comm	_qn,4,2                         ## @qn
	.comm	_qr,4,2                         ## @qr
	.comm	_q_entry,8,3                    ## @q_entry
	.comm	_STAT_ST,4,2                    ## @STAT_ST
	.comm	_q_rev,8,3                      ## @q_rev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_q                          ; -- Begin function add_q
	.p2align	2
_add_q:                                 ; @add_q
	.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	x19, x0
Lloh0:
	adrp	x8, _H_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H_ADD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w0, sxtw
Lloh3:
	adrp	x9, _H_MUL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _H_MUL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mul	x1, x8, x9
Lloh6:
	adrp	x0, _h_q@GOTPAGE
Lloh7:
	ldr	x0, [x0, _h_q@GOTPAGEOFF]
	mov	x2, #0
	bl	_hmap_ll_int_add
	mov	x20, x0
	ldr	w0, [x0]
	cbnz	w0, LBB0_4
; %bb.1:
Lloh8:
	adrp	x21, _qn@GOTPAGE
Lloh9:
	ldr	x21, [x21, _qn@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w10, w9, #3
Lloh10:
	adrp	x23, _qr@GOTPAGE
Lloh11:
	ldr	x23, [x23, _qr@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh12:
	adrp	x22, _q_rev@GOTPAGE
Lloh13:
	ldr	x22, [x22, _q_rev@GOTPAGEOFF]
	cmp	w10, w8
	b.le	LBB0_3
; %bb.2:
	lsl	w9, w8, #1
	add	w24, w9, #3
Lloh14:
	adrp	x25, _q_entry@GOTPAGE
Lloh15:
	ldr	x25, [x25, _q_entry@GOTPAGEOFF]
Lloh16:
	adrp	x26, _STAT_ST@GOTPAGE
Lloh17:
	ldr	x26, [x26, _STAT_ST@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	w9, [x26]
	add	w10, w9, w24
	lsl	w1, w10, #2
	add	w8, w9, w8
	lsl	w2, w8, #2
	bl	_dl_realloc
	str	x0, [x25]
	ldr	x0, [x22]
	lsl	w1, w24, #2
	ldr	w8, [x23]
	lsl	w2, w8, #2
	bl	_dl_realloc
	str	x0, [x22]
	ldr	x8, [x25]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #2
	ldrsw	x10, [x26]
	add	x0, x8, x10, lsl #2
	sub	w8, w24, w9
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x22]
	ldrsw	x9, [x23]
	add	x0, x8, x9, lsl #2
	sub	w8, w24, w9
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	str	w24, [x23]
	ldr	w9, [x21]
LBB0_3:
	add	w8, w9, #1
	str	w8, [x21]
	str	w8, [x20]
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	str	w19, [x8, x9, lsl #2]
	ldr	w0, [x20]
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_H_ADD,8,3                      ; @H_ADD
	.comm	_H_MUL,8,3                      ; @H_MUL
	.comm	_h_q,4,2                        ; @h_q
	.comm	_qn,4,2                         ; @qn
	.comm	_qr,4,2                         ; @qr
	.comm	_q_entry,8,3                    ; @q_entry
	.comm	_STAT_ST,4,2                    ; @STAT_ST
	.comm	_q_rev,8,3                      ; @q_rev
.subsections_via_symbols
