	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts525a_switch_output_voltage
_rts525a_switch_output_voltage:         ## @rts525a_switch_output_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_LDO_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDO_D3318_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LDO_D3318_33V@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movq	_SD_PAD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SD_IO_USING_1V8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_LDO_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDO_D3318_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LDO_D3318_18V@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movq	_SD_PAD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SD_IO_USING_1V8@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
LBB0_5:
	callq	_rtsx_pci_write_register
	movq	%rbx, %rdi
	callq	_rtsx_pci_init_cmd
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rts5249_fill_driving
	movq	%rbx, %rdi
	movl	$100, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtsx_pci_send_cmd              ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDO_CONFIG2,4,2                ## @LDO_CONFIG2
	.comm	_LDO_D3318_MASK,4,2             ## @LDO_D3318_MASK
	.comm	_LDO_D3318_33V,4,2              ## @LDO_D3318_33V
	.comm	_SD_PAD_CTL,4,2                 ## @SD_PAD_CTL
	.comm	_SD_IO_USING_1V8,4,2            ## @SD_IO_USING_1V8
	.comm	_LDO_D3318_18V,4,2              ## @LDO_D3318_18V
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rts525a_switch_output_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts525a_switch_output_voltage
_rts525a_switch_output_voltage:         ; @rts525a_switch_output_voltage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _LDO_CONFIG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDO_CONFIG2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LDO_D3318_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDO_D3318_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _LDO_D3318_33V@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDO_D3318_33V@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh9:
	adrp	x8, _SD_PAD_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SD_PAD_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SD_IO_USING_1V8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SD_IO_USING_1V8@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _LDO_CONFIG2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDO_CONFIG2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _LDO_D3318_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LDO_D3318_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _LDO_D3318_18V@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LDO_D3318_18V@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh24:
	adrp	x8, _SD_PAD_CTL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SD_PAD_CTL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _SD_IO_USING_1V8@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SD_IO_USING_1V8@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
LBB0_4:
	bl	_rtsx_pci_write_register
	mov	x0, x19
	bl	_rtsx_pci_init_cmd
	mov	x0, x19
	mov	x1, x20
	bl	_rts5249_fill_driving
	mov	x0, x19
	mov	w1, #100
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_send_cmd
LBB0_5:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_LDO_CONFIG2,4,2                ; @LDO_CONFIG2
	.comm	_LDO_D3318_MASK,4,2             ; @LDO_D3318_MASK
	.comm	_LDO_D3318_33V,4,2              ; @LDO_D3318_33V
	.comm	_SD_PAD_CTL,4,2                 ; @SD_PAD_CTL
	.comm	_SD_IO_USING_1V8,4,2            ; @SD_IO_USING_1V8
	.comm	_LDO_D3318_18V,4,2              ; @LDO_D3318_18V
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rts525a_switch_output_voltage
.subsections_via_symbols
