	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_map_update
_apply_map_update:                      ## @apply_map_update
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	8(%r15), %rdx
	addq	$8, %rdx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, -8(%rdx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdx
	decq	%rsi
	jne	LBB0_2
LBB0_5:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_elog
	movq	(%r15), %rax
LBB0_7:
	movq	_MAX_MAPPINGS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	movq	(%r15), %rax
LBB0_9:
	movq	8(%r15), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	%rbx, (%rcx,%rdx)
	movq	%r14, 8(%rcx,%rdx)
	incq	%rax
	movq	%rax, (%r15)
	jmp	LBB0_10
LBB0_3:
	movq	%r14, (%rdx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to apply a mapping to unmapped relation %u"

	.comm	_MAX_MAPPINGS,8,3               ## @MAX_MAPPINGS
L_.str.1:                               ## @.str.1
	.asciz	"ran out of space in relation map"

	.no_dead_strip	_apply_map_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_map_update
_apply_map_update:                      ; @apply_map_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x20, #8]
	add	x9, x9, #8
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x21
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #16
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_4:
	cbnz	w3, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x8, [x20]
LBB0_6:
Lloh5:
	adrp	x9, _MAX_MAPPINGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_MAPPINGS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	ldr	x8, [x20]
LBB0_8:
	ldr	x9, [x20, #8]
	add	x9, x9, x8, lsl #4
	stp	x21, x19, [x9]
	add	x8, x8, #1
	str	x8, [x20]
	b	LBB0_10
LBB0_9:
	str	x19, [x9]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to apply a mapping to unmapped relation %u"

	.comm	_MAX_MAPPINGS,8,3               ; @MAX_MAPPINGS
l_.str.1:                               ; @.str.1
	.asciz	"ran out of space in relation map"

	.no_dead_strip	_apply_map_update
.subsections_via_symbols
