	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__delta                     ## -- Begin function cmd__delta
	.p2align	4, 0x90
_cmd__delta:                            ## @cmd__delta
	.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
	cmpl	$5, %edi
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_usage_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_24:
	movl	$1, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%r12), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%eax, %eax
	callq	_open
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, %r13
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_read_in_full
	testq	%rax, %rax
	js	LBB0_8
## %bb.10:
	movl	%ebx, %edi
	callq	_close
	movq	24(%r12), %rdi
	movl	(%r15), %esi
	xorl	%eax, %eax
	callq	_open
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_xmalloc
	movq	%rax, %r15
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_read_in_full
	testq	%rax, %rax
	js	LBB0_14
## %bb.15:
	movl	%ebx, %edi
	callq	_close
	movq	8(%r12), %rax
	cmpb	$100, 1(%rax)
	jne	LBB0_17
## %bb.16:
	leaq	-64(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	xorl	%r9d, %r9d
	callq	_diff_delta
	jmp	LBB0_18
LBB0_17:
	leaq	-64(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_patch_delta
LBB0_18:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	32(%r12), %rdi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%ebx, %ebx
	movl	$438, %edx                      ## imm = 0x1B6
	xorl	%eax, %eax
	callq	_open
	testl	%eax, %eax
	js	LBB0_22
## %bb.21:
	movq	-64(%rbp), %rdx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_write_in_full
	testq	%rax, %rax
	jns	LBB0_25
LBB0_22:
	movq	32(%r12), %rdi
	jmp	LBB0_23
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_24
LBB0_6:
	movq	16(%r12), %rdi
	jmp	LBB0_23
LBB0_12:
	movq	24(%r12), %rdi
LBB0_23:
	callq	_perror
	jmp	LBB0_24
LBB0_8:
	movq	16(%r12), %rdi
	jmp	LBB0_9
LBB0_14:
	movq	24(%r12), %rdi
LBB0_9:
	callq	_perror
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-d"

L_.str.1:                               ## @.str.1
	.asciz	"-p"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"usage: %s\n"

	.comm	_usage_str,8,3                  ## @usage_str
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.3:                               ## @.str.3
	.asciz	"delta operation failed (returned NULL)\n"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__delta                     ; -- Begin function cmd__delta
	.p2align	2
_cmd__delta:                            ; @cmd__delta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w0, #5
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _usage_str@GOTPAGE
Lloh8:
	ldr	x8, [x8, _usage_str@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	bl	_fprintf
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	x0, [x19, #16]
Lloh12:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh13:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_open
	tbnz	w0, #31, LBB0_20
; %bb.8:
	mov	x22, x0
	add	x1, sp, #24
	bl	_fstat
	cbnz	x0, LBB0_20
; %bb.9:
	ldr	x20, [sp, #24]
	mov	x0, x20
	bl	_xmalloc
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_read_in_full
	tbnz	x0, #63, LBB0_22
; %bb.10:
	mov	x0, x22
	bl	_close
	ldr	x0, [x19, #24]
	ldr	w1, [x23]
	bl	_open
	tbnz	w0, #31, LBB0_21
; %bb.11:
	mov	x23, x0
	add	x1, sp, #24
	bl	_fstat
	cbnz	x0, LBB0_21
; %bb.12:
	ldr	x22, [sp, #24]
	mov	x0, x22
	bl	_xmalloc
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_read_in_full
	tbnz	x0, #63, LBB0_25
; %bb.13:
	mov	x0, x23
	bl	_close
	ldr	x8, [x19, #8]
	ldrb	w8, [x8, #1]
	add	x4, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	cmp	w8, #100
	b.ne	LBB0_18
; %bb.14:
	mov	w5, #0
	bl	_diff_delta
	mov	x20, x0
	cbz	x0, LBB0_19
LBB0_15:
	ldr	x0, [x19, #32]
Lloh14:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w8, #438
	str	x8, [sp]
	bl	_open
	tbnz	w0, #31, LBB0_23
; %bb.16:
	ldr	x2, [sp, #16]
	mov	x1, x20
	bl	_write_in_full
	tbnz	x0, #63, LBB0_23
; %bb.17:
	mov	w0, #0
	b	LBB0_6
LBB0_18:
	bl	_patch_delta
	mov	x20, x0
	cbnz	x0, LBB0_15
LBB0_19:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_20:
	ldr	x0, [x19, #16]
	b	LBB0_24
LBB0_21:
	ldr	x0, [x19, #24]
	b	LBB0_24
LBB0_22:
	ldr	x0, [x19, #16]
	bl	_perror
	mov	x0, x22
	bl	_close
	b	LBB0_5
LBB0_23:
	ldr	x0, [x19, #32]
LBB0_24:
	bl	_perror
	b	LBB0_5
LBB0_25:
	ldr	x0, [x19, #24]
	bl	_perror
	mov	x0, x23
	bl	_close
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-d"

l_.str.1:                               ; @.str.1
	.asciz	"-p"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"usage: %s\n"

	.comm	_usage_str,8,3                  ; @usage_str
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.3:                               ; @.str.3
	.asciz	"delta operation failed (returned NULL)\n"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
.subsections_via_symbols
