	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5250_set_l1off_cfg_sub_d0
_rts5250_set_l1off_cfg_sub_d0:          ## @rts5250_set_l1off_cfg_sub_d0
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_RTSX_BIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtsx_pci_readl
	movl	%eax, %r14d
	movq	_SD_EXIST@GOTPCREL(%rip), %rax
	movq	_MS_EXIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_ASPM_L1_1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtsx_check_dev_flag
	movl	%eax, %r12d
	movq	_ASPM_L1_2_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtsx_check_dev_flag
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.2:
	leaq	4(%rbx), %rax
	jmp	LBB0_5
LBB0_3:
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	%rbx, %rax
LBB0_5:
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_11:
	xorl	%r15d, %r15d
	orl	%eax, %r12d
	je	LBB0_10
LBB0_6:
	movq	_LTR_L1SS_PWR_GATE_CHECK_CARD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtsx_check_dev_flag
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	_L1OFF_MBIAS2_EN_5250@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %r13d
	je	LBB0_9
## %bb.8:
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_10
LBB0_9:
	orl	%eax, %r15d
LBB0_10:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsx_set_l1off_sub             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTSX_BIPR,4,2                  ## @RTSX_BIPR
	.comm	_SD_EXIST,4,2                   ## @SD_EXIST
	.comm	_MS_EXIST,4,2                   ## @MS_EXIST
	.comm	_ASPM_L1_1_EN,4,2               ## @ASPM_L1_1_EN
	.comm	_ASPM_L1_2_EN,4,2               ## @ASPM_L1_2_EN
	.comm	_LTR_L1SS_PWR_GATE_CHECK_CARD_EN,4,2 ## @LTR_L1SS_PWR_GATE_CHECK_CARD_EN
	.comm	_L1OFF_MBIAS2_EN_5250,4,2       ## @L1OFF_MBIAS2_EN_5250
	.no_dead_strip	_rts5250_set_l1off_cfg_sub_d0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5250_set_l1off_cfg_sub_d0
_rts5250_set_l1off_cfg_sub_d0:          ; @rts5250_set_l1off_cfg_sub_d0
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RTSX_BIPR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTSX_BIPR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtsx_pci_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _SD_EXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_EXIST@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _MS_EXIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MS_EXIST@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _ASPM_L1_1_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASPM_L1_1_EN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsx_check_dev_flag
	mov	x22, x0
Lloh12:
	adrp	x8, _ASPM_L1_2_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ASPM_L1_2_EN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsx_check_dev_flag
	cbz	w21, LBB0_3
; %bb.1:
	cbz	w22, LBB0_6
; %bb.2:
	add	x8, x19, #4
	b	LBB0_5
LBB0_3:
	cbz	w0, LBB0_6
; %bb.4:
	mov	x8, x19
LBB0_5:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_6:
	mov	w21, #0
	orr	w8, w22, w0
	cbz	w8, LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _LTR_L1SS_PWR_GATE_CHECK_CARD_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LTR_L1SS_PWR_GATE_CHECK_CARD_EN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsx_check_dev_flag
	cbz	w0, LBB0_11
; %bb.8:
	orr	w9, w24, w23
Lloh18:
	adrp	x8, _L1OFF_MBIAS2_EN_5250@GOTPAGE
Lloh19:
	ldr	x8, [x8, _L1OFF_MBIAS2_EN_5250@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w9, w9, w20
	cbz	w9, LBB0_10
; %bb.9:
	bic	w21, w21, w8
	b	LBB0_11
LBB0_10:
	orr	w21, w8, w21
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	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
	b	_rtsx_set_l1off_sub
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RTSX_BIPR,4,2                  ; @RTSX_BIPR
	.comm	_SD_EXIST,4,2                   ; @SD_EXIST
	.comm	_MS_EXIST,4,2                   ; @MS_EXIST
	.comm	_ASPM_L1_1_EN,4,2               ; @ASPM_L1_1_EN
	.comm	_ASPM_L1_2_EN,4,2               ; @ASPM_L1_2_EN
	.comm	_LTR_L1SS_PWR_GATE_CHECK_CARD_EN,4,2 ; @LTR_L1SS_PWR_GATE_CHECK_CARD_EN
	.comm	_L1OFF_MBIAS2_EN_5250,4,2       ; @L1OFF_MBIAS2_EN_5250
	.no_dead_strip	_rts5250_set_l1off_cfg_sub_d0
.subsections_via_symbols
