	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_to_hlist                   ## -- Begin function add_to_hlist
	.p2align	4, 0x90
_add_to_hlist:                          ## @add_to_hlist
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_max_hlist_size@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_5
## %bb.2:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	$0, 16(%rax)
	movq	(%rbx), %rcx
	movq	(%r15), %rdx
	movq	%rcx, 16(%rdx)
	movq	(%r15), %rcx
	movq	$0, 8(%rcx)
	movq	(%r15), %rcx
	movq	%rcx, (%rbx)
	movq	%rax, (%r15)
	movq	(%rbx), %rax
	leaq	16(%rax), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_3:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, (%r15)
	movq	(%rbx), %rax
	movq	$0, 16(%rax)
	movl	$1, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	jmp	LBB0_7
LBB0_5:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	(%rbx), %rcx
	movq	%rax, %rdx
	addq	$16, %rdx
	movq	%rcx, 16(%rax)
	movq	$0, 8(%rax)
	movq	%rax, (%rbx)
	movl	$1, %ecx
LBB0_7:
	movq	(%rdx), %rdx
	movq	%rax, 8(%rdx)
	movq	(%rbx), %rax
	movl	%r14d, (%rax)
	jmp	LBB0_8
LBB0_10:
	xorl	%ecx, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_hlist_size,4,2             ## @max_hlist_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_to_hlist                   ; -- Begin function add_to_hlist
	.p2align	2
_add_to_hlist:                          ; @add_to_hlist
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _max_hlist_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_hlist_size@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #0
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	str	xzr, [x8, #16]
	ldr	x9, [x20]
	ldr	x10, [x21]
	str	x9, [x10, #16]
	ldr	x9, [x21]
	str	xzr, [x9, #8]
	ldr	x9, [x21]
	str	x9, [x20]
	str	x8, [x21]
	ldr	x8, [x20]
	add	x9, x8, #16
	b	LBB0_7
LBB0_3:
	mov	w0, #24
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x8, #0
	str	x0, [x21]
	ldr	x9, [x20]
	str	xzr, [x9, #16]
	mov	w0, #1
	mov	x9, x20
	b	LBB0_7
LBB0_5:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x8, x0
	ldr	x10, [x20]
	mov	x9, x0
	str	x10, [x9, #16]!
	str	xzr, [x0, #8]
	str	x0, [x20]
	mov	w0, #1
LBB0_7:
	ldr	x9, [x9]
	str	x8, [x9, #8]
	ldr	x8, [x20]
	str	w19, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_max_hlist_size,4,2             ; @max_hlist_size
.subsections_via_symbols
