	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_ramset
_skge_ramset:                           ## @skge_ramset
	.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, %r13
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leal	7(%rdx), %ebx
	testl	%edx, %edx
	cmovnsl	%edx, %ebx
	sarl	$3, %ebx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	shrq	$3, %r13
	leal	(%rbx,%r13), %r12d
	decl	%r12d
	movq	_RB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	_RB_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_skge_write8
	movq	_RB_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_skge_write32
	movq	_RB_WP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_skge_write32
	movq	_RB_RP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_skge_write32
	movq	_RB_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_skge_write32
	movq	_Q_R1@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_Q_R2@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_RB_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	_RB_ENA_STFWD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_skge_write8
	jmp	LBB0_4
LBB0_2:
	movq	_RB_RX_UTPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movl	%eax, %esi
	addq	%r13, %r13
	movabsq	$-6148914691236517205, %r12     ## imm = 0xAAAAAAAAAAAAAAAB
	movq	%r13, %rax
	mulq	%r12
	shrq	%rdx
	addl	%ebx, %edx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_skge_write32
	movq	_RB_RX_LTPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movl	%eax, %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	mulq	%r12
	shrq	$4, %rdx
	addl	%ebx, %edx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_skge_write32
	movq	_RB_CTRL@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_RB_ADDR
	movq	_RB_ENA_OP_MD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skge_write8                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_CTRL,4,2                    ## @RB_CTRL
	.comm	_RB_RST_CLR,4,2                 ## @RB_RST_CLR
	.comm	_RB_START,4,2                   ## @RB_START
	.comm	_RB_WP,4,2                      ## @RB_WP
	.comm	_RB_RP,4,2                      ## @RB_RP
	.comm	_RB_END,4,2                     ## @RB_END
	.comm	_Q_R1,8,3                       ## @Q_R1
	.comm	_Q_R2,8,3                       ## @Q_R2
	.comm	_RB_RX_UTPP,4,2                 ## @RB_RX_UTPP
	.comm	_RB_RX_LTPP,4,2                 ## @RB_RX_LTPP
	.comm	_RB_ENA_STFWD,4,2               ## @RB_ENA_STFWD
	.comm	_RB_ENA_OP_MD,4,2               ## @RB_ENA_OP_MD
	.no_dead_strip	_skge_ramset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_ramset
_skge_ramset:                           ; @skge_ramset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	add	w8, w2, #7
	cmp	w2, #0
	csel	w8, w8, w2, lt
	asr	w22, w8, #3
	lsr	x25, x3, #3
	add	w8, w22, w25
	sub	w23, w8, #1
Lloh0:
	adrp	x24, _RB_CTRL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RB_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
Lloh2:
	adrp	x8, _RB_RST_CLR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RB_RST_CLR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
Lloh5:
	adrp	x8, _RB_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RB_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_skge_write32
Lloh8:
	adrp	x8, _RB_WP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RB_WP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_skge_write32
Lloh11:
	adrp	x8, _RB_RP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RB_RP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_skge_write32
Lloh14:
	adrp	x8, _RB_END@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RB_END@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_skge_write32
Lloh17:
	adrp	x8, _Q_R1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Q_R1@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _Q_R2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _Q_R2@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x20
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh23:
	adrp	x8, _RB_RX_UTPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RB_RX_UTPP@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	lsl	x8, x25, #1
	mov	x23, #-6148914691236517206
	movk	x23, #43691
	umulh	x8, x8, x23
	lsr	x8, x8, #1
	add	w2, w22, w8
	mov	x0, x19
	bl	_skge_write32
Lloh26:
	adrp	x8, _RB_RX_LTPP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RB_RX_LTPP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	umulh	x8, x21, x23
	lsr	x8, x8, #4
	add	w2, w22, w8
	mov	x0, x19
	bl	_skge_write32
	b	LBB0_3
LBB0_2:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
Lloh29:
	adrp	x8, _RB_ENA_STFWD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RB_ENA_STFWD@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write8
LBB0_3:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
Lloh32:
	adrp	x8, _RB_ENA_OP_MD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RB_ENA_OP_MD@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_skge_write8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_CTRL,4,2                    ; @RB_CTRL
	.comm	_RB_RST_CLR,4,2                 ; @RB_RST_CLR
	.comm	_RB_START,4,2                   ; @RB_START
	.comm	_RB_WP,4,2                      ; @RB_WP
	.comm	_RB_RP,4,2                      ; @RB_RP
	.comm	_RB_END,4,2                     ; @RB_END
	.comm	_Q_R1,8,3                       ; @Q_R1
	.comm	_Q_R2,8,3                       ; @Q_R2
	.comm	_RB_RX_UTPP,4,2                 ; @RB_RX_UTPP
	.comm	_RB_RX_LTPP,4,2                 ; @RB_RX_LTPP
	.comm	_RB_ENA_STFWD,4,2               ; @RB_ENA_STFWD
	.comm	_RB_ENA_OP_MD,4,2               ; @RB_ENA_OP_MD
	.no_dead_strip	_skge_ramset
.subsections_via_symbols
