	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_one_window
_apply_one_window:                      ## @apply_one_window
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_WINDOW_INIT
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rbx, %rdi
	callq	_assert
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_read_length
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_read_length
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_read_length
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	leaq	-36(%rbp), %rdx
	movq	-72(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_read_chunk
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	leaq	-40(%rbp), %rdx
	movq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_read_chunk
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_grow
	movq	%rbx, %rdi
	callq	_apply_window_in_core
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jne	LBB0_7
## %bb.8:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_write_strbuf
	xorl	%r15d, %r15d
	negq	%rax
	sbbl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_error
	movl	%eax, %r15d
LBB0_9:
	leaq	-48(%rbp), %rdi
	callq	_window_release
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid delta: incorrect postimage length"

	.no_dead_strip	_apply_one_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_one_window
_apply_one_window:                      ; @apply_one_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_WINDOW_INIT
	stp	x0, x1, [sp, #32]
	mov	x0, x20
	bl	_assert
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, x20
	bl	_read_length
	cbnz	x0, LBB0_6
; %bb.1:
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x20
	bl	_read_length
	cbnz	x0, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_read_length
	cbnz	x0, LBB0_6
; %bb.3:
	add	x8, sp, #32
	add	x2, x8, #12
	ldr	x3, [sp, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_read_chunk
	cbnz	x0, LBB0_6
; %bb.4:
	add	x8, sp, #32
	add	x2, x8, #8
	ldr	x3, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_read_chunk
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x1, [sp, #24]
	add	x0, sp, #32
	bl	_strbuf_grow
	add	x0, sp, #32
	bl	_apply_window_in_core
	cbz	x0, LBB0_8
LBB0_6:
	mov	w19, #-1
LBB0_7:
	add	x0, sp, #32
	bl	_window_release
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldp	x9, x8, [sp, #24]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	add	x0, sp, #32
	mov	x1, x19
	bl	_write_strbuf
	cmp	x0, #0
	csetm	w19, ne
	b	LBB0_7
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	x19, x0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid delta: incorrect postimage length"

	.no_dead_strip	_apply_one_window
.subsections_via_symbols
