	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_appendrel_attrs_multilevel ## -- Begin function adjust_appendrel_attrs_multilevel
	.p2align	4, 0x90
_adjust_appendrel_attrs_multilevel:     ## @adjust_appendrel_attrs_multilevel
	.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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_bms_num_members
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_bms_num_members
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_Assert
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_find_appinfos_by_relids
	movq	%rax, %r13
	cmpl	$0, -44(%rbp)
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bms_add_member
	movq	%rax, %rbx
	incq	%r14
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r14
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bms_equal
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_adjust_appendrel_attrs_multilevel
	movq	%rax, %rsi
LBB0_7:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movq	%r13, %rcx
	callq	_adjust_appendrel_attrs
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_pfree
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_appendrel_attrs_multilevel ; -- Begin function adjust_appendrel_attrs_multilevel
	.p2align	2
_adjust_appendrel_attrs_multilevel:     ; @adjust_appendrel_attrs_multilevel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_bms_num_members
	mov	x23, x0
	mov	x0, x21
	bl	_bms_num_members
	cmp	x23, x0
	cset	w0, eq
	bl	_Assert
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_find_appinfos_by_relids
	mov	x22, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x24, lsl #3]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_bms_add_member
	mov	x23, x0
	add	x24, x24, #1
	ldrsw	x8, [sp, #12]
	cmp	x24, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	mov	x0, x23
	mov	x1, x21
	bl	_bms_equal
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	bl	_adjust_appendrel_attrs_multilevel
	mov	x20, x0
LBB0_6:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_adjust_appendrel_attrs
	mov	x19, x0
	mov	x0, x22
	bl	_pfree
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
