	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xyz_to_mercator
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x3f000000                      ## float 0.5
LCPI0_3:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xyz_to_mercator:                       ## @xyz_to_mercator
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rbp), %r14
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	8(%rsi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm1
	callq	_atan2f
	movq	(%rbx), %rax
	mulss	(%rax), %xmm0
	movss	4(%r13), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm1
	mulss	4(%rax), %xmm1
	movq	_M_PI@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	divss	%xmm2, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2ss	%r12d, %xmm2
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	mulss	%xmm0, %xmm2
	mulss	LCPI0_2(%rip), %xmm2
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	movaps	%xmm3, %xmm0
	subss	%xmm1, %xmm0
	addss	%xmm3, %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	callq	_logf
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm1
	divss	%xmm1, %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_av_clipf
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r15d, %xmm1
	addss	LCPI0_1(%rip), %xmm0
	mulss	%xmm0, %xmm1
	mulss	LCPI0_2(%rip), %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_floorf
	movl	%eax, %ebx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_floorf
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movl	%eax, %r13d
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, (%r14)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movq	24(%rbp), %rax
	movss	%xmm1, (%rax)
	decl	%r12d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	decl	%r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	leal	-1(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	1(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	addl	$2, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	decl	%r13d
	xorl	%r14d, %r14d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_av_clip
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movq	%rcx, %r12
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_av_clip
	movl	%eax, 4(%r12,%r14)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 4(%r12,%r14)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_av_clip
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx,%r14)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movl	%eax, 8(%r12,%r14)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movl	%eax, 12(%rbx,%r14)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movl	%eax, 12(%r12,%r14)
	incl	%r13d
	addq	$16, %r14
	cmpq	$64, %r14
	jne	LBB0_1
## %bb.2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_xyz_to_mercator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xyz_to_mercator
_xyz_to_mercator:                       ; @xyz_to_mercator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x24, x7
	mov	x23, x6
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x27, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x25, x0
	ldr	s0, [x1]
	ldr	s1, [x1, #8]
	fneg	s1, s1
	bl	_atan2f
	ldr	x8, [x25]
	ldp	s1, s2, [x8]
	fmul	s0, s0, s1
	ldr	s1, [x20, #4]
	fneg	s1, s1
	fmul	s1, s2, s1
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	s9, [x8]
	fdiv	s0, s0, s9
	fmov	s10, #1.00000000
	fadd	s0, s0, s10
	scvtf	s2, w21
	fmul	s0, s0, s2
	fmov	s11, #0.50000000
	fmul	s8, s0, s11
	fadd	s0, s1, s10
	fsub	s1, s10, s1
	fdiv	s0, s0, s1
	bl	_logf
	fadd	s1, s9, s9
	fdiv	s0, s0, s1
	fmov	s1, #-1.00000000
	fmov	s2, #1.00000000
	bl	_av_clipf
	fadd	s0, s0, s10
	scvtf	s1, w22
	fmul	s0, s0, s1
	fmul	s9, s0, s11
	fmov	s0, s8
	bl	_floorf
	mov	x19, x0
	fmov	s0, s9
	bl	_floorf
	mov	x28, #0
	scvtf	s0, w19
	fsub	s0, s8, s0
	str	s0, [x23]
	scvtf	s0, w0
	sub	w21, w21, #1
	sub	w22, w22, #1
	sub	w8, w19, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	fsub	s0, s9, s0
	str	s0, [x24]
	add	w24, w19, #1
	mov	x23, x19
	add	w25, w19, #2
	sub	w26, w0, #1
	add	x27, x27, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x21
	bl	_av_clip
	add	x19, x27, x28
	stur	w0, [x19, #-8]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x8, x28
	str	w0, [x20]
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_av_clip
	stur	w0, [x19, #-4]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	str	w0, [x20, #4]
	mov	x0, x24
	mov	w1, #0
	mov	x2, x21
	bl	_av_clip
	str	w0, [x19]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	str	w0, [x20, #8]
	mov	x0, x25
	mov	w1, #0
	mov	x2, x21
	bl	_av_clip
	str	w0, [x19, #4]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	str	w0, [x20, #12]
	add	w26, w26, #1
	add	x28, x28, #16
	cmp	x28, #64
	b.ne	LBB0_1
; %bb.2:
	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
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_xyz_to_mercator
.subsections_via_symbols
