	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_detect_mimetype2        ## -- Begin function svn_io_detect_mimetype2
	.p2align	4, 0x90
_svn_io_detect_mimetype2:               ## @svn_io_detect_mimetype2
	.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	$1072, %rsp                     ## imm = 0x430
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$1024, -1076(%rbp)              ## imm = 0x400
	movq	$0, (%rdi)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	leaq	-1072(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_svn_path_splitext
	movq	-1072(%rbp), %rdi
	callq	_fileext_tolower
	movq	-1072(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_svn_hash_gets
	testq	%rax, %rax
	jne	LBB0_8
LBB0_2:
	leaq	-1096(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_svn_io_check_path
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-1096(%rbp), %rax
	movq	_svn_node_file@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_APR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1088(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_svn_io_file_open
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-1088(%rbp), %rdi
	leaq	-1072(%rbp), %rsi
	leaq	-1076(%rbp), %rdx
	movq	%r15, %rcx
	callq	_svn_io_file_read
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	callq	_APR_STATUS_IS_EOF
	testl	%eax, %eax
	je	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_svn_error_clear
	movq	-1088(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_io_file_close
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-1076(%rbp), %esi
	leaq	-1072(%rbp), %rdi
	callq	_svn_io_is_binary_data
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rax
LBB0_8:
	movq	%rax, (%r14)
LBB0_9:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_10
LBB0_3:
	movq	_SVN_ERR_BAD_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_svn_dirent_local_style
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_svn_error_createf
	movq	%rax, %rbx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rax
	addq	$1072, %rsp                     ## imm = 0x430
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"application/octet-stream"

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_svn_node_file,8,3              ## @svn_node_file
	.comm	_SVN_ERR_BAD_FILENAME,4,2       ## @SVN_ERR_BAD_FILENAME
L_.str.1:                               ## @.str.1
	.asciz	"Can't detect MIME type of non-file '%s'"

	.comm	_APR_READ,4,2                   ## @APR_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_detect_mimetype2        ; -- Begin function svn_io_detect_mimetype2
	.p2align	2
_svn_io_detect_mimetype2:               ; @svn_io_detect_mimetype2
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1056
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #1024
	str	w8, [sp, #4]
	str	xzr, [x0]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x22, x2
	add	x1, sp, #24
	mov	x0, #0
	mov	x2, x21
	mov	x3, x20
	bl	_svn_path_splitext
	ldr	x0, [sp, #24]
	bl	_fileext_tolower
	ldr	x1, [sp, #24]
	mov	x0, x22
	bl	_svn_hash_gets
	cbz	x0, LBB0_3
; %bb.2:
	str	x0, [x19]
	b	LBB0_8
LBB0_3:
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x20
	bl	_svn_io_check_path
	bl	_SVN_ERR
	ldr	x8, [sp, #16]
Lloh3:
	adrp	x9, _svn_node_file@GOTPAGE
Lloh4:
	ldr	x9, [x9, _svn_node_file@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _APR_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APR_READ@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	w3, #0
	mov	x4, x20
	bl	_svn_io_file_open
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #4
	mov	x3, x20
	bl	_svn_io_file_read
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	bl	_APR_STATUS_IS_EOF
	cbz	w0, LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_svn_error_clear
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_svn_io_file_close
	bl	_SVN_ERR
	ldr	w1, [sp, #4]
	add	x0, sp, #24
	bl	_svn_io_is_binary_data
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
LBB0_8:
Lloh11:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _SVN_ERR_BAD_FILENAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVN_ERR_BAD_FILENAME@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_svn_dirent_local_style
	mov	x3, x0
	mov	x0, x19
	mov	x1, #0
	mov	x2, x22
	bl	_svn_error_createf
	mov	x21, x0
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	add	sp, sp, #1056
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"application/octet-stream"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_svn_node_file,8,3              ; @svn_node_file
	.comm	_SVN_ERR_BAD_FILENAME,4,2       ; @SVN_ERR_BAD_FILENAME
l_.str.1:                               ; @.str.1
	.asciz	"Can't detect MIME type of non-file '%s'"

	.comm	_APR_READ,4,2                   ; @APR_READ
.subsections_via_symbols
