	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginInsertBAEntry
_ginInsertBAEntry:                      ## @ginInsertBAEntry
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r15
	movl	%edx, -64(%rbp)
	movl	%ecx, -80(%rbp)
	movq	%r8, -72(%rbp)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)
	movl	4(%rdi), %edi
	leaq	-104(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_rbt_insert
	cmpl	$0, -44(%rbp)
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_GIN_CAT_NORM_KEY@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_getDatumCopy
	movl	%eax, 24(%rbx)
LBB0_3:
	movq	_DEF_NPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	$1, 4(%rbx)
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, 16(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_GetMemoryChunkSpace
	addl	%eax, (%r15)
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIN_CAT_NORM_KEY,8,3           ## @GIN_CAT_NORM_KEY
	.comm	_DEF_NPTR,4,2                   ## @DEF_NPTR
	.no_dead_strip	_ginInsertBAEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ginInsertBAEntry
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ginInsertBAEntry:                      ; @ginInsertBAEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	str	w2, [sp, #56]
	str	w3, [sp, #40]
	str	x4, [sp, #48]
	str	x1, [sp, #32]
	ldr	w0, [x0, #4]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_rbt_insert
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GIN_CAT_NORM_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIN_CAT_NORM_KEY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_getDatumCopy
	str	w0, [x21, #24]
LBB0_3:
Lloh3:
	adrp	x8, _DEF_NPTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEF_NPTR@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x21]
Lloh5:
	adrp	x9, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x21, #4]
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x21, #16]
	ldr	w8, [x20]
	str	w8, [x0]
	bl	_GetMemoryChunkSpace
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GIN_CAT_NORM_KEY,8,3           ; @GIN_CAT_NORM_KEY
	.comm	_DEF_NPTR,4,2                   ; @DEF_NPTR
	.no_dead_strip	_ginInsertBAEntry
.subsections_via_symbols
