	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_dict_add_value            ## -- Begin function heim_dict_add_value
	.p2align	4, 0x90
_heim_dict_add_value:                   ## @heim_dict_add_value
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	__search
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	callq	_heim_release
	movl	%r15d, %edi
	callq	_heim_retain
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_heim_retain
	movq	%rax, 24(%r14)
	movl	%r15d, %edi
	callq	_heim_retain
	movq	%rax, 16(%r14)
	movl	%r13d, %edi
	callq	_heim_get_hash
	movq	(%r12), %rsi
	movq	8(%r12), %rcx
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_6
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_6:
	leaq	(%rcx,%rdx,8), %rax
	movq	(%rcx,%rdx,8), %rsi
	movq	%rsi, (%r14)
	movq	%r14, (%rcx,%rdx,8)
	movq	%rax, 8(%r14)
	movq	(%r14), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	%r14, 8(%rcx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_dict_add_value            ; -- Begin function heim_dict_add_value
	.p2align	2
_heim_dict_add_value:                   ; @heim_dict_add_value
	.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, x2
	mov	x22, x1
	mov	x19, x0
	bl	__search
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0, #16]
	bl	_heim_release
	mov	x0, x20
	bl	_heim_retain
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21, #16]
LBB0_2:
	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
LBB0_3:
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	mov	x0, x22
	bl	_heim_retain
	str	x0, [x21, #24]
	mov	x0, x20
	bl	_heim_retain
	str	x0, [x21, #16]
	mov	x0, x22
	bl	_heim_get_hash
	ldp	x9, x8, [x19]
	udiv	x10, x0, x9
	msub	x9, x10, x9, x0
	add	x8, x8, x9, lsl #3
	ldr	x9, [x8]
	str	x9, [x21]
	str	x21, [x8]
	str	x8, [x21, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.5:
	mov	w0, #0
	str	x21, [x8, #8]
	b	LBB0_2
LBB0_6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
