	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_modify_reg
_sr_modify_reg:                         ## @sr_modify_reg
	.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	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_SR_TYPE_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ERRCONFIG_V1@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_ERRCONFIG_STATUS_V1_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_SR_TYPE_V2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	_ERRCONFIG_V2@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	_ERRCONFIG_VPBOUNDINTST_V2@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %r12d
LBB0_7:
	movl	8(%r15), %edi
	addl	%r14d, %edi
	callq	___raw_readl
	xorl	%eax, %ebx
	andl	%r12d, %ebx
	xorl	%eax, %ebx
	addl	8(%r15), %r14d
	movl	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___raw_writel                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_TYPE_V1,8,3                 ## @SR_TYPE_V1
	.comm	_ERRCONFIG_V1,4,2               ## @ERRCONFIG_V1
	.comm	_ERRCONFIG_STATUS_V1_MASK,4,2   ## @ERRCONFIG_STATUS_V1_MASK
	.comm	_SR_TYPE_V2,8,3                 ## @SR_TYPE_V2
	.comm	_ERRCONFIG_V2,4,2               ## @ERRCONFIG_V2
	.comm	_ERRCONFIG_VPBOUNDINTST_V2,4,2  ## @ERRCONFIG_VPBOUNDINTST_V2
	.no_dead_strip	_sr_modify_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_modify_reg
_sr_modify_reg:                         ; @sr_modify_reg
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SR_TYPE_V1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SR_TYPE_V1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ERRCONFIG_V1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ERRCONFIG_V1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w1, #0, eq
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _SR_TYPE_V2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SR_TYPE_V2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _ERRCONFIG_V2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ERRCONFIG_V2@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w19, #0, eq
	b.ne	LBB0_5
; %bb.2:
Lloh12:
	adrp	x8, _ERRCONFIG_VPBOUNDINTST_V2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCONFIG_VPBOUNDINTST_V2@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _ERRCONFIG_STATUS_V1_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCONFIG_STATUS_V1_MASK@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_5:
	ldr	w8, [x21, #8]
	add	w0, w8, w19
	bl	___raw_readl
	bic	w8, w0, w22
	and	w9, w22, w20
	orr	w0, w8, w9
	ldr	w8, [x21, #8]
	add	w1, w8, w19
	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
	b	___raw_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_TYPE_V1,8,3                 ; @SR_TYPE_V1
	.comm	_ERRCONFIG_V1,4,2               ; @ERRCONFIG_V1
	.comm	_ERRCONFIG_STATUS_V1_MASK,4,2   ; @ERRCONFIG_STATUS_V1_MASK
	.comm	_SR_TYPE_V2,8,3                 ; @SR_TYPE_V2
	.comm	_ERRCONFIG_V2,4,2               ; @ERRCONFIG_V2
	.comm	_ERRCONFIG_VPBOUNDINTST_V2,4,2  ; @ERRCONFIG_VPBOUNDINTST_V2
	.no_dead_strip	_sr_modify_reg
.subsections_via_symbols
