	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eip197_trc_cache_banksel
_eip197_trc_cache_banksel:              ## @eip197_trc_cache_banksel
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	sarl	$16, %ebx
	cmpl	(%rdx), %ebx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_EIP197_CS_RAM_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_EIP197_CS_BANKSEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_EIP197_CS_BANKSEL_OFS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edi
	shll	%cl, %edi
	orl	%edx, %edi
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movl	%ebx, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_CS_RAM_CTRL,8,3         ## @EIP197_CS_RAM_CTRL
	.comm	_EIP197_CS_BANKSEL_MASK,4,2     ## @EIP197_CS_BANKSEL_MASK
	.comm	_EIP197_CS_BANKSEL_OFS,4,2      ## @EIP197_CS_BANKSEL_OFS
	.no_dead_strip	_eip197_trc_cache_banksel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eip197_trc_cache_banksel
_eip197_trc_cache_banksel:              ; @eip197_trc_cache_banksel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	asr	w21, w1, #16
	ldr	w8, [x2]
	cmp	w21, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _EIP197_CS_RAM_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EIP197_CS_RAM_CTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _EIP197_CS_BANKSEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIP197_CS_BANKSEL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _EIP197_CS_BANKSEL_OFS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EIP197_CS_BANKSEL_OFS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w0, w9, w8
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	str	w21, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_CS_RAM_CTRL,8,3         ; @EIP197_CS_RAM_CTRL
	.comm	_EIP197_CS_BANKSEL_MASK,4,2     ; @EIP197_CS_BANKSEL_MASK
	.comm	_EIP197_CS_BANKSEL_OFS,4,2      ; @EIP197_CS_BANKSEL_OFS
	.no_dead_strip	_eip197_trc_cache_banksel
.subsections_via_symbols
