	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_subscription
_add_subscription:                      ## @add_subscription
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_DLOG
	movslq	(%r12), %rbx
	leal	1(%rbx), %eax
	movl	%eax, (%r12)
	movq	8(%r12), %rdi
	leal	8(,%rbx,8), %esi
	callq	_srealloc
	movq	%rax, 8(%r12)
	leaq	1(%r14), %rdi
	movl	$1, %esi
	callq	_scalloc
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	leaq	L_.str.2(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DLOG
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"should add subscription to extra %p, sub %.*s\n"

L_.str.1:                               ## @.str.1
	.asciz	"client is now subscribed to:\n"

L_.str.2:                               ## @.str.2
	.asciz	"event %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"(done)\n"

	.no_dead_strip	_add_subscription
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_subscription
_add_subscription:                      ; @add_subscription
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	stp	x2, x1, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldrsw	x22, [x19]
	add	w8, w22, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
	lsl	w1, w8, #3
	bl	_srealloc
	str	x0, [x19, #8]
	add	x0, x20, #1
	mov	w1, #1
	bl	_scalloc
	ldr	x8, [x19, #8]
	str	w0, [x8, x22, lsl #2]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x20
	bl	_DLOG
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DLOG
	mov	w0, #1
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"should add subscription to extra %p, sub %.*s\n"

l_.str.1:                               ; @.str.1
	.asciz	"client is now subscribed to:\n"

l_.str.2:                               ; @.str.2
	.asciz	"event %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"(done)\n"

	.no_dead_strip	_add_subscription
.subsections_via_symbols
