	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdb_write_config
_bdb_write_config:                      ## @bdb_write_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edx
	movl	16(%rdi), %edi
	movq	_BDB_CONFIG_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_svn_dirent_join
	movq	_APR_WRITE@GOTPCREL(%rip), %rcx
	movq	_APR_CREATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	$0, -48(%rbp)
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r15), %r8d
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_svn_io_file_open
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	movl	(%r15), %r8d
	leaq	_bdb_write_config.dbconfig_contents(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1841, %edx                     ## imm = 0x731
	xorl	%ecx, %ecx
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	$128, %esi
	callq	_svn_hash_gets
	movq	%rax, %r14
LBB0_2:
	movq	-48(%rbp), %rbx
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movl	(%r15), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_DB_VERSION_MAJOR@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	$4, %eax
	jne	LBB0_5
## %bb.3:
	movq	_DB_VERSION_MINOR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jns	LBB0_6
	jmp	LBB0_4
LBB0_5:
	jle	LBB0_4
LBB0_6:
	testq	%r14, %r14
	je	LBB0_4
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	leaq	_bdb_write_config.dbconfig_options+32(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	_bdb_write_config.dbconfig_options+24(%rip), %rax
LBB0_9:
	movq	(%rax), %rbx
	movq	-48(%rbp), %r12
	movq	%rbx, %rdi
	callq	_strlen
	movl	(%r15), %r8d
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movl	$129, %esi
	callq	_svn_hash_gets
	movq	%rax, %r14
LBB0_11:
	movq	-48(%rbp), %rbx
	leaq	L_.str.3(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movl	(%r15), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	(%r13), %eax
	cmpl	$4, %eax
	jne	LBB0_14
## %bb.12:
	movq	_DB_VERSION_MINOR@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jge	LBB0_15
	jmp	LBB0_13
LBB0_14:
	jle	LBB0_13
LBB0_15:
	testq	%r14, %r14
	je	LBB0_13
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	leaq	_bdb_write_config.dbconfig_options+72(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	leaq	_bdb_write_config.dbconfig_options+64(%rip), %rax
LBB0_18:
	movq	(%rax), %rbx
	movq	-48(%rbp), %r14
	movq	%rbx, %rdi
	callq	_strlen
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	movl	(%r15), %esi
	callq	_svn_io_file_close
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_CONFIG_FILE,4,2            ## @BDB_CONFIG_FILE
	.section	__TEXT,__const
	.p2align	4                               ## @bdb_write_config.dbconfig_contents
_bdb_write_config.dbconfig_contents:
	.asciz	"# This is the configuration file for the Berkeley DB environment\n# used by your Subversion repository.\n# You must run 'svnadmin recover' whenever you modify this file,\n# for your changes to take effect.\n\n### Lock subsystem\n#\n# Make sure you read the documentation at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/lock_max.html\n#\n# before tweaking these values.\n#\nset_lk_max_locks   2000\nset_lk_max_lockers 2000\nset_lk_max_objects 2000\n\n### Log file subsystem\n#\n# Make sure you read the documentation at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/api_reference/C/envset_lg_bsize.html\n#   http://docs.oracle.com/cd/E17076_02/html/api_reference/C/envset_lg_max.html\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_limits.html\n#\n# Increase the size of the in-memory log buffer from the default\n# of 32 Kbytes to 256 Kbytes.  Decrease the log file size from\n# 10 Mbytes to 1 Mbyte.  This will help reduce the amount of disk\n# space required for hot backups.  The size of the log file must be\n# at least four times the size of the in-memory log buffer.\n#\n# Note: Decreasing the in-memory buffer size below 256 Kbytes will hurt\n# hurt commit performance. For details, see:\n#\n#   http://svn.haxx.se/dev/archive-2002-02/0141.shtml\n#\nset_lg_bsize     262144\nset_lg_max      1048576\n#\n# If you see \"log region out of memory\" errors, bump lg_regionmax.\n# For more information, see:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_config.html\n#   http://svn.haxx.se/users/archive-2004-10/1000.shtml\n#\nset_lg_regionmax 131072\n#\n# The default cache size in BDB is only 256k. As explained in\n# http://svn.haxx.se/dev/archive-2004-12/0368.shtml, this is too\n# small for most applications. Bump this number if \"db_stat -m\"\n# shows too many cache misses.\n#\nset_cachesize    0 1048576 1\n"

	.section	__DATA,__const
	.p2align	4                               ## @bdb_write_config.dbconfig_options
_bdb_write_config.dbconfig_options:
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.quad	128
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.quad	129
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#\n# Disable fsync of log files on transaction commit. Read the\n# documentation about DB_TXN_NOSYNC at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_config.html\n#\n# [requires Berkeley DB 4.0]\n#\n"

L_.str.1:                               ## @.str.1
	.asciz	"#set_flags DB_TXN_NOSYNC\n"

L_.str.2:                               ## @.str.2
	.asciz	"set_flags DB_TXN_NOSYNC\n"

L_.str.3:                               ## @.str.3
	.asciz	"#\n# Enable automatic removal of unused transaction log files.\n# Read the documentation about DB_LOG_AUTOREMOVE at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_config.html\n#\n# [requires Berkeley DB 4.2]\n#\n"

L_.str.4:                               ## @.str.4
	.asciz	"#set_flags DB_LOG_AUTOREMOVE\n"

L_.str.5:                               ## @.str.5
	.asciz	"set_flags DB_LOG_AUTOREMOVE\n"

	.comm	_APR_WRITE,4,2                  ## @APR_WRITE
	.comm	_APR_CREATE,4,2                 ## @APR_CREATE
	.comm	_APR_OS_DEFAULT,4,2             ## @APR_OS_DEFAULT
	.comm	_DB_VERSION_MAJOR,4,2           ## @DB_VERSION_MAJOR
	.comm	_DB_VERSION_MINOR,4,2           ## @DB_VERSION_MINOR
L_.str.6:                               ## @.str.6
	.asciz	"0"

	.no_dead_strip	_bdb_write_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdb_write_config
_bdb_write_config:                      ; @bdb_write_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _BDB_CONFIG_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BDB_CONFIG_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_svn_dirent_join
	mov	x1, x0
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _APR_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _APR_CREATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APR_CREATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh9:
	adrp	x8, _APR_OS_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APR_OS_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w4, [x19]
	add	x0, sp, #8
	bl	_svn_io_file_open
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	ldr	w4, [x19]
Lloh12:
	adrp	x1, _bdb_write_config.dbconfig_contents@PAGE
Lloh13:
	add	x1, x1, _bdb_write_config.dbconfig_contents@PAGEOFF
	mov	w2, #1841
	mov	x3, #0
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #128
	bl	_svn_hash_gets
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	ldr	x21, [sp, #8]
Lloh14:
	adrp	x22, l_.str@PAGE
Lloh15:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	ldr	w4, [x19]
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
Lloh16:
	adrp	x23, _DB_VERSION_MAJOR@GOTPAGE
Lloh17:
	ldr	x23, [x23, _DB_VERSION_MAJOR@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #4
	b.ne	LBB0_6
; %bb.4:
Lloh18:
	adrp	x8, _DB_VERSION_MINOR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DB_VERSION_MINOR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_9
; %bb.5:
	cbnz	x20, LBB0_7
	b	LBB0_9
LBB0_6:
	cmp	w8, #5
	ccmp	x20, #0, #4, ge
	b.eq	LBB0_9
LBB0_7:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _bdb_write_config.dbconfig_options@PAGE+32
Lloh24:
	add	x8, x8, _bdb_write_config.dbconfig_options@PAGEOFF+32
	b	LBB0_10
LBB0_9:
Lloh25:
	adrp	x8, _bdb_write_config.dbconfig_options@PAGE+24
Lloh26:
	add	x8, x8, _bdb_write_config.dbconfig_options@PAGEOFF+24
LBB0_10:
	ldr	x20, [x8]
	ldr	x21, [sp, #8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	ldr	w4, [x19]
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.11:
	mov	w1, #129
	bl	_svn_hash_gets
	mov	x20, x0
	b	LBB0_13
LBB0_12:
	mov	x20, #0
LBB0_13:
	ldr	x21, [sp, #8]
Lloh27:
	adrp	x22, l_.str.3@PAGE
Lloh28:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	ldr	w4, [x19]
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
	ldr	w8, [x23]
	cmp	w8, #4
	b.ne	LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _DB_VERSION_MINOR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DB_VERSION_MINOR@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ge	LBB0_16
	b	LBB0_19
LBB0_15:
	cmp	w8, #5
	b.lt	LBB0_19
LBB0_16:
	cbz	x20, LBB0_19
; %bb.17:
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.18:
Lloh34:
	adrp	x8, _bdb_write_config.dbconfig_options@PAGE+72
Lloh35:
	add	x8, x8, _bdb_write_config.dbconfig_options@PAGEOFF+72
	b	LBB0_20
LBB0_19:
Lloh36:
	adrp	x8, _bdb_write_config.dbconfig_options@PAGE+64
Lloh37:
	add	x8, x8, _bdb_write_config.dbconfig_options@PAGEOFF+64
LBB0_20:
	ldr	x20, [x8]
	ldr	x21, [sp, #8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	ldr	w4, [x19]
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	ldr	w1, [x19]
	bl	_svn_io_file_close
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_CONFIG_FILE,4,2            ; @BDB_CONFIG_FILE
	.section	__TEXT,__const
_bdb_write_config.dbconfig_contents:    ; @bdb_write_config.dbconfig_contents
	.asciz	"# This is the configuration file for the Berkeley DB environment\n# used by your Subversion repository.\n# You must run 'svnadmin recover' whenever you modify this file,\n# for your changes to take effect.\n\n### Lock subsystem\n#\n# Make sure you read the documentation at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/lock_max.html\n#\n# before tweaking these values.\n#\nset_lk_max_locks   2000\nset_lk_max_lockers 2000\nset_lk_max_objects 2000\n\n### Log file subsystem\n#\n# Make sure you read the documentation at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/api_reference/C/envset_lg_bsize.html\n#   http://docs.oracle.com/cd/E17076_02/html/api_reference/C/envset_lg_max.html\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_limits.html\n#\n# Increase the size of the in-memory log buffer from the default\n# of 32 Kbytes to 256 Kbytes.  Decrease the log file size from\n# 10 Mbytes to 1 Mbyte.  This will help reduce the amount of disk\n# space required for hot backups.  The size of the log file must be\n# at least four times the size of the in-memory log buffer.\n#\n# Note: Decreasing the in-memory buffer size below 256 Kbytes will hurt\n# hurt commit performance. For details, see:\n#\n#   http://svn.haxx.se/dev/archive-2002-02/0141.shtml\n#\nset_lg_bsize     262144\nset_lg_max      1048576\n#\n# If you see \"log region out of memory\" errors, bump lg_regionmax.\n# For more information, see:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_config.html\n#   http://svn.haxx.se/users/archive-2004-10/1000.shtml\n#\nset_lg_regionmax 131072\n#\n# The default cache size in BDB is only 256k. As explained in\n# http://svn.haxx.se/dev/archive-2004-12/0368.shtml, this is too\n# small for most applications. Bump this number if \"db_stat -m\"\n# shows too many cache misses.\n#\nset_cachesize    0 1048576 1\n"

	.section	__DATA,__const
	.p2align	3                               ; @bdb_write_config.dbconfig_options
_bdb_write_config.dbconfig_options:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.quad	128
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.quad	129
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#\n# Disable fsync of log files on transaction commit. Read the\n# documentation about DB_TXN_NOSYNC at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_config.html\n#\n# [requires Berkeley DB 4.0]\n#\n"

l_.str.1:                               ; @.str.1
	.asciz	"#set_flags DB_TXN_NOSYNC\n"

l_.str.2:                               ; @.str.2
	.asciz	"set_flags DB_TXN_NOSYNC\n"

l_.str.3:                               ; @.str.3
	.asciz	"#\n# Enable automatic removal of unused transaction log files.\n# Read the documentation about DB_LOG_AUTOREMOVE at:\n#\n#   http://docs.oracle.com/cd/E17076_02/html/programmer_reference/log_config.html\n#\n# [requires Berkeley DB 4.2]\n#\n"

l_.str.4:                               ; @.str.4
	.asciz	"#set_flags DB_LOG_AUTOREMOVE\n"

l_.str.5:                               ; @.str.5
	.asciz	"set_flags DB_LOG_AUTOREMOVE\n"

	.comm	_APR_WRITE,4,2                  ; @APR_WRITE
	.comm	_APR_CREATE,4,2                 ; @APR_CREATE
	.comm	_APR_OS_DEFAULT,4,2             ; @APR_OS_DEFAULT
	.comm	_DB_VERSION_MAJOR,4,2           ; @DB_VERSION_MAJOR
	.comm	_DB_VERSION_MINOR,4,2           ; @DB_VERSION_MINOR
l_.str.6:                               ; @.str.6
	.asciz	"0"

	.no_dead_strip	_bdb_write_config
.subsections_via_symbols
