	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createBackupLabel
_createBackupLabel:                     ## @createBackupLabel
	.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	$1160, %rsp                     ## imm = 0x488
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	%rsp, -1200(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXFNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_WalSegSz@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_XLByteToSeg
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_XLogFileName
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -1188(%rbp)
	leaq	-1188(%rbp), %rdi
	callq	_localtime
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$128, %esi
	movq	%rax, %rcx
	callq	_strftime
	subq	$32, %rsp
	movq	%rbx, 16(%rsp)
	movl	%r14d, 8(%rsp)
	leaq	L_.str.1(%rip), %rdx
	leaq	-1184(%rbp), %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movl	%r15d, %r8d
	movq	%r13, %r9
	callq	_snprintf
	addq	$32, %rsp
	movl	%eax, %ebx
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jb	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	_pg_fatal
LBB0_2:
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %esi
	callq	_open_target_file
	leaq	-1184(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_write_target_range
	xorl	%eax, %eax
	callq	_close_target_file
	movq	-1200(%rbp), %rsp               ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXFNAMELEN,4,2                ## @MAXFNAMELEN
	.comm	_WalSegSz,4,2                   ## @WalSegSz
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%Y-%m-%d %H:%M:%S %Z"

L_.str.1:                               ## @.str.1
	.asciz	"START WAL LOCATION: %X/%X (file %s)\nCHECKPOINT LOCATION: %X/%X\nBACKUP METHOD: pg_rewind\nBACKUP FROM: standby\nSTART TIME: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"backup label buffer too small"

L_.str.3:                               ## @.str.3
	.asciz	"backup_label"

	.no_dead_strip	_createBackupLabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createBackupLabel
_createBackupLabel:                     ; @createBackupLabel
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1152
	mov	x19, sp
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXFNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXFNAMELEN@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	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x25, _WalSegSz@GOTPAGE
Lloh9:
	ldr	x25, [x25, _WalSegSz@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_XLByteToSeg
	ldr	w3, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_XLogFileName
	mov	x0, #0
	bl	_time
	str	w0, [x19, #12]
	add	x0, x19, #12
	bl	_localtime
	mov	x3, x0
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	sub	x22, x29, #200
	sub	x0, x29, #200
	mov	w1, #128
	bl	_strftime
	str	x22, [sp, #-16]!
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, x19, #16
	mov	w1, #1000
	mov	x4, x21
	mov	x5, x23
	mov	x7, x20
	bl	_snprintf
	add	sp, sp, #16
	mov	x20, x0
	cmp	w0, #1000
	b.lo	LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_fatal
LBB0_2:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_open_target_file
	add	x0, x19, #16
	mov	w1, #0
	mov	x2, x20
	bl	_write_target_range
	bl	_close_target_file
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXFNAMELEN,4,2                ; @MAXFNAMELEN
	.comm	_WalSegSz,4,2                   ; @WalSegSz
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%Y-%m-%d %H:%M:%S %Z"

l_.str.1:                               ; @.str.1
	.asciz	"START WAL LOCATION: %X/%X (file %s)\nCHECKPOINT LOCATION: %X/%X\nBACKUP METHOD: pg_rewind\nBACKUP FROM: standby\nSTART TIME: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"backup label buffer too small"

l_.str.3:                               ; @.str.3
	.asciz	"backup_label"

	.no_dead_strip	_createBackupLabel
.subsections_via_symbols
