	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leadlag_common
_leadlag_common:                        ## @leadlag_common
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_PG_WINDOW_OBJECT
	movl	%eax, %r13d
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %rdx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_WinGetFuncArgCurrent
	movl	%eax, %edi
	callq	_DatumGetInt32
	movl	%eax, %ebx
	cmpl	$0, -44(%rbp)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_4:
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_get_fn_expr_arg_stable
	movl	%eax, %r8d
	jmp	LBB0_5
LBB0_1:
	movl	$1, %ebx
	movl	$1, %r8d
LBB0_5:
	movl	%ebx, %edx
	negl	%edx
	testl	%r15d, %r15d
	cmovnel	%ebx, %edx
	movq	_WINDOW_SEEK_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-44(%rbp), %r9
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_WinGetFuncArgInPartition
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:
	cmpl	$0, -48(%rbp)
	je	LBB0_8
## %bb.7:
	leaq	-44(%rbp), %rdx
	movl	%r13d, %edi
	movl	$2, %esi
	callq	_WinGetFuncArgCurrent
	movl	%eax, %ebx
LBB0_8:
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_10:
	movl	%ebx, %edi
	callq	_PG_RETURN_DATUM
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_SEEK_CURRENT,4,2        ## @WINDOW_SEEK_CURRENT
	.no_dead_strip	_leadlag_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leadlag_common
_leadlag_common:                        ; @leadlag_common
	.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	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	bl	_PG_WINDOW_OBJECT
	mov	x19, x0
	cbz	w23, LBB0_4
; %bb.1:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_WinGetFuncArgCurrent
	bl	_DatumGetInt32
	mov	x23, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
	bl	_PG_RETURN_NULL
LBB0_3:
	ldr	w0, [x22]
	mov	w1, #1
	bl	_get_fn_expr_arg_stable
	mov	x4, x0
	b	LBB0_5
LBB0_4:
	mov	w23, #1
	mov	w4, #1
LBB0_5:
	cmp	w21, #0
	cneg	w2, w23, eq
Lloh0:
	adrp	x8, _WINDOW_SEEK_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINDOW_SEEK_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_WinGetFuncArgInPartition
	mov	x21, x0
	cbz	w20, LBB0_8
; %bb.6:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_8
; %bb.7:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #2
	bl	_WinGetFuncArgCurrent
	mov	x21, x0
LBB0_8:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.9:
	bl	_PG_RETURN_NULL
LBB0_10:
	mov	x0, x21
	bl	_PG_RETURN_DATUM
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_SEEK_CURRENT,4,2        ; @WINDOW_SEEK_CURRENT
	.no_dead_strip	_leadlag_common
.subsections_via_symbols
