	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistpenalty                    ## -- Begin function gistpenalty
	.p2align	4, 0x90
_gistpenalty:                           ## @gistpenalty
	.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	%r8, %r13
	movl	$0, -44(%rbp)
	movq	8(%rdi), %rbx
	movslq	%esi, %rax
	movl	%r9d, %esi
	orl	%ecx, %esi
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx,%rax,4)
	je	LBB0_2
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.5:
	xorps	%xmm0, %xmm0
	testl	%r9d, %r9d
	jne	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_float4_infinity            ## TAILCALL
LBB0_2:
	leaq	(%rbx,%rax,4), %r14
	movq	(%rdi), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	%rdx, %rdi
	callq	_PointerGetDatum
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_PointerGetDatum
	movl	%eax, %ebx
	leaq	-44(%rbp), %rdi
	callq	_PointerGetDatum
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_FunctionCall3Coll
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	callq	_isnan
	xorps	%xmm0, %xmm0
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	maxss	-44(%rbp), %xmm0
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistpenalty                    ; -- Begin function gistpenalty
	.p2align	2
_gistpenalty:                           ; @gistpenalty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
                                        ; kill: def $w1 killed $w1 def $x1
	str	wzr, [sp, #12]
	ldr	x8, [x0, #8]
	orr	w9, w5, w3
	cbz	w9, LBB0_5
; %bb.1:
	ldr	w9, [x8, w1, sxtw #2]
	cbz	w9, LBB0_5
; %bb.2:
	cbz	w3, LBB0_4
; %bb.3:
	movi	d0, #0000000000000000
	cbnz	w5, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_get_float4_infinity
LBB0_5:
	sxtw	x9, w1
	lsl	x9, x9, #2
	add	x20, x8, x9
	ldr	x8, [x0]
	ldr	w21, [x8, x9]
	mov	x0, x2
	bl	_PointerGetDatum
	mov	x22, x0
	mov	x0, x19
	bl	_PointerGetDatum
	mov	x19, x0
	add	x0, sp, #12
	bl	_PointerGetDatum
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_FunctionCall3Coll
	ldr	s0, [sp, #12]
	bl	_isnan
	ldr	s0, [sp, #12]
	fcmp	s0, #0.0
	ccmp	x0, #0, #0, pl
	movi	d1, #0000000000000000
	fcsel	s0, s1, s0, ne
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
