	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function manage_membership_change
_manage_membership_change:              ## @manage_membership_change
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movq	_BOTH@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_11
## %bb.2:
	movl	%edx, %r14d
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.7:
	movq	_LIMITED@GOTPCREL(%rip), %rax
	leaq	4(%rsi), %r15
	cmpq	%rcx, (%rax)
	cmovneq	%rsi, %r15
	movq	%r15, %rdi
	callq	_cl_map_head
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_cl_map_end
	cmpl	%eax, %ebx
	jne	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_cl_map_end
	movl	%r12d, %ebx
	cmpl	%eax, %r12d
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_cl_map_next
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_cl_map_obj
	movl	(%rax), %edi
	callq	_osm_node_get_type
	cmpl	%r14d, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_cl_map_remove_item
	jmp	LBB0_10
LBB0_3:
	cmpl	$255, %r14d
	je	LBB0_6
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.5:
	movq	_LIMITED@GOTPCREL(%rip), %rax
	leaq	4(%rsi), %rdi
	cmpq	%rcx, (%rax)
	cmovneq	%rsi, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cl_map_remove_all              ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_LIMITED@GOTPCREL(%rip), %rax
	leaq	4(%rsi), %rbx
	cmpq	%rcx, (%rax)
	cmovneq	%rsi, %rbx
	movl	%r8d, %edi
	callq	_cl_hton64
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cl_map_remove                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BOTH,8,3                       ## @BOTH
	.comm	_LIMITED,8,3                    ## @LIMITED
	.no_dead_strip	_manage_membership_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function manage_membership_change
_manage_membership_change:              ; @manage_membership_change
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _BOTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BOTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, x3, #4, ne
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x2
	sub	w8, w2, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _LIMITED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIMITED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x1, #4
	cmp	x8, x3
	csel	x20, x9, x1, eq
	mov	x0, x20
	bl	_cl_map_head
	mov	x21, x0
	mov	x0, x20
	bl	_cl_map_end
	cmp	w21, w0
	b.ne	LBB0_4
	b	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_cl_map_end
	mov	x21, x22
	cmp	w22, w0
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cl_map_next
	mov	x22, x0
	mov	x0, x21
	bl	_cl_map_obj
	ldr	w0, [x0]
	bl	_osm_node_get_type
	cmp	w0, w19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_cl_map_remove_item
	b	LBB0_3
LBB0_6:
	cmp	w19, #255
	b.eq	LBB0_10
; %bb.7:
	cbnz	w19, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _LIMITED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIMITED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x1, #4
	cmp	x8, x3
	csel	x0, x9, x1, eq
	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
	b	_cl_map_remove_all
LBB0_9:
	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_10:
Lloh9:
	adrp	x8, _LIMITED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIMITED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x9, x1, #4
	cmp	x8, x3
	csel	x19, x9, x1, eq
	mov	x0, x4
	bl	_cl_hton64
	mov	x1, x0
	mov	x0, x19
	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
	b	_cl_map_remove
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BOTH,8,3                       ; @BOTH
	.comm	_LIMITED,8,3                    ; @LIMITED
	.no_dead_strip	_manage_membership_change
.subsections_via_symbols
