	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5227_fill_driving
_rts5227_fill_driving:                  ## @rts5227_fill_driving
	.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
	subq	$208, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_3v3+80(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_3v3+64(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_3v3+48(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_3v3+32(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_3v3+16(%rip), %xmm0
	movaps	%xmm0, -128(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_3v3(%rip), %xmm0
	movaps	%xmm0, -144(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_1v8+80(%rip), %xmm0
	movaps	%xmm0, -160(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_1v8+64(%rip), %xmm0
	movaps	%xmm0, -176(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_1v8+48(%rip), %xmm0
	movaps	%xmm0, -192(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_1v8+32(%rip), %xmm0
	movaps	%xmm0, -208(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_1v8+16(%rip), %xmm0
	movaps	%xmm0, -224(%rbp)
	movaps	l___const.rts5227_fill_driving.driving_1v8(%rip), %xmm0
	movaps	%xmm0, -240(%rbp)
	movq	_OUTPUT_3V3@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rsi, (%rax)
	leaq	-144(%rbp), %rax
	leaq	-240(%rbp), %rbx
	cmoveq	%rax, %rbx
	setne	%cl
	movq	(%rdi,%rcx,8), %rax
	movq	_WRITE_REG_CMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SD30_CLK_DRIVE_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	(%rax,%rax,2), %r12
	movq	(%rbx,%r12,8), %r8
	movl	$255, %ecx
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_SD30_CMD_DRIVE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx,%r12,8), %r8
	movq	%r14, %rdi
	movl	$255, %ecx
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_SD30_DAT_DRIVE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx,%r12,8), %r8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$255, %ecx
	addq	$208, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsx_pci_add_cmd               ## TAILCALL
LBB0_1:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.rts5227_fill_driving.driving_3v3
l___const.rts5227_fill_driving.driving_3v3:
	.quad	19                              ## 0x13
	.quad	19                              ## 0x13
	.quad	19                              ## 0x13
	.quad	150                             ## 0x96
	.quad	150                             ## 0x96
	.quad	150                             ## 0x96
	.quad	127                             ## 0x7f
	.quad	127                             ## 0x7f
	.quad	127                             ## 0x7f
	.quad	150                             ## 0x96
	.quad	150                             ## 0x96
	.quad	150                             ## 0x96

	.p2align	4                               ## @__const.rts5227_fill_driving.driving_1v8
l___const.rts5227_fill_driving.driving_1v8:
	.quad	153                             ## 0x99
	.quad	153                             ## 0x99
	.quad	153                             ## 0x99
	.quad	170                             ## 0xaa
	.quad	170                             ## 0xaa
	.quad	170                             ## 0xaa
	.quad	254                             ## 0xfe
	.quad	254                             ## 0xfe
	.quad	254                             ## 0xfe
	.quad	179                             ## 0xb3
	.quad	179                             ## 0xb3
	.quad	179                             ## 0xb3

	.comm	_OUTPUT_3V3,8,3                 ## @OUTPUT_3V3
	.comm	_WRITE_REG_CMD,4,2              ## @WRITE_REG_CMD
	.comm	_SD30_CLK_DRIVE_SEL,4,2         ## @SD30_CLK_DRIVE_SEL
	.comm	_SD30_CMD_DRIVE_SEL,4,2         ## @SD30_CMD_DRIVE_SEL
	.comm	_SD30_DAT_DRIVE_SEL,4,2         ## @SD30_DAT_DRIVE_SEL
	.no_dead_strip	_rts5227_fill_driving
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5227_fill_driving
_rts5227_fill_driving:                  ; @rts5227_fill_driving
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, l___const.rts5227_fill_driving.driving_3v3@PAGE
Lloh4:
	add	x8, x8, l___const.rts5227_fill_driving.driving_3v3@PAGEOFF
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #128]
	ldp	q0, q1, [x8, #64]
	stp	q0, q1, [sp, #160]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #96]
Lloh5:
	adrp	x8, l___const.rts5227_fill_driving.driving_1v8@PAGE
Lloh6:
	add	x8, x8, l___const.rts5227_fill_driving.driving_1v8@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldp	q1, q0, [x8, #64]
	stp	q1, q0, [sp, #64]
	ldp	q1, q0, [x8, #32]
Lloh7:
	adrp	x8, _OUTPUT_3V3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OUTPUT_3V3@GOTPAGEOFF]
	stp	q1, q0, [sp, #32]
Lloh9:
	ldr	x8, [x8]
	mov	x9, sp
	add	x10, sp, #96
	cmp	x8, x1
	csel	x8, x10, x9, eq
	cset	w9, ne
	ldr	x9, [x0, w9, uxtw #3]
Lloh10:
	adrp	x20, _WRITE_REG_CMD@GOTPAGE
Lloh11:
	ldr	x20, [x20, _WRITE_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x10, _SD30_CLK_DRIVE_SEL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SD30_CLK_DRIVE_SEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x10]
	mov	w10, #24
	madd	x21, x9, x10, x8
	ldr	x4, [x21]
	mov	w3, #255
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh15:
	adrp	x8, _SD30_CMD_DRIVE_SEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SD30_CMD_DRIVE_SEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	x4, [x21, #8]
	mov	x0, x19
	mov	w3, #255
	bl	_rtsx_pci_add_cmd
Lloh18:
	adrp	x8, _SD30_DAT_DRIVE_SEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SD30_DAT_DRIVE_SEL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh20:
	ldr	w2, [x8]
	ldr	x4, [x21, #16]
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w3, #255
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #256
	b	_rtsx_pci_add_cmd
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @__const.rts5227_fill_driving.driving_3v3
l___const.rts5227_fill_driving.driving_3v3:
	.quad	19                              ; 0x13
	.quad	19                              ; 0x13
	.quad	19                              ; 0x13
	.quad	150                             ; 0x96
	.quad	150                             ; 0x96
	.quad	150                             ; 0x96
	.quad	127                             ; 0x7f
	.quad	127                             ; 0x7f
	.quad	127                             ; 0x7f
	.quad	150                             ; 0x96
	.quad	150                             ; 0x96
	.quad	150                             ; 0x96

	.p2align	3                               ; @__const.rts5227_fill_driving.driving_1v8
l___const.rts5227_fill_driving.driving_1v8:
	.quad	153                             ; 0x99
	.quad	153                             ; 0x99
	.quad	153                             ; 0x99
	.quad	170                             ; 0xaa
	.quad	170                             ; 0xaa
	.quad	170                             ; 0xaa
	.quad	254                             ; 0xfe
	.quad	254                             ; 0xfe
	.quad	254                             ; 0xfe
	.quad	179                             ; 0xb3
	.quad	179                             ; 0xb3
	.quad	179                             ; 0xb3

	.comm	_OUTPUT_3V3,8,3                 ; @OUTPUT_3V3
	.comm	_WRITE_REG_CMD,4,2              ; @WRITE_REG_CMD
	.comm	_SD30_CLK_DRIVE_SEL,4,2         ; @SD30_CLK_DRIVE_SEL
	.comm	_SD30_CMD_DRIVE_SEL,4,2         ; @SD30_CMD_DRIVE_SEL
	.comm	_SD30_DAT_DRIVE_SEL,4,2         ; @SD30_DAT_DRIVE_SEL
	.no_dead_strip	_rts5227_fill_driving
.subsections_via_symbols
