	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginGetBAEntry                  ## -- Begin function ginGetBAEntry
	.p2align	4, 0x90
_ginGetBAEntry:                         ## @ginGetBAEntry
	.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, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	callq	_rbt_iterate
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	32(%rax), %eax
	movl	%eax, (%r13)
	movl	28(%rbx), %eax
	movl	%eax, (%r12)
	movl	24(%rbx), %eax
	movl	%eax, (%r14)
	movq	16(%rbx), %r14
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setg	%dil
LBB0_4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %esi
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.6:
	movq	_qsortCompareItemPointers@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_qsort
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qsortCompareItemPointers,4,2   ## @qsortCompareItemPointers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginGetBAEntry                  ; -- Begin function ginGetBAEntry
	.p2align	2
_ginGetBAEntry:                         ; @ginGetBAEntry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	bl	_rbt_iterate
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #32]
	str	w8, [x23]
	ldr	w8, [x0, #28]
	str	w8, [x22]
	ldr	w8, [x0, #24]
	str	w8, [x19]
	ldr	x19, [x0, #16]
	ldr	w8, [x0]
	str	w8, [x21]
	cbz	x19, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, gt
	b	LBB0_5
LBB0_3:
	mov	x19, #0
	b	LBB0_8
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_Assert
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w1, [x20]
	cmp	w1, #2
	b.lt	LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _qsortCompareItemPointers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qsortCompareItemPointers@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_qsort
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_qsortCompareItemPointers,4,2   ; @qsortCompareItemPointers
.subsections_via_symbols
