	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_user_ad_heap
_build_user_ad_heap:                    ## @build_user_ad_heap
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	setne	%al
	movq	_GSORT_HEAP_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	seta	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	___gsort_limit@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	4(%r14), %eax
	movq	___user_id@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___user@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	___build_heap_generation@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	_lrand48
	addl	$1073741824, %eax               ## imm = 0x40000000
	orl	$1, %eax
	movq	___build_heap_multiplier@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_HN@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_AdSpace@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_heap_push_user_ad@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intree_traverse                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GSORT_HEAP_SIZE,4,2            ## @GSORT_HEAP_SIZE
	.comm	___gsort_limit,4,2              ## @__gsort_limit
	.comm	___user_id,4,2                  ## @__user_id
	.comm	___user,8,3                     ## @__user
	.comm	___build_heap_generation,4,2    ## @__build_heap_generation
	.comm	___build_heap_multiplier,4,2    ## @__build_heap_multiplier
	.comm	_HN,8,3                         ## @HN
	.comm	_AdSpace,4,2                    ## @AdSpace
	.comm	_heap_push_user_ad,4,2          ## @heap_push_user_ad
	.no_dead_strip	_build_user_ad_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_user_ad_heap
_build_user_ad_heap:                    ; @build_user_ad_heap
	.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, x1
	mov	x20, x0
	cmp	w1, #0
Lloh0:
	adrp	x8, _GSORT_HEAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSORT_HEAP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w1, #0, ne
	cset	w0, hi
	bl	_assert
Lloh3:
	adrp	x8, ___gsort_limit@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___gsort_limit@GOTPAGEOFF]
Lloh5:
	str	w19, [x8]
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, ___user_id@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___user_id@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, ___user@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___user@GOTPAGEOFF]
Lloh11:
	str	x20, [x8]
Lloh12:
	adrp	x8, ___build_heap_generation@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___build_heap_generation@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_lrand48
	mov	w8, #1073741824
	add	w8, w0, w8
	orr	w8, w8, #0x1
Lloh14:
	adrp	x9, ___build_heap_multiplier@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___build_heap_multiplier@GOTPAGEOFF]
Lloh16:
	adrp	x10, _HN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _HN@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
Lloh19:
	str	xzr, [x10]
Lloh20:
	adrp	x8, _AdSpace@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AdSpace@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _heap_push_user_ad@GOTPAGE
Lloh24:
	ldr	x8, [x8, _heap_push_user_ad@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intree_traverse
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GSORT_HEAP_SIZE,4,2            ; @GSORT_HEAP_SIZE
	.comm	___gsort_limit,4,2              ; @__gsort_limit
	.comm	___user_id,4,2                  ; @__user_id
	.comm	___user,8,3                     ; @__user
	.comm	___build_heap_generation,4,2    ; @__build_heap_generation
	.comm	___build_heap_multiplier,4,2    ; @__build_heap_multiplier
	.comm	_HN,8,3                         ; @HN
	.comm	_AdSpace,4,2                    ; @AdSpace
	.comm	_heap_push_user_ad,4,2          ; @heap_push_user_ad
	.no_dead_strip	_build_user_ad_heap
.subsections_via_symbols
