	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_read_regs
_debug_read_regs:                       ## @debug_read_regs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_CS_UNLOCK
	movq	%rbx, %rdi
	callq	_debug_os_unlock
	movq	_EDPRCR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_debug_force_cpu_powered_up
	movq	%rbx, %rdi
	callq	_debug_access_permitted
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_EDPCSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	%rax, (%rbx)
	movq	_EDPCSR_PROHIBITED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_8
## %bb.2:
	movq	_CONFIG_64BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EDPCSR_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	%rax, 48(%rbx)
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_EDCIDSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	%rax, 32(%rbx)
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_EDVIDSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	%rax, 16(%rbx)
LBB0_8:
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_writel_relaxed
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CS_LOCK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDPRCR,8,3                     ## @EDPRCR
	.comm	_EDPCSR,8,3                     ## @EDPCSR
	.comm	_EDPCSR_PROHIBITED,8,3          ## @EDPCSR_PROHIBITED
	.comm	_CONFIG_64BIT,4,2               ## @CONFIG_64BIT
	.comm	_EDPCSR_HI,8,3                  ## @EDPCSR_HI
	.comm	_EDCIDSR,8,3                    ## @EDCIDSR
	.comm	_EDVIDSR,8,3                    ## @EDVIDSR
	.no_dead_strip	_debug_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_read_regs
_debug_read_regs:                       ; @debug_read_regs
	.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, x0
	ldr	x0, [x0, #8]
	bl	_CS_UNLOCK
	mov	x0, x19
	bl	_debug_os_unlock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x21, _EDPRCR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EDPRCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	mov	x0, x19
	bl	_debug_force_cpu_powered_up
	mov	x0, x19
	bl	_debug_access_permitted
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _EDPCSR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EDPCSR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [x19]
Lloh5:
	adrp	x8, _EDPCSR_PROHIBITED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDPCSR_PROHIBITED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_8
; %bb.2:
Lloh8:
	adrp	x8, _CONFIG_64BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONFIG_64BIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _EDPCSR_HI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EDPCSR_HI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [x19, #48]
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _EDCIDSR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EDCIDSR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [x19, #32]
LBB0_6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _EDVIDSR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EDVIDSR@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [x19, #16]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x0, [x19, #8]
	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	_CS_LOCK
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EDPRCR,8,3                     ; @EDPRCR
	.comm	_EDPCSR,8,3                     ; @EDPCSR
	.comm	_EDPCSR_PROHIBITED,8,3          ; @EDPCSR_PROHIBITED
	.comm	_CONFIG_64BIT,4,2               ; @CONFIG_64BIT
	.comm	_EDPCSR_HI,8,3                  ; @EDPCSR_HI
	.comm	_EDCIDSR,8,3                    ; @EDCIDSR
	.comm	_EDVIDSR,8,3                    ; @EDVIDSR
	.no_dead_strip	_debug_read_regs
.subsections_via_symbols
