	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h_add                          ## -- Begin function h_add
	.p2align	4, 0x90
_h_add:                                 ## @h_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAXH@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	leal	-1(%r11), %ecx
	andl	%edi, %ecx
	movq	_h_key@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movslq	%ecx, %rdx
	movl	(%r8,%rdx,4), %r10d
	testl	%r10d, %r10d
	sete	%r9b
	je	LBB0_5
## %bb.1:
	cmpl	%edi, %r10d
	je	LBB0_5
## %bb.2:
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	cmpl	%r11d, %ecx
	cmovel	%r10d, %ecx
	movslq	%ecx, %rdx
	movl	(%r8,%rdx,4), %eax
	testl	%eax, %eax
	sete	%r9b
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edi, %eax
	jne	LBB0_3
LBB0_5:
	movl	$-1, %eax
	testb	%r9b, %r9b
	je	LBB0_7
## %bb.6:
	movl	%edi, (%r8,%rdx,4)
	movl	%ecx, %eax
LBB0_7:
	movq	_h_val@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	%esi, (%rcx,%rdx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXH,4,2                       ## @MAXH
	.comm	_h_key,8,3                      ## @h_key
	.comm	_h_val,8,3                      ## @h_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h_add                          ; -- Begin function h_add
	.p2align	2
_h_add:                                 ; @h_add
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _MAXH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAXH@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	sub	w9, w10, #1
	and	w0, w9, w0
Lloh3:
	adrp	x9, _h_key@GOTPAGE
Lloh4:
	ldr	x9, [x9, _h_key@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w12, [x9, w0, sxtw #2]
	cmp	w12, #0
	cset	w11, eq
	ccmp	w12, w8, #4, ne
	b.ne	LBB0_3
; %bb.1:
	sxtw	x10, w0
	cbnz	w11, LBB0_5
LBB0_2:
	mov	w0, #-1
	b	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w0, #1
	cmp	w11, w10
	csinc	w0, wzr, w0, eq
	ldr	w12, [x9, w0, sxtw #2]
	cmp	w12, #0
	cset	w11, eq
	ccmp	w12, w8, #4, ne
	b.ne	LBB0_3
; %bb.4:
	mov	x10, x0
	sxtw	x10, w10
	cbz	w11, LBB0_2
LBB0_5:
	str	w8, [x9, x10, lsl #2]
LBB0_6:
Lloh6:
	adrp	x8, _h_val@GOTPAGE
Lloh7:
	ldr	x8, [x8, _h_val@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	x9, x10, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w1
	str	w10, [x8, x9]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXH,4,2                       ; @MAXH
	.comm	_h_key,8,3                      ; @h_key
	.comm	_h_val,8,3                      ; @h_val
.subsections_via_symbols
