	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function get_position
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_position:                          ## @get_position
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_OidIsValid
	cmpq	$0, 8(%r15)
	movq	8(%rbx), %rcx
	je	LBB0_3
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_16
LBB0_3:
	movq	8(%r14), %rdx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.5:
	cmpq	$0, (%r14)
	jne	LBB0_9
	jmp	LBB0_15
LBB0_7:
	cmpq	$0, 8(%r14)
	je	LBB0_15
## %bb.8:
	cmpq	$0, (%r14)
	je	LBB0_15
LBB0_9:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_16
LBB0_15:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	testq	%rdx, %rdx
	jne	LBB0_16
## %bb.11:
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	leaq	4(%r12), %r13
	movl	(%r12), %esi
	movl	16(%rbx), %edx
	movl	16(%r15), %ecx
	movq	%r13, %rdi
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetFloat8
	movapd	%xmm0, %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm1, %xmm0
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jae	LBB0_16
## %bb.13:
	movl	(%r12), %esi
	movl	16(%r14), %edx
	movl	16(%r15), %ecx
	movq	%r13, %rdi
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetFloat8
	divsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	xorpd	%xmm1, %xmm1
	callq	_Max
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_position
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_position
_get_position:                          ; @get_position
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x21, x0
	ldr	w0, [x21, #4]!
	bl	_OidIsValid
	ldr	x9, [x20, #8]
	ldr	x8, [x23, #8]
	cbz	x9, LBB0_4
; %bb.1:
	fmov	d8, #0.50000000
	cbnz	x8, LBB0_12
; %bb.2:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
; %bb.3:
	fmov	d8, #1.00000000
	b	LBB0_12
LBB0_4:
	ldr	x9, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	cbz	x9, LBB0_11
LBB0_6:
	ldr	x8, [x19]
	cmp	x8, #0
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	fcsel	d8, d1, d0, eq
	b	LBB0_12
LBB0_7:
	fmov	d8, #0.50000000
	cbnz	x9, LBB0_12
; %bb.8:
	cbz	w0, LBB0_12
; %bb.9:
	ldr	w1, [x22]
	ldr	w2, [x23, #16]
	ldr	w3, [x20, #16]
	mov	x0, x21
	bl	_FunctionCall2Coll
	bl	_DatumGetFloat8
	fcmp	d0, #0.0
	b.ls	LBB0_12
; %bb.10:
	fmov	d9, d0
	ldr	w1, [x22]
	ldr	w2, [x19, #16]
	ldr	w3, [x20, #16]
	mov	x0, x21
	bl	_FunctionCall2Coll
	bl	_DatumGetFloat8
	fdiv	d0, d0, d9
	movi	d1, #0000000000000000
	bl	_Max
	fmov	d1, #1.00000000
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_Min
LBB0_11:
	movi	d8, #0000000000000000
LBB0_12:
	fmov	d0, d8
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_position
.subsections_via_symbols
