	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deactivate_one_user_ad
_deactivate_one_user_ad:                ## @deactivate_one_user_ad
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_AdSpace@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	leaq	-24(%rbp), %rcx
	callq	_intree_remove
	movl	%eax, 4(%rbx)
	movq	-24(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	_active_ad_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	(%r14), %edi
	callq	_TNODE
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_inactive_ad_nodes@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movq	-24(%rbp), %rdx
	callq	_intree_insert
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	movq	-24(%rbp), %rsi
	callq	_free_intree_node
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AdSpace,4,2                    ## @AdSpace
	.comm	_active_ad_nodes,4,2            ## @active_ad_nodes
	.comm	_inactive_ad_nodes,4,2          ## @inactive_ad_nodes
	.no_dead_strip	_deactivate_one_user_ad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deactivate_one_user_ad
_deactivate_one_user_ad:                ; @deactivate_one_user_ad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _AdSpace@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AdSpace@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	add	x3, sp, #8
	bl	_intree_remove
	str	w0, [x19, #4]
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _active_ad_nodes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _active_ad_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x20]
	bl	_TNODE
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _inactive_ad_nodes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _inactive_ad_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	x2, [sp, #8]
	bl	_intree_insert
	str	w0, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20]
	ldr	x1, [sp, #8]
	bl	_free_intree_node
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AdSpace,4,2                    ; @AdSpace
	.comm	_active_ad_nodes,4,2            ; @active_ad_nodes
	.comm	_inactive_ad_nodes,4,2          ; @inactive_ad_nodes
	.no_dead_strip	_deactivate_one_user_ad
.subsections_via_symbols
