	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_magic
_read_magic:                            ## @read_magic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	leaq	-16(%rbp), %rdx
	movl	$4, %ecx
	callq	_read_chunk
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-16(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movl	-16(%rbp), %edi
	leaq	_read_magic.magic(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	movq	%rax, %rbx
	leaq	-16(%rbp), %rdi
	callq	_strbuf_release
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_error
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_read_magic.magic:                      ## @read_magic.magic
	.asciz	"SVN"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid delta: unrecognized file type"

	.no_dead_strip	_read_magic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_magic
_read_magic:                            ; @read_magic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	w3, #4
	bl	_read_chunk
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	ldr	w0, [sp, #8]
Lloh3:
	adrp	x1, _read_magic.magic@PAGE
Lloh4:
	add	x1, x1, _read_magic.magic@PAGEOFF
	mov	w2, #4
	bl	_memcmp
	mov	x19, x0
	add	x0, sp, #8
	bl	_strbuf_release
	cbz	x19, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_read_magic.magic:                      ; @read_magic.magic
	.asciz	"SVN"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid delta: unrecognized file type"

	.no_dead_strip	_read_magic
.subsections_via_symbols
