	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_pre_post_images
_update_pre_post_images:                ## @update_pre_post_images
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	-144(%rbp), %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movl	$1, %ecx
	callq	_prepare_image
	movl	-144(%rbp), %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	cmpl	(%rbx), %eax
	sete	%cl
	setle	%dl
	testq	%r14, %r14
	cmovel	%edx, %ecx
	movzbl	%cl, %edi
	callq	_assert
	movq	%rbx, %r9
	movl	-144(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movq	24(%r9), %rax
	movq	-120(%rbp), %rcx
	leaq	-1(%rsi), %rdi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdi
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %esi
	movl	$48, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rax,%rbx), %edx
	movl	%edx, -48(%rcx,%rbx)
	movl	-32(%rax,%rbx), %edx
	movl	%edx, -32(%rcx,%rbx)
	movl	-16(%rax,%rbx), %edx
	movl	%edx, -16(%rcx,%rbx)
	movl	(%rax,%rbx), %edx
	movl	%edx, (%rcx,%rbx)
	addq	$4, %rdi
	addq	$64, %rbx
	cmpq	%rdi, %rsi
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	shlq	$4, %rdi
	addq	%rdi, %rcx
	addq	%rdi, %rax
	shlq	$4, %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi), %edx
	movl	%edx, (%rcx,%rsi)
	addq	$16, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_7
LBB0_8:
	movl	32(%r9), %edi
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	callq	_free
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-112(%rbp), %rax
	movq	%rax, 32(%r11)
	movups	-144(%rbp), %xmm0
	movups	-128(%rbp), %xmm1
	movups	%xmm1, 16(%r11)
	movups	%xmm0, (%r11)
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	8(%r10), %rsi
	movq	%rsi, %rbx
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%rsi, %rbx
	callq	_xmalloc
	movq	%rbx, %rsi
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	%rax, %rbx
	movq	%rax, 8(%r10)
LBB0_10:
	movl	(%r10), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r11), %r14
	xorl	%r12d, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	%rdx, %rsi
	incq	%r12
	movslq	(%r10), %rax
	cmpq	%rax, %r12
	jge	LBB0_22
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	24(%r10), %rcx
	movq	%r12, %r13
	shlq	$4, %r13
	movq	8(%rcx,%r13), %rdx
	movq	_LINE_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx,%r13)
	je	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r11), %r9d
	cmpl	%r9d, %r15d
	jge	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	24(%r11), %r8
	movslq	%r15d, %rdx
	movq	%rdx, %rsi
	shlq	$32, %rsi
	incl	%r15d
	shlq	$4, %rdx
	leaq	(%r8,%rdx), %rdi
	addq	$8, %rdi
	movl	%r9d, %edx
	negl	%edx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%eax, -8(%rdi)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	addq	(%rdi), %r14
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	addq	%rcx, %rsi
	addq	$16, %rdi
	leal	(%rdx,%r15), %ecx
	incl	%ecx
	movl	%r15d, %ebx
	incl	%ebx
	movl	%ebx, %r15d
	cmpl	$1, %ecx
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r9d, %r15d
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rsi, %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_memmove
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	addq	%rdx, %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	sarq	$28, %rsi
	movq	8(%r8,%rsi), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	movq	%rax, %rcx
	movq	24(%r10), %rax
	movq	%rcx, 8(%rax,%r13)
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_22:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	testq	%r14, %r14
	je	LBB0_26
LBB0_24:
	movq	%rbx, %rcx
	subq	8(%r10), %rcx
	cmpq	%r14, %rcx
	jbe	LBB0_28
## %bb.25:
	movl	16(%r10), %edx
	jmp	LBB0_27
LBB0_11:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	jne	LBB0_24
LBB0_26:
	movslq	16(%r10), %rdx
	movq	%rbx, %rcx
	subq	8(%r10), %rcx
	cmpq	%rdx, %rcx
	jle	LBB0_28
LBB0_27:
	movq	%r10, %r15
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_BUG
	movl	(%r15), %eax
	subq	8(%r15), %rbx
	movq	%rbx, %rcx
	movq	%r15, %r10
LBB0_28:
	subl	%r12d, %eax
	movl	%ecx, 16(%r10)
	movl	%eax, (%r10)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_COMMON,4,2                ## @LINE_COMMON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"caller miscounted postlen: asked %d, orig = %d, used = %d"

	.no_dead_strip	_update_pre_post_images
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_pre_post_images
_update_pre_post_images:                ; @update_pre_post_images
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #24
	mov	x1, x2
	mov	x2, x3
	mov	w3, #1
	bl	_prepare_image
	ldr	w8, [sp, #24]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w8, eq
	cset	w9, le
	cmp	x20, #0
	csel	w0, w9, w8, eq
	bl	_assert
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x21, #24]
	ldr	x10, [sp, #48]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #16
	str	w11, [x10], #16
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x21, #32]
	bl	_free
	ldr	x8, [sp, #56]
	str	x8, [x21, #32]
	ldur	q0, [sp, #40]
	ldur	q1, [sp, #24]
	stp	q1, q0, [x21]
	ldr	x23, [x19, #8]
	mov	x22, x23
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_xmalloc
	mov	x22, x0
	str	x0, [x19, #8]
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.6:
	stp	x20, x21, [sp, #8]              ; 16-byte Folded Spill
	mov	x28, #0
	mov	w26, #0
	mov	w20, #0
	ldr	x24, [x21, #8]
	mov	x27, #4294967296
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w26, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, x25
	add	x28, x28, #1
	ldrsw	x8, [x19]
	cmp	x28, x8
	b.ge	LBB0_17
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x19, #24]
	add	x8, x8, x28, lsl #4
	ldr	x25, [x8, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x8, _LINE_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINE_COMMON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21]
	cmp	w20, w9
	b.ge	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x21, #24]
	sbfiz	x11, x20, #32, #32
	add	x12, x10, w20, sxtw #4
	add	x12, x12, #8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w13, [x12, #-8]
	tst	w13, w8
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x13, [x12], #16
	add	x24, x24, x13
	add	x11, x11, x27
	add	w20, w20, #1
	cmp	w9, w20
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, x9
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	bl	_memmove
	add	x22, x22, x25
	b	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x10, x11, asr #28
	mov	x21, x26
	ldr	x26, [x8, #8]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x26
	bl	_memcpy
	add	x22, x22, x26
	add	x24, x24, x26
	ldr	x8, [x19, #24]
	add	x8, x8, x28, lsl #4
	str	x26, [x8, #8]
	mov	x26, x21
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	add	w20, w20, #1
	b	LBB0_8
LBB0_17:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x20, LBB0_21
LBB0_18:
	ldr	x9, [x19, #8]
	sub	x3, x22, x9
	cmp	x3, x20
	b.ls	LBB0_23
; %bb.19:
	ldr	w2, [x19, #16]
	b	LBB0_22
LBB0_20:
	mov	w26, #0
	cbnz	x20, LBB0_18
LBB0_21:
	ldrsw	x2, [x19, #16]
	ldr	x9, [x19, #8]
	sub	x3, x22, x9
	cmp	x3, x2
	b.le	LBB0_23
LBB0_22:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_BUG
	ldr	x9, [x19, #8]
	ldr	w8, [x19]
	sub	x3, x22, x9
LBB0_23:
	str	w3, [x19, #16]
	sub	w8, w8, w26
	str	w8, [x19]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_COMMON,4,2                ; @LINE_COMMON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"caller miscounted postlen: asked %d, orig = %d, used = %d"

	.no_dead_strip	_update_pre_post_images
.subsections_via_symbols
