	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_next_dst_boundary           ## -- Begin function pg_next_dst_boundary
	.p2align	4, 0x90
_pg_next_dst_boundary:                  ## @pg_next_dst_boundary
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	16(%rbp), %r12
	movslq	(%r12), %r10
	testq	%r10, %r10
	je	LBB0_1
## %bb.7:
	movq	(%rdi), %r15
	cmpq	$0, 40(%r12)
	je	LBB0_9
## %bb.8:
	movq	8(%r12), %r13
	movq	(%r13), %r11
	cmpq	%r11, %r15
	jl	LBB0_12
LBB0_9:
	cmpq	$0, 32(%r12)
	movq	8(%r12), %r13
	je	LBB0_23
## %bb.10:
	cmpq	-8(%r13,%r10,8), %r15
	jle	LBB0_23
## %bb.11:
	movq	(%r13), %r11
LBB0_12:
	movq	%r11, %rax
	subq	%r15, %rax
	jg	LBB0_14
## %bb.13:
	movq	%r15, %rax
	subq	-8(%r13,%r10,8), %rax
LBB0_14:
	decq	%rax
	movq	_YEARSPERREPEAT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.16:
	cqto
	idivq	%rdi
	jmp	LBB0_17
LBB0_1:
	movq	24(%r12), %rax
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movslq	4(%r12), %rdi
	addq	$16, %rdx
	cmpq	%rdi, %rcx
	jl	LBB0_2
## %bb.4:
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdx
	movq	%rdx, (%rsi)
	movl	(%rax,%rcx), %eax
	jmp	LBB0_6
LBB0_23:
	cmpq	-8(%r13,%r10,8), %r15
	jge	LBB0_24
## %bb.25:
	cmpq	(%r13), %r15
	jge	LBB0_26
## %bb.30:
	movq	24(%r12), %rax
	movq	%rax, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	incq	%rbx
	movslq	4(%r12), %rdi
	addq	$16, %rdx
	cmpq	%rdi, %rbx
	jl	LBB0_31
## %bb.33:
	xorl	%ebx, %ebx
LBB0_34:
	movl	%ebx, %edi
	shlq	$4, %rdi
	movq	8(%rax,%rdi), %rdx
	movq	%rdx, (%rsi)
	movl	(%rax,%rdi), %edx
	movl	%edx, (%r14)
	movq	(%r13), %rdx
	movq	%rdx, (%rcx)
	movq	16(%r12), %rcx
	movslq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdx
	movq	%rdx, (%r8)
	movl	(%rax,%rcx), %eax
	movl	%eax, (%r9)
	movl	$1, %eax
	jmp	LBB0_38
LBB0_24:
	movq	16(%r12), %rax
	movq	24(%r12), %rdx
	movslq	-4(%rax,%r10,4), %rax
	shlq	$4, %rax
	movq	8(%rdx,%rax), %rcx
	movq	%rcx, (%rsi)
	movl	(%rdx,%rax), %eax
LBB0_6:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_38
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	movq	_AVGSECSPERYEAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.19:
	cqto
	idivq	%rbx
	jmp	LBB0_20
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_20:
	incq	%rax
	imulq	%rdi, %rbx
	imulq	%rax, %rbx
	movq	%rbx, %r14
	negq	%r14
	cmpq	%r15, %r11
	movq	%r14, %rdx
	cmovgq	%rbx, %rdx
	addq	%r15, %rdx
	movq	%rdx, -56(%rbp)
	movl	$-1, %eax
	cmpq	%r11, %rdx
	jl	LBB0_38
## %bb.21:
	cmpq	-8(%r13,%r10,8), %rdx
	jg	LBB0_38
## %bb.22:
	movq	%r12, (%rsp)
	leaq	-56(%rbp), %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, %r13
	callq	_pg_next_dst_boundary
	movq	8(%r12), %rcx
	cmpq	(%rcx), %r15
	cmovlq	%r14, %rbx
	addq	%rbx, (%r13)
	jmp	LBB0_38
LBB0_26:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movl	$1, %r14d
	cmpl	$3, %r10d
	jl	LBB0_37
## %bb.27:
	leal	-1(%r10), %edx
	movl	$1, %r14d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_28 Depth=1
	incl	%edi
	movl	%edi, %r14d
	cmpl	%edx, %r14d
	jge	LBB0_37
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%r14), %edi
	sarl	%edi
	movslq	%edi, %rbx
	cmpq	(%r13,%rbx,8), %r15
	jge	LBB0_35
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%edi, %edx
	cmpl	%edx, %r14d
	jl	LBB0_28
LBB0_37:
	movq	16(%r12), %r11
	movq	24(%r12), %rdi
	movslq	%r14d, %r10
	movslq	-4(%r11,%r10,4), %rbx
	shlq	$4, %rbx
	movq	8(%rdi,%rbx), %rdx
	movq	%rdx, (%rsi)
	movl	(%rdi,%rbx), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movq	(%r13,%r10,8), %rdx
	movq	%rdx, (%rcx)
	movslq	(%r11,%r10,4), %rcx
	shlq	$4, %rcx
	movq	8(%rdi,%rcx), %rdx
	movq	%rdx, (%r8)
	movl	(%rdi,%rcx), %ecx
	movl	%ecx, (%r9)
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YEARSPERREPEAT,8,3             ## @YEARSPERREPEAT
	.comm	_AVGSECSPERYEAR,8,3             ## @AVGSECSPERYEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_next_dst_boundary           ; -- Begin function pg_next_dst_boundary
	.p2align	2
_pg_next_dst_boundary:                  ; @pg_next_dst_boundary
	.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, x6
	ldr	w9, [x6]
	cbz	w9, LBB0_11
; %bb.1:
	mov	x20, x3
	ldr	x21, [x0]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x10, [x8]
	cmp	x21, x10
	b.lt	LBB0_6
LBB0_3:
	ldr	x12, [x19, #32]
	ldr	x8, [x19, #8]
	sub	w10, w9, #1
	sxtw	x11, w10
	cbz	x12, LBB0_16
; %bb.4:
	ldr	x12, [x8, x11, lsl #3]
	cmp	x21, x12
	b.le	LBB0_16
; %bb.5:
	ldr	x10, [x8]
LBB0_6:
	subs	x11, x10, x21
	b.gt	LBB0_8
; %bb.7:
	sub	w11, w9, #1
	ldr	x11, [x8, w11, sxtw #3]
	sub	x11, x21, x11
LBB0_8:
	sub	x11, x11, #1
Lloh0:
	adrp	x12, _YEARSPERREPEAT@GOTPAGE
Lloh1:
	ldr	x12, [x12, _YEARSPERREPEAT@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	sdiv	x11, x11, x12
Lloh3:
	adrp	x13, _AVGSECSPERYEAR@GOTPAGE
Lloh4:
	ldr	x13, [x13, _AVGSECSPERYEAR@GOTPAGEOFF]
Lloh5:
	ldr	x13, [x13]
	sdiv	x11, x11, x13
	mul	x12, x13, x12
	madd	x22, x12, x11, x12
	cmp	x10, x21
	cneg	x11, x22, le
	add	x11, x11, x21
	cmp	x11, x10
	str	x11, [sp, #8]
	b.lt	LBB0_10
; %bb.9:
	sub	w9, w9, #1
	ldr	x8, [x8, w9, sxtw #3]
	cmp	x11, x8
	b.le	LBB0_25
LBB0_10:
	mov	w0, #-1
	b	LBB0_32
LBB0_11:
	mov	x9, #0
	ldr	x8, [x19, #24]
	mov	x10, x8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	ldrsw	x11, [x19, #4]
	add	x10, x10, #16
	cmp	x9, x11
	b.lt	LBB0_12
; %bb.14:
	mov	x9, #0
LBB0_15:
	mov	w0, #0
	add	x8, x8, w9, uxtw #4
	b	LBB0_24
LBB0_16:
	ldr	x12, [x8, x11, lsl #3]
	cmp	x21, x12
	b.ge	LBB0_23
; %bb.17:
	ldr	x11, [x8]
	cmp	x21, x11
	b.ge	LBB0_26
; %bb.18:
	mov	x10, #0
	ldr	x9, [x19, #24]
	mov	x11, x9
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cbz	w12, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x10, x10, #1
	ldrsw	x12, [x19, #4]
	add	x11, x11, #16
	cmp	x10, x12
	b.lt	LBB0_19
; %bb.21:
	mov	x10, #0
LBB0_22:
	add	x10, x9, w10, uxtw #4
	ldr	x11, [x10, #8]
	str	x11, [x1]
	ldr	w10, [x10]
	str	w10, [x2]
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x19, #16]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #4
	b	LBB0_31
LBB0_23:
	mov	w0, #0
	ldp	x8, x9, [x19, #16]
	ldrsw	x8, [x8, x11, lsl #2]
	add	x8, x9, x8, lsl #4
LBB0_24:
	ldr	x9, [x8, #8]
	str	x9, [x1]
	ldr	w8, [x8]
	str	w8, [x2]
	b	LBB0_32
LBB0_25:
	neg	x23, x22
	add	x0, sp, #8
	mov	x3, x20
	mov	x6, x19
	bl	_pg_next_dst_boundary
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x21, x8
	csel	x8, x23, x22, lt
	add	x8, x9, x8
	str	x8, [x20]
	b	LBB0_32
LBB0_26:
	cmp	w9, #3
	b.lt	LBB0_29
; %bb.27:
	mov	w9, #1
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	w11, w10, w9
	asr	w11, w11, #1
	ldr	x12, [x8, w11, sxtw #3]
	cmp	x21, x12
	csinc	w9, w9, w11, lt
	csel	w10, w11, w10, lt
	cmp	w9, w10
	b.lt	LBB0_28
	b	LBB0_30
LBB0_29:
	mov	w9, #1
LBB0_30:
	ldp	x10, x11, [x19, #16]
	add	x10, x10, w9, sxtw #2
	ldursw	x12, [x10, #-4]
	add	x12, x11, x12, lsl #4
	ldr	x13, [x12, #8]
	str	x13, [x1]
	ldr	w12, [x12]
	str	w12, [x2]
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [x20]
	ldrsw	x8, [x10]
	add	x8, x11, x8, lsl #4
LBB0_31:
	ldr	x9, [x8, #8]
	str	x9, [x4]
	ldr	w8, [x8]
	str	w8, [x5]
	mov	w0, #1
LBB0_32:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_YEARSPERREPEAT,8,3             ; @YEARSPERREPEAT
	.comm	_AVGSECSPERYEAR,8,3             ; @AVGSECSPERYEAR
.subsections_via_symbols
