	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_map_skyline
_on_map_skyline:                        ## @on_map_skyline
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rbx
	cmpl	$0, 16(%rbp)
	sete	%r12b
	testl	%ecx, %ecx
	sets	%al
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_CMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_r_pvector_lower_bound
	movq	%rbx, %rdi
	callq	_r_pvector_len
	movq	%rbx, %rdi
	callq	_r_pvector_len
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_29
LBB0_2:
	movl	%ecx, %r15d
	movb	%al, -56(%rbp)                  ## 1-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_r_pvector_len
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_r_pvector_len
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r13
	jae	LBB0_29
## %bb.3:
	movq	%rbx, %r13
	movb	-56(%rbp), %al                  ## 1-byte Reload
	andb	%r12b, %al
	movzbl	%al, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addq	%r14, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_r_pvector_len
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	jae	LBB0_29
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_r_pvector_at
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_r_itv_end
	decl	%eax
	cltq
	cmpq	%rax, %r14
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_r_pvector_len
	cmpq	%rax, %rbx
	jne	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rdi
	cmpq	%rdi, %r14
	jge	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 16(%rbp)
	jne	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, %rax
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rdi, %rcx
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	jl	LBB0_15
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rcx
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	subq	%rcx, %r14
	callq	_r_itv_end
	movslq	%eax, %rsi
	movq	%rbx, %r12
	subq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_R_MIN
	testq	%rax, %rax
	jle	LBB0_28
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movq	(%r15), %r9
	movl	(%r9), %eax
	notl	%eax
	testl	%eax, -84(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r9), %esi
	movq	8(%r9), %rdx
	addq	%r12, %rdx
	subq	16(%r9), %rdx
	movq	%r12, %rax
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	$0, (%rsp)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r8
	callq	*-120(%rbp)                     ## 8-byte Folded Reload
	cmpl	$0, 16(%rbp)
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	js	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%rax, %r12
	cmpq	%r14, %rax
	movq	%r12, %r14
	jne	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_24
	jmp	LBB0_27
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %eax
	jmp	LBB0_5
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r14, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$0, %ecx
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	%r12, %r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_24
	jmp	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 16(%rbp)
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%r12, %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_27
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%r14, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmoveq	%r14, %rbx
	jmp	LBB0_6
LBB0_28:
	movq	%r12, %r14
	jmp	LBB0_29
LBB0_27:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_29:
	subq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	cmpl	$0, 16(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovneq	%r14, %rax
LBB0_30:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMP,4,2                        ## @CMP
	.no_dead_strip	_on_map_skyline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_map_skyline
_on_map_skyline:                        ; @on_map_skyline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x22, x1
	add	x21, x0, #8
	cmp	w3, #0
	ccmp	w6, #0, #0, lt
	cset	w24, eq
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_r_pvector_lower_bound
	mov	x0, x21
	bl	_r_pvector_len
	mov	x0, x21
	bl	_r_pvector_len
	b	LBB0_25
LBB0_2:
	mov	x20, x5
	mov	x23, x4
	mov	x27, x3
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_r_pvector_len
	mov	x26, x0
	mov	x0, x21
	bl	_r_pvector_len
	cmp	x26, x0
	b.hs	LBB0_25
; %bb.3:
	str	w23, [sp, #28]                  ; 4-byte Folded Spill
	mov	w8, w27
	stp	x8, x20, [sp]                   ; 16-byte Folded Spill
	add	x27, x8, x22
	mov	x23, x22
	mov	w8, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x26, #1
	cbz	w24, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_r_pvector_len
	cmp	x20, x0
	csel	x23, x23, xzr, ne
	mov	w8, #1
	csel	w24, w8, wzr, ne
	csinc	x26, xzr, x26, eq
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_r_pvector_len
	cmp	x26, x0
	b.hs	LBB0_26
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_r_pvector_at
	mov	x28, x0
	ldr	x0, [x0, #8]
	bl	_r_itv_end
	sub	w8, w0, #1
	cmp	x23, w8, sxtw
	b.gt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x28, #8]
	cmp	x23, x0
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w19, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x0, x22
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x9
	mov	x20, x0
	b.lt	LBB0_12
	b	LBB0_26
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x23
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x27
	sub	x27, x27, x20
	bl	_r_itv_end
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x1, x8, x20
	mov	x0, x27
	bl	_R_MIN
	cmp	x0, #1
	b.lt	LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, x0
	ldr	x5, [x28]
	ldr	w8, [x5]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	bics	wzr, w9, w8
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x5, #24]
	ldp	x8, x9, [x5, #8]
	add	x8, x8, x20
	sub	x2, x8, x9
	sub	x8, x20, x22
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x3, x9, x8, lsl #2
	mov	x4, x27
	mov	x6, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	blr	x8
	cbz	w19, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	tbnz	x0, #63, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x0, x20
	cmp	x0, x27
	mov	x27, x25
	b.eq	LBB0_23
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x20
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x0, x27
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	csel	w8, w8, wzr, eq
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w19, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x27, x20
	mov	x27, x25
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, x27
	b.eq	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, #0
	csel	x26, xzr, x26, eq
	b	LBB0_6
LBB0_25:
	mov	w8, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	x23, x22
LBB0_26:
	sub	x8, x23, x22
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	mov	w9, w9
	cmp	w19, #0
	csel	x0, x9, x8, eq
LBB0_27:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_28:
	mov	x23, x20
	b	LBB0_26
LBB0_29:
	mov	x23, x27
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMP,4,2                        ; @CMP
	.no_dead_strip	_on_map_skyline
.subsections_via_symbols
