	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_storage_add_binlog             ## -- Begin function storage_add_binlog
	.p2align	4, 0x90
_storage_add_binlog:                    ## @storage_add_binlog
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	%r12, %rdi
	callq	_realpath
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	leaq	-56(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r12, %rdi
	callq	_read_volume_info
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_get_volume_f
	movq	%rax, %r12
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	44(%rax), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_4
LBB0_6:
	movq	_MAX_VOLUME_BINLOGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_kprintf
	movq	_STORAGE_ERR_PATH_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_kprintf
	jmp	LBB0_18
LBB0_10:
	testl	%edx, %edx
	jle	LBB0_14
## %bb.11:
	movq	8(%r12), %rax
	movl	%edx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	cmpl	%r14d, (%rsi)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_14:
	movq	%r12, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_pthread_mutex_lock
	movl	$48, %edi
	callq	_tszmalloc0
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movslq	(%r12), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	-56(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	%r14d, (%rbx)
	movq	%r15, %rdi
	callq	_strdup
	movl	%eax, 44(%rbx)
	movq	-72(%rbp), %rax
	movq	%rax, 24(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 32(%rbx)
	movq	$-1, 36(%rbx)
	incl	(%r12)
	movq	%r13, %rdi
	callq	_pthread_mutex_unlock
	movq	%r12, %rdi
	callq	_storage_evaluate_priorities
	movl	(%r12), %ebx
	decl	%ebx
	jmp	LBB0_18
LBB0_15:
	movq	-56(%rbp), %rsi
	movq	_Dirs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.3(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_kprintf
	movq	_STORAGE_ERR_TOO_MANY_BINLOGS@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"absolute filename for binlog %s is too long. %m\n"

	.comm	_STORAGE_ERR_PATH_TOO_LONG,4,2  ## @STORAGE_ERR_PATH_TOO_LONG
L_.str.1:                               ## @.str.1
	.asciz	"read_volume_info (%s) return error code %d.\n"

	.comm	_MAX_VOLUME_BINLOGS,4,2         ## @MAX_VOLUME_BINLOGS
L_.str.2:                               ## @.str.2
	.asciz	"Found too many binlogs for volume_id = %lld (max binlogs = %d).\n"

	.comm	_STORAGE_ERR_TOO_MANY_BINLOGS,4,2 ## @STORAGE_ERR_TOO_MANY_BINLOGS
L_.str.3:                               ## @.str.3
	.asciz	"More than one binlog file for volume_id = %lld in directory %s. Hint: your could change extention from .bin for something else for hiding old binlog files.\n"

	.comm	_Dirs,8,3                       ## @Dirs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_storage_add_binlog             ; -- Begin function storage_add_binlog
	.p2align	2
_storage_add_binlog:                    ; @storage_add_binlog
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x1, x9, x8
	mov	sp, x1
	bl	_realpath
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	sub	x1, x29, #64
	sub	x2, x29, #72
	sub	x3, x29, #76
	mov	x0, x21
	bl	_read_volume_info
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldur	x0, [x29, #-64]
	mov	w1, #1
	bl	_get_volume_f
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w1, [x8, #44]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_6:
Lloh8:
	adrp	x9, _MAX_VOLUME_BINLOGS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_VOLUME_BINLOGS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
	ldur	x9, [x29, #-64]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x9, x8, [sp, #-16]!
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_8:
	str	x21, [sp, #-16]!
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	add	sp, sp, #16
Lloh15:
	adrp	x8, _STORAGE_ERR_PATH_TOO_LONG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STORAGE_ERR_PATH_TOO_LONG@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
	mov	x22, x0
	stp	x21, x22, [sp, #-16]!
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	add	sp, sp, #16
	b	LBB0_19
LBB0_10:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	ldr	x9, [x21, #8]
	mov	w8, w8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	w10, [x10]
	cmp	w10, w19
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_12
LBB0_14:
	add	x22, x21, #4
	mov	x0, x22
	bl	_pthread_mutex_lock
	mov	w0, #48
	bl	_tszmalloc0
	mov	x23, x0
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	str	x0, [x8, x9, lsl #3]
	ldur	x8, [x29, #-64]
	str	x8, [x0, #8]
	str	w19, [x0]
	mov	x0, x20
	bl	_strdup
	str	w0, [x23, #44]
	ldur	x8, [x29, #-72]
	str	x8, [x23, #24]
	ldur	w8, [x29, #-76]
	str	w8, [x23, #32]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x23, #36]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x22
	bl	_pthread_mutex_unlock
	mov	x0, x21
	bl	_storage_evaluate_priorities
	ldr	w8, [x21]
	sub	w22, w8, #1
	b	LBB0_19
LBB0_15:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_19
LBB0_16:
	ldur	x8, [x29, #-64]
Lloh19:
	adrp	x9, _Dirs@GOTPAGE
Lloh20:
	ldr	x9, [x9, _Dirs@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w9, [x9, w19, sxtw #2]
	stp	x8, x9, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	bl	_kprintf
	add	sp, sp, #16
Lloh24:
	adrp	x8, _STORAGE_ERR_TOO_MANY_BINLOGS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STORAGE_ERR_TOO_MANY_BINLOGS@GOTPAGEOFF]
LBB0_18:
	ldr	w22, [x8]
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x22
	sub	sp, x29, #48
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"absolute filename for binlog %s is too long. %m\n"

	.comm	_STORAGE_ERR_PATH_TOO_LONG,4,2  ; @STORAGE_ERR_PATH_TOO_LONG
l_.str.1:                               ; @.str.1
	.asciz	"read_volume_info (%s) return error code %d.\n"

	.comm	_MAX_VOLUME_BINLOGS,4,2         ; @MAX_VOLUME_BINLOGS
l_.str.2:                               ; @.str.2
	.asciz	"Found too many binlogs for volume_id = %lld (max binlogs = %d).\n"

	.comm	_STORAGE_ERR_TOO_MANY_BINLOGS,4,2 ; @STORAGE_ERR_TOO_MANY_BINLOGS
l_.str.3:                               ; @.str.3
	.asciz	"More than one binlog file for volume_id = %lld in directory %s. Hint: your could change extention from .bin for something else for hiding old binlog files.\n"

	.comm	_Dirs,8,3                       ; @Dirs
.subsections_via_symbols
