	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_int_array_add_unique           ## -- Begin function int_array_add_unique
	.p2align	4, 0x90
_int_array_add_unique:                  ## @int_array_add_unique
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rdi,%rbx,4), %eax
	incq	%rbx
	testl	%eax, %eax
	jne	LBB0_3
LBB0_5:
	leal	2(%rbx), %esi
	movl	$4, %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	%ebx, %ecx
	movl	%r15d, (%rax,%rcx,4)
	movl	$0, 4(%rax,%rcx,4)
	jmp	LBB0_8
LBB0_6:
	movq	(%r14), %rdi
	callq	_os_free
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, (%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_int_array_add_unique           ; -- Begin function int_array_add_unique
	.p2align	2
_int_array_add_unique:                  ; @int_array_add_unique
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w10, [x0]
	cbz	w10, LBB0_5
; %bb.2:
	mov	x9, #0
	add	x8, x0, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, w20
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x9, #1
	ldr	w10, [x8, x9, lsl #2]
	mov	x9, x21
	cbnz	w10, LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	add	w1, w21, #2
	mov	w2, #4
	bl	_os_realloc_array
	cbz	x0, LBB0_8
; %bb.7:
	str	w20, [x0, w21, uxtw #2]
	add	w8, w21, #1
	str	wzr, [x0, w8, uxtw #2]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19]
	bl	_os_free
	mov	x0, #0
LBB0_9:
	str	x0, [x19]
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
