	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rewrite_rule_uidx
_rewrite_rule_uidx:                     ## @rewrite_rule_uidx
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %edi
	cmpl	$1, %edi
	ja	LBB0_2
## %bb.1:
	movq	8(%r12), %r14
	jmp	LBB0_3
LBB0_2:
	shll	$3, %edi
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r14
LBB0_3:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	16(%r12), %rsi
	movl	8(%rsi), %eax
	movl	%eax, -48(%rbp)
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	8(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movq	(%rax), %rax
	addq	$-4, %rax
	movq	%rax, -64(%rbp)
LBB0_5:
	leaq	-64(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_ref_rule_objects
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movslq	(%r12), %rax
	testq	%rax, %rax
	jle	LBB0_9
## %bb.7:
	leaq	(%r14,%rax,8), %r13
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	4(%rbx), %esi
	callq	_update_opcode_kidx
	addq	$8, %rbx
	cmpq	%r13, %rbx
	jb	LBB0_8
LBB0_9:
	cmpq	8(%r12), %r14
	je	LBB0_11
## %bb.10:
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_free
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_IPFW,4,2                     ## @M_IPFW
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.no_dead_strip	_rewrite_rule_uidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rewrite_rule_uidx
_rewrite_rule_uidx:                     ; @rewrite_rule_uidx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x22, _M_IPFW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_IPFW@GOTPAGEOFF]
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.1:
	ldr	x20, [x19, #8]
	b	LBB0_3
LBB0_2:
	lsl	w0, w8, #3
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	mov	x20, x0
LBB0_3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldp	x1, x8, [x19, #16]
	ldr	w9, [x1, #8]
	str	w9, [sp, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x9, [x8], #8
	sub	x9, x9, #4
	stp	x9, x8, [sp, #8]
LBB0_5:
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_ref_rule_objects
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.6:
	ldrsw	x8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	add	x23, x20, x8, lsl #3
	mov	x24, x20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldp	w9, w1, [x24], #8
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x0, x8, x9, lsl #2
	bl	_update_opcode_kidx
	cmp	x24, x23
	b.lo	LBB0_8
LBB0_9:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.eq	LBB0_11
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_free
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_IPFW,4,2                     ; @M_IPFW
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.no_dead_strip	_rewrite_rule_uidx
.subsections_via_symbols
