	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_last_size                   ## -- Begin function on_last_size
	.p2align	4, 0x90
_on_last_size:                          ## @on_last_size
	.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	_BINLOG_POSITION@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_LAST_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_1
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_1:
	movq	_BINLOG_NAME_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_BINLOG_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-7(%rbx), %rdx
	leaq	_on_last_size.buf(%rip), %r13
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movb	$0, -7(%rbx,%r13)
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_link
	testl	%eax, %eax
	jns	LBB0_7
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	leaq	_on_last_size.buf(%rip), %rdi
	callq	_unlink
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
LBB0_5:
	movl	(%r12), %edi
	leaq	_on_last_size.buf(%rip), %rsi
	callq	_link
	testl	%eax, %eax
	jns	LBB0_7
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
LBB0_7:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BINLOG_POSITION,8,3            ## @BINLOG_POSITION
	.comm	_LAST_SIZE,8,3                  ## @LAST_SIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected size %lld, found %lld\n"

.zerofill __DATA,__bss,_on_last_size.buf,1024,4 ## @on_last_size.buf
	.comm	_BINLOG_NAME_LEN,4,2            ## @BINLOG_NAME_LEN
	.comm	_BINLOG_NAME,4,2                ## @BINLOG_NAME
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"Can not delete previous link: %m\n"

L_.str.2:                               ## @.str.2
	.asciz	"Can not create link: %m\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_last_size                   ; -- Begin function on_last_size
	.p2align	2
_on_last_size:                          ; @on_last_size
	.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
Lloh0:
	adrp	x21, _BINLOG_POSITION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BINLOG_POSITION@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _LAST_SIZE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LAST_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh4:
	adrp	x10, _stderr@GOTPAGE
Lloh5:
	ldr	x10, [x10, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x10]
	stp	x9, x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	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
LBB0_2:
Lloh9:
	adrp	x8, _BINLOG_NAME_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BINLOG_NAME_LEN@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
Lloh12:
	adrp	x23, _BINLOG_NAME@GOTPAGE
Lloh13:
	ldr	x23, [x23, _BINLOG_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	sub	x19, x8, #7
Lloh14:
	adrp	x20, _on_last_size.buf@PAGE
Lloh15:
	add	x20, x20, _on_last_size.buf@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	strb	wzr, [x20, x19]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_link
	tbz	w0, #31, LBB0_8
; %bb.3:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _EEXIST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh22:
	adrp	x0, _on_last_size.buf@PAGE
Lloh23:
	add	x0, x0, _on_last_size.buf@PAGEOFF
	bl	_unlink
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_6:
	ldr	w0, [x23]
Lloh29:
	adrp	x1, _on_last_size.buf@PAGE
Lloh30:
	add	x1, x1, _on_last_size.buf@PAGEOFF
	bl	_link
	tbz	w0, #31, LBB0_8
LBB0_7:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_8:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	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
	b	_assert
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_BINLOG_POSITION,8,3            ; @BINLOG_POSITION
	.comm	_LAST_SIZE,8,3                  ; @LAST_SIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected size %lld, found %lld\n"

.zerofill __DATA,__bss,_on_last_size.buf,1024,0 ; @on_last_size.buf
	.comm	_BINLOG_NAME_LEN,4,2            ; @BINLOG_NAME_LEN
	.comm	_BINLOG_NAME,4,2                ; @BINLOG_NAME
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"Can not delete previous link: %m\n"

l_.str.2:                               ; @.str.2
	.asciz	"Can not create link: %m\n"

.subsections_via_symbols
