	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_objhash_alloc_idx         ## -- Begin function ipfw_objhash_alloc_idx
	.p2align	4, 0x90
_ipfw_objhash_alloc_idx:                ## @ipfw_objhash_alloc_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movl	(%r8), %ecx
	movl	16(%rdi), %r9d
	movl	$1, %eax
	cmpl	%r9d, %ecx
	jge	LBB0_5
## %bb.1:
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	addq	8(%rdi), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	testl	%edi, %edi
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	addq	$4, %rdx
	cmpl	%ecx, %r9d
	jne	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	bsfl	%edi, %eax
	btrl	%eax, %edi
	movl	%edi, (%rdx)
	movl	%ecx, (%r8)
	movq	_BLOCK_ITEMS@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	addl	%eax, %ecx
	movl	%ecx, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_ITEMS,4,2                ## @BLOCK_ITEMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_objhash_alloc_idx         ; -- Begin function ipfw_objhash_alloc_idx
	.p2align	2
_ipfw_objhash_alloc_idx:                ; @ipfw_objhash_alloc_idx
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	w8, [x9]
	ldr	w10, [x0, #16]
	cmp	w8, w10
	b.ge	LBB0_4
; %bb.1:
	sxtw	x11, w8
	ldr	x12, [x0, #8]
	add	x11, x12, x11, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cbnz	w12, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	add	x11, x11, #4
	cmp	w10, w8
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #1
	ret
LBB0_5:
	mov	w0, #0
	rbit	w10, w12
	clz	w10, w10
	mov	w13, #1
	lsl	w13, w13, w10
	bic	w12, w12, w13
	str	w12, [x11]
	str	w8, [x9]
Lloh0:
	adrp	x9, _BLOCK_ITEMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLOCK_ITEMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	madd	w8, w9, w8, w10
	str	w8, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_ITEMS,4,2                ; @BLOCK_ITEMS
.subsections_via_symbols
