	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResourceArrayAdd
_ResourceArrayAdd:                      ## @ResourceArrayAdd
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, -32(%rbp)
	xorl	%edi, %edi
	cmpq	%rsi, (%r15)
	setne	%dil
	callq	_Assert
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpq	16(%r15), %rax
	setl	%dil
	callq	_Assert
	movq	%r15, %rdi
	callq	_RESARRAY_IS_ARRAY
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rdx
	movq	32(%r15), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	24(%r15), %rbx
	decq	%rbx
	leaq	-32(%rbp), %rdi
	movl	$8, %esi
	callq	_hash_any
	movl	%eax, %edi
	callq	_DatumGetUInt32
	movq	(%r15), %rsi
	movq	32(%r15), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	andq	%rbx, %rdx
	leaq	1(%rdx), %rax
	cmpq	%rsi, (%rcx,%rdx,8)
	jne	LBB0_3
## %bb.4:
	movq	-32(%rbp), %r14
LBB0_5:
	movq	%rdx, 40(%r15)
	movq	%r14, (%rcx,%rdx,8)
	incq	8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ResourceArrayAdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResourceArrayAdd
_ResourceArrayAdd:                      ; @ResourceArrayAdd
	.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	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x8, [x0]
	cmp	x8, x1
	cset	w0, ne
	bl	_Assert
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	cset	w0, lt
	bl	_Assert
	mov	x0, x19
	bl	_RESARRAY_IS_ARRAY
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x8, [x19, #32]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #24]
	sub	x20, x8, #1
	add	x0, sp, #8
	mov	w1, #8
	bl	_hash_any
	bl	_DatumGetUInt32
	ldr	x8, [x19, #32]
	ldr	x10, [x19]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	x9, x0, x20
	ldr	x11, [x8, x9, lsl #3]
	add	x0, x9, #1
	cmp	x11, x10
	b.ne	LBB0_3
; %bb.4:
	ldr	x20, [sp, #8]
LBB0_5:
	str	x9, [x19, #40]
	str	x20, [x8, x9, lsl #3]
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ResourceArrayAdd
.subsections_via_symbols
