	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_subscr                   ## -- Begin function clear_subscr
	.p2align	4, 0x90
_clear_subscr:                          ## @clear_subscr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_dbg
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	subq	(%rax), %rcx
	movq	_MAX_DIFF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_2
## %bb.1:
	subl	%edx, %ecx
	movq	_to_del_overflow@GOTPCREL(%rip), %rsi
	addl	%ecx, (%rsi)
LBB0_2:
	movl	8(%rax), %edi
	movq	_to_del@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_treap_conv_to_array
	movq	_to_del_n@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	8(%rbx), %edi
	movl	(%r14), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_process_changes
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_treap_cnt@GOTPCREL(%rip), %r14
	addq	%rax, (%r14)
	callq	_treap_free
	movq	(%rbx), %rax
	movq	(%rax), %rax
	subq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clear_subscr: (q = %p), (qname = %s)\n"

	.comm	_MAX_DIFF,8,3                   ## @MAX_DIFF
	.comm	_to_del_overflow,4,2            ## @to_del_overflow
	.comm	_to_del,4,2                     ## @to_del
	.comm	_to_del_n,4,2                   ## @to_del_n
	.comm	_treap_cnt,8,3                  ## @treap_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_subscr                   ; -- Begin function clear_subscr
	.p2align	2
_clear_subscr:                          ; @clear_subscr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w2, [x0, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dbg
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _MAX_DIFF@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_DIFF@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x10]
	neg	x9, x9
	cmp	x2, x9
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x10, _to_del_overflow@GOTPAGE
Lloh6:
	ldr	x10, [x10, _to_del_overflow@GOTPAGEOFF]
	ldr	w11, [x10]
	sub	w9, w9, w2
	add	w9, w11, w9
	str	w9, [x10]
LBB0_2:
	ldr	w0, [x8, #8]
Lloh7:
	adrp	x20, _to_del@GOTPAGE
Lloh8:
	ldr	x20, [x20, _to_del@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_treap_conv_to_array
	mov	x3, x0
Lloh9:
	adrp	x8, _to_del_n@GOTPAGE
Lloh10:
	ldr	x8, [x8, _to_del_n@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
	ldr	w0, [x19, #8]
	ldr	w2, [x20]
	mov	x1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_process_changes
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh12:
	adrp	x20, _treap_cnt@GOTPAGE
Lloh13:
	ldr	x20, [x20, _treap_cnt@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	bl	_treap_free
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	sub	x8, x9, x8
	str	x8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clear_subscr: (q = %p), (qname = %s)\n"

	.comm	_MAX_DIFF,8,3                   ; @MAX_DIFF
	.comm	_to_del_overflow,4,2            ; @to_del_overflow
	.comm	_to_del,4,2                     ; @to_del
	.comm	_to_del_n,4,2                   ; @to_del_n
	.comm	_treap_cnt,8,3                  ; @treap_cnt
.subsections_via_symbols
