	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_recovery_target_timeline
_check_recovery_target_timeline:        ## @check_recovery_target_timeline
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	_RECOVERY_TARGET_TIMELINE_NUMERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	(%rbx), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	(%r12), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_GUC_check_errdetail
	jmp	LBB0_9
LBB0_1:
	movq	_RECOVERY_TARGET_TIMELINE_CONTROLFILE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_RECOVERY_TARGET_TIMELINE_LATEST@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_guc_malloc
	movl	%r15d, (%rax)
	movq	%rax, (%r14)
	movl	$1, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current"

	.comm	_RECOVERY_TARGET_TIMELINE_CONTROLFILE,4,2 ## @RECOVERY_TARGET_TIMELINE_CONTROLFILE
L_.str.1:                               ## @.str.1
	.asciz	"latest"

	.comm	_RECOVERY_TARGET_TIMELINE_LATEST,4,2 ## @RECOVERY_TARGET_TIMELINE_LATEST
	.comm	_RECOVERY_TARGET_TIMELINE_NUMERIC,4,2 ## @RECOVERY_TARGET_TIMELINE_NUMERIC
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ERANGE,8,3                     ## @ERANGE
L_.str.2:                               ## @.str.2
	.asciz	"recovery_target_timeline is not a valid number."

	.comm	_ERROR,4,2                      ## @ERROR
	.no_dead_strip	_check_recovery_target_timeline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_recovery_target_timeline
_check_recovery_target_timeline:        ; @check_recovery_target_timeline
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _RECOVERY_TARGET_TIMELINE_NUMERIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RECOVERY_TARGET_TIMELINE_NUMERIC@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x22, _errno@GOTPAGE
Lloh8:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	ldr	x0, [x20]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoul
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _EINVAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _ERANGE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ERANGE@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_GUC_check_errdetail
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh17:
	adrp	x8, _RECOVERY_TARGET_TIMELINE_CONTROLFILE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RECOVERY_TARGET_TIMELINE_CONTROLFILE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _RECOVERY_TARGET_TIMELINE_LATEST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RECOVERY_TARGET_TIMELINE_LATEST@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
LBB0_7:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_guc_malloc
	str	w21, [x0]
	str	x0, [x19]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current"

	.comm	_RECOVERY_TARGET_TIMELINE_CONTROLFILE,4,2 ; @RECOVERY_TARGET_TIMELINE_CONTROLFILE
l_.str.1:                               ; @.str.1
	.asciz	"latest"

	.comm	_RECOVERY_TARGET_TIMELINE_LATEST,4,2 ; @RECOVERY_TARGET_TIMELINE_LATEST
	.comm	_RECOVERY_TARGET_TIMELINE_NUMERIC,4,2 ; @RECOVERY_TARGET_TIMELINE_NUMERIC
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ERANGE,8,3                     ; @ERANGE
l_.str.2:                               ; @.str.2
	.asciz	"recovery_target_timeline is not a valid number."

	.comm	_ERROR,4,2                      ; @ERROR
	.no_dead_strip	_check_recovery_target_timeline
.subsections_via_symbols
