	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_register_patching_mc_seq
_ci_register_patching_mc_seq:           ## @ci_register_patching_mc_seq
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MC_SEQ_MISC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	andl	$3840, %eax                     ## imm = 0xF00
	xorl	%ecx, %ecx
	cmpl	$768, %eax                      ## imm = 0x300
	jne	LBB0_110
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$26544, %eax                    ## imm = 0x67B0
	jne	LBB0_110
## %bb.2:
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_108
## %bb.3:
	movq	_SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jae	LBB0_109
## %bb.4:
	movq	24(%r15), %r10
	xorl	%edx, %edx
	movl	$-61696, %r13d                  ## imm = 0xFFFF0F00
	movl	$-2032113, %r9d                 ## imm = 0xFFE0FE0F
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r11,%rbx), %rax
	movl	(%rax,%rdx,4), %ecx
	andl	%r13d, %ecx
	orl	$53469, %ecx                    ## imm = 0xD0DD
	movl	%ecx, (%rax,%rdx,4)
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	%r12, %rdx
	je	LBB0_108
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_94 Depth 2
                                        ##     Child Loop BB0_85 Depth 2
                                        ##     Child Loop BB0_74 Depth 2
                                        ##     Child Loop BB0_65 Depth 2
                                        ##     Child Loop BB0_57 Depth 2
                                        ##     Child Loop BB0_49 Depth 2
	movl	(%r10,%rdx,4), %eax
	sarl	$2, %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r11
	cmpq	$1, %r8
	je	LBB0_14
## %bb.46:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r8, %rax
	andq	$-2, %rax
	leaq	24(%r11), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_49 Depth=2
	movq	(%rcx), %rsi
	movl	(%rsi,%rdx,4), %edi
	andl	%r13d, %edi
	orl	$53469, %edi                    ## imm = 0xD0DD
	movl	%edi, (%rsi,%rdx,4)
LBB0_48:                                ##   in Loop: Header=BB0_49 Depth=2
	addq	$2, %rbx
	addq	$32, %rcx
	cmpq	%rbx, %rax
	je	LBB0_15
LBB0_49:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	jne	LBB0_52
LBB0_51:                                ##   in Loop: Header=BB0_49 Depth=2
	movq	-16(%rcx), %rdi
	movl	(%rdi,%rdx,4), %esi
	andl	%r13d, %esi
	orl	$53469, %esi                    ## imm = 0xD0DD
	movl	%esi, (%rdi,%rdx,4)
LBB0_52:                                ##   in Loop: Header=BB0_49 Depth=2
	movl	-8(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_47
## %bb.53:                              ##   in Loop: Header=BB0_49 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_47
	jmp	LBB0_48
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r11
	cmpq	$1, %r8
	jne	LBB0_54
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r8b
	je	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rbx
	movl	(%r11,%rbx), %eax
	cmpl	$137500, %eax                   ## imm = 0x2191C
	je	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$125000, %eax                   ## imm = 0x1E848
	je	LBB0_5
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r11
	cmpq	$1, %rbx
	jne	LBB0_62
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%esi, %esi
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %bl
	je	LBB0_6
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rsi
	movl	(%r11,%rsi), %eax
	cmpl	$137500, %eax                   ## imm = 0x2191C
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$125000, %eax                   ## imm = 0x1E848
	jne	LBB0_6
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r11,%rsi), %rax
	movl	$0, (%rax,%rdx,4)
	jmp	LBB0_6
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r11
	cmpq	$1, %r8
	jne	LBB0_70
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r8b
	je	LBB0_6
## %bb.29:                              ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rbx
	movl	(%r11,%rbx), %eax
	cmpl	$125000, %eax                   ## imm = 0x1E848
	je	LBB0_102
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$137500, %eax                   ## imm = 0x2191C
	jne	LBB0_6
## %bb.31:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$53, %eax
	jmp	LBB0_103
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.33:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r11
	cmpq	$1, %rbx
	jne	LBB0_82
## %bb.34:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%esi, %esi
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %bl
	je	LBB0_6
## %bb.36:                              ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rsi
	movl	(%r11,%rsi), %eax
	cmpl	$137500, %eax                   ## imm = 0x2191C
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$125000, %eax                   ## imm = 0x1E848
	jne	LBB0_6
LBB0_38:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r11,%rsi), %rax
	orl	$7, (%rax,%rdx,4)
	jmp	LBB0_6
LBB0_39:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.40:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r11
	cmpq	$1, %r8
	jne	LBB0_90
## %bb.41:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
LBB0_42:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r8b
	je	LBB0_6
## %bb.43:                              ##   in Loop: Header=BB0_7 Depth=1
	shlq	$4, %rbx
	movl	(%r11,%rbx), %eax
	cmpl	$125000, %eax                   ## imm = 0x1E848
	je	LBB0_104
## %bb.44:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$137500, %eax                   ## imm = 0x2191C
	jne	LBB0_6
## %bb.45:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$786768, %eax                   ## imm = 0xC0150
	jmp	LBB0_105
LBB0_54:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r8, %rax
	andq	$-2, %rax
	leaq	24(%r11), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_57 Depth=2
	movq	(%rcx), %rdi
	movl	(%rdi,%rdx,4), %esi
	andl	%r13d, %esi
	orl	$53469, %esi                    ## imm = 0xD0DD
	movl	%esi, (%rdi,%rdx,4)
LBB0_56:                                ##   in Loop: Header=BB0_57 Depth=2
	addq	$2, %rbx
	addq	$32, %rcx
	cmpq	%rbx, %rax
	je	LBB0_15
LBB0_57:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	jne	LBB0_60
LBB0_59:                                ##   in Loop: Header=BB0_57 Depth=2
	movq	-16(%rcx), %rdi
	movl	(%rdi,%rdx,4), %r14d
	andl	%r13d, %r14d
	orl	$53469, %r14d                   ## imm = 0xD0DD
	movl	%r14d, (%rdi,%rdx,4)
LBB0_60:                                ##   in Loop: Header=BB0_57 Depth=2
	movl	-8(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_55
## %bb.61:                              ##   in Loop: Header=BB0_57 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_55
	jmp	LBB0_56
LBB0_62:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rax
	andq	$-2, %rax
	leaq	24(%r11), %rcx
	xorl	%esi, %esi
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_63:                                ##   in Loop: Header=BB0_65 Depth=2
	movq	(%rcx), %rdi
	movl	$0, (%rdi,%rdx,4)
LBB0_64:                                ##   in Loop: Header=BB0_65 Depth=2
	addq	$2, %rsi
	addq	$32, %rcx
	cmpq	%rsi, %rax
	je	LBB0_21
LBB0_65:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	jne	LBB0_68
LBB0_67:                                ##   in Loop: Header=BB0_65 Depth=2
	movq	-16(%rcx), %rdi
	movl	$0, (%rdi,%rdx,4)
LBB0_68:                                ##   in Loop: Header=BB0_65 Depth=2
	movl	-8(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_63
## %bb.69:                              ##   in Loop: Header=BB0_65 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_63
	jmp	LBB0_64
LBB0_70:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r8, %r14
	andq	$-2, %r14
	leaq	24(%r11), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_71:                                ##   in Loop: Header=BB0_74 Depth=2
	movl	$48, %edi
LBB0_72:                                ##   in Loop: Header=BB0_74 Depth=2
	movq	(%rax), %rcx
	movl	(%rcx,%rdx,4), %esi
	andl	$-64, %esi
	orl	%edi, %esi
	movl	%esi, (%rcx,%rdx,4)
LBB0_73:                                ##   in Loop: Header=BB0_74 Depth=2
	addq	$2, %rbx
	addq	$32, %rax
	cmpq	%rbx, %r14
	je	LBB0_28
LBB0_74:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rax), %edi
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_77
## %bb.75:                              ##   in Loop: Header=BB0_74 Depth=2
	cmpl	$137500, %edi                   ## imm = 0x2191C
	jne	LBB0_79
## %bb.76:                              ##   in Loop: Header=BB0_74 Depth=2
	movl	$53, %edi
	jmp	LBB0_78
	.p2align	4, 0x90
LBB0_77:                                ##   in Loop: Header=BB0_74 Depth=2
	movl	$48, %edi
LBB0_78:                                ##   in Loop: Header=BB0_74 Depth=2
	movq	-16(%rax), %rsi
	movl	(%rsi,%rdx,4), %ecx
	andl	$-64, %ecx
	orl	%edi, %ecx
	movl	%ecx, (%rsi,%rdx,4)
LBB0_79:                                ##   in Loop: Header=BB0_74 Depth=2
	movl	-8(%rax), %edi
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_71
## %bb.80:                              ##   in Loop: Header=BB0_74 Depth=2
	cmpl	$137500, %edi                   ## imm = 0x2191C
	jne	LBB0_73
## %bb.81:                              ##   in Loop: Header=BB0_74 Depth=2
	movl	$53, %edi
	jmp	LBB0_72
LBB0_82:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rax
	andq	$-2, %rax
	leaq	24(%r11), %rcx
	xorl	%esi, %esi
	jmp	LBB0_85
	.p2align	4, 0x90
LBB0_83:                                ##   in Loop: Header=BB0_85 Depth=2
	movq	(%rcx), %rdi
	orl	$7, (%rdi,%rdx,4)
LBB0_84:                                ##   in Loop: Header=BB0_85 Depth=2
	addq	$2, %rsi
	addq	$32, %rcx
	cmpq	%rsi, %rax
	je	LBB0_35
LBB0_85:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_87
## %bb.86:                              ##   in Loop: Header=BB0_85 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	jne	LBB0_88
LBB0_87:                                ##   in Loop: Header=BB0_85 Depth=2
	movq	-16(%rcx), %rdi
	orl	$7, (%rdi,%rdx,4)
LBB0_88:                                ##   in Loop: Header=BB0_85 Depth=2
	movl	-8(%rcx), %edi
	cmpl	$137500, %edi                   ## imm = 0x2191C
	je	LBB0_83
## %bb.89:                              ##   in Loop: Header=BB0_85 Depth=2
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_83
	jmp	LBB0_84
LBB0_90:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r8, %r14
	andq	$-2, %r14
	leaq	24(%r11), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_94
	.p2align	4, 0x90
LBB0_91:                                ##   in Loop: Header=BB0_94 Depth=2
	movl	$786752, %edi                   ## imm = 0xC0140
LBB0_92:                                ##   in Loop: Header=BB0_94 Depth=2
	movq	(%rax), %rcx
	movl	(%rcx,%rdx,4), %esi
	andl	%r9d, %esi
	orl	%edi, %esi
	movl	%esi, (%rcx,%rdx,4)
LBB0_93:                                ##   in Loop: Header=BB0_94 Depth=2
	addq	$2, %rbx
	addq	$32, %rax
	cmpq	%rbx, %r14
	je	LBB0_42
LBB0_94:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rax), %edi
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_97
## %bb.95:                              ##   in Loop: Header=BB0_94 Depth=2
	cmpl	$137500, %edi                   ## imm = 0x2191C
	jne	LBB0_99
## %bb.96:                              ##   in Loop: Header=BB0_94 Depth=2
	movl	$786768, %edi                   ## imm = 0xC0150
	jmp	LBB0_98
	.p2align	4, 0x90
LBB0_97:                                ##   in Loop: Header=BB0_94 Depth=2
	movl	$786752, %edi                   ## imm = 0xC0140
LBB0_98:                                ##   in Loop: Header=BB0_94 Depth=2
	movq	-16(%rax), %rsi
	movl	(%rsi,%rdx,4), %ecx
	andl	%r9d, %ecx
	orl	%edi, %ecx
	movl	%ecx, (%rsi,%rdx,4)
LBB0_99:                                ##   in Loop: Header=BB0_94 Depth=2
	movl	-8(%rax), %edi
	cmpl	$125000, %edi                   ## imm = 0x1E848
	je	LBB0_91
## %bb.100:                             ##   in Loop: Header=BB0_94 Depth=2
	cmpl	$137500, %edi                   ## imm = 0x2191C
	jne	LBB0_93
## %bb.101:                             ##   in Loop: Header=BB0_94 Depth=2
	movl	$786768, %edi                   ## imm = 0xC0150
	jmp	LBB0_92
LBB0_102:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$48, %eax
LBB0_103:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r11,%rbx), %rcx
	movl	(%rcx,%rdx,4), %esi
	andl	$-64, %esi
	jmp	LBB0_106
LBB0_104:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$786752, %eax                   ## imm = 0xC0140
LBB0_105:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r11,%rbx), %rcx
	movl	(%rcx,%rdx,4), %esi
	andl	%r9d, %esi
LBB0_106:                               ##   in Loop: Header=BB0_7 Depth=1
	orl	%eax, %esi
	movl	%esi, (%rcx,%rdx,4)
	jmp	LBB0_6
LBB0_108:
	movq	_MC_SEQ_IO_DEBUG_INDEX@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$3, %esi
	callq	_WREG32
	movq	_MC_SEQ_IO_DEBUG_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
                                        ## kill: def $eax killed $eax def $rax
	andl	$-458753, %eax                  ## imm = 0xFFF8FFFF
	leal	65536(%rax), %ebx
	movl	(%r14), %edi
	movl	$3, %esi
	callq	_WREG32
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_WREG32
	xorl	%ecx, %ecx
	jmp	LBB0_110
LBB0_109:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_110:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_25
	.long	L0_0_set_32
	.long	L0_0_set_39
	.end_data_region
                                        ## -- End function
	.comm	_MC_SEQ_MISC0,4,2               ## @MC_SEQ_MISC0
	.comm	_SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE,8,3 ## @SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MC_SEQ_IO_DEBUG_INDEX,4,2      ## @MC_SEQ_IO_DEBUG_INDEX
	.comm	_MC_SEQ_IO_DEBUG_DATA,4,2       ## @MC_SEQ_IO_DEBUG_DATA
	.no_dead_strip	_ci_register_patching_mc_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_register_patching_mc_seq
_ci_register_patching_mc_seq:           ; @ci_register_patching_mc_seq
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MC_SEQ_MISC0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_SEQ_MISC0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	and	w8, w0, #0xf00
	cmp	w8, #768
	b.ne	LBB0_44
; %bb.1:
	ldr	x8, [x20]
	ldr	w8, [x8]
	mov	w9, #13272
	cmp	w9, w8, lsr #1
	b.ne	LBB0_44
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_43
; %bb.3:
Lloh3:
	adrp	x9, _SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_46
; %bb.4:
	mov	x9, #0
	mov	w10, #320
	movk	w10, #12, lsl #16
	ldr	x11, [x19, #24]
	mov	w12, #6428
	movk	w12, #2, lsl #16
	mov	w13, #59464
	movk	w13, #1, lsl #16
	mov	w14, #-61696
	mov	w15, #53469
	mov	w16, #65039
	movk	w16, #65504, lsl #16
Lloh6:
	adrp	x17, lJTI0_0@PAGE
Lloh7:
	add	x17, x17, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_43
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_40 Depth 2
                                        ;     Child Loop BB0_34 Depth 2
                                        ;     Child Loop BB0_28 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w0, [x11, x9, lsl #2]
	asr	w0, w0, #2
	sub	w0, w0, #128
	cmp	w0, #5
	b.hi	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x1, LBB0_8
	ldrb	w2, [x17, x0]
	add	x1, x1, x2, lsl #2
	lsl	x0, x9, #2
	br	x1
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x19, #16]
	add	x2, x2, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x2, x2, #16
	subs	x1, x1, #1
	b.eq	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w3, [x2, #-8]
	cmp	w3, w12
	ccmp	w3, w13, #4, ne
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x3, [x2]
	ldr	w4, [x3, x0]
	and	w4, w4, w14
	orr	w4, w4, w15
	str	w4, [x3, x0]
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x19, #16]
	add	x2, x2, #8
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x2, x2, #16
	subs	x1, x1, #1
	b.eq	LBB0_5
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w3, [x2, #-8]
	cmp	w3, w12
	ccmp	w3, w13, #4, ne
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x3, [x2]
	ldr	w4, [x3, x0]
	and	w4, w4, w14
	orr	w4, w4, w15
	str	w4, [x3, x0]
	b	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #16]
	add	x1, x1, #8
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x1, x1, #16
	subs	x0, x0, #1
	b.eq	LBB0_5
LBB0_21:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w2, [x1, #-8]
	cmp	w2, w12
	ccmp	w2, w13, #4, ne
	b.ne	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x2, [x1]
	str	wzr, [x2, x9, lsl #2]
	b	LBB0_20
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x19, #16]
	add	x2, x2, #8
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_28 Depth=2
	mov	w3, #48
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	x4, [x2]
	ldr	w5, [x4, x0]
	and	w5, w5, #0xffffffc0
	orr	w3, w5, w3
	str	w3, [x4, x0]
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	add	x2, x2, #16
	subs	x1, x1, #1
	b.eq	LBB0_5
LBB0_28:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w3, [x2, #-8]
	cmp	w3, w13
	b.eq	LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	cmp	w3, w12
	b.ne	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	w3, #53
	b	LBB0_26
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x19, #16]
	add	x2, x2, #8
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=2
	add	x2, x2, #16
	subs	x1, x1, #1
	b.eq	LBB0_5
LBB0_34:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w3, [x2, #-8]
	cmp	w3, w12
	ccmp	w3, w13, #4, ne
	b.ne	LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	ldr	x3, [x2]
	ldr	w4, [x3, x0]
	orr	w4, w4, #0x7
	str	w4, [x3, x0]
	b	LBB0_33
LBB0_36:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.37:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x19, #16]
	add	x2, x2, #8
	b	LBB0_40
LBB0_38:                                ;   in Loop: Header=BB0_40 Depth=2
	ldr	x4, [x2]
	ldr	w5, [x4, x0]
	and	w5, w5, w16
	orr	w3, w5, w3
	str	w3, [x4, x0]
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=2
	add	x2, x2, #16
	subs	x1, x1, #1
	b.eq	LBB0_5
LBB0_40:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w4, [x2, #-8]
	mov	w3, #320
	movk	w3, #12, lsl #16
	cmp	w4, w13
	b.eq	LBB0_38
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=2
	cmp	w4, w12
	b.ne	LBB0_39
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=2
	add	w3, w10, #16
	b	LBB0_38
LBB0_43:
Lloh8:
	adrp	x20, _MC_SEQ_IO_DEBUG_INDEX@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MC_SEQ_IO_DEBUG_INDEX@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #3
	bl	_WREG32
Lloh10:
	adrp	x21, _MC_SEQ_IO_DEBUG_DATA@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MC_SEQ_IO_DEBUG_DATA@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	and	w8, w0, #0xfff8ffff
	orr	w19, w8, #0x10000
	ldr	w0, [x20]
	mov	w1, #3
	bl	_WREG32
	ldr	w0, [x21]
	mov	x1, x19
	bl	_WREG32
LBB0_44:
	mov	w0, #0
LBB0_45:
	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
LBB0_46:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_45
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_31-LBB0_8)>>2
	.byte	(LBB0_36-LBB0_8)>>2
                                        ; -- End function
	.comm	_MC_SEQ_MISC0,4,2               ; @MC_SEQ_MISC0
	.comm	_SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE,8,3 ; @SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MC_SEQ_IO_DEBUG_INDEX,4,2      ; @MC_SEQ_IO_DEBUG_INDEX
	.comm	_MC_SEQ_IO_DEBUG_DATA,4,2       ; @MC_SEQ_IO_DEBUG_DATA
	.no_dead_strip	_ci_register_patching_mc_seq
.subsections_via_symbols
