	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_dump_regs
_debug_dump_regs:                       ## @debug_dump_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movq	_EDPRSR_PU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	48(%rdi), %r14
	movq	_EDPRSR_DLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_emerg
	movq	%rbx, %rdi
	callq	_debug_access_permitted
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	_EDPCSR_PROHIBITED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.5(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_emerg                      ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	callq	_debug_adjust_pc
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_emerg
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	movl	32(%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_emerg
LBB0_7:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:
	movl	16(%rbx), %edx
	movq	_EDVIDSR_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_EDVIDSR_E3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_EDVIDSR_E2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edx, %esi
	leaq	L_.str.14(%rip), %rsi
	leaq	L_.str.13(%rip), %rdi
	cmoveq	%rsi, %rdi
	testl	%eax, %eax
	leaq	L_.str.12(%rip), %r8
	cmoveq	%rdi, %r8
	movq	_EDVIDSR_HV@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	movl	(%rax), %eax
	andl	%edx, %eax
	setne	%r9b
	shll	$5, %r9d
	addl	$32, %r9d
	movq	_EDVIDSR_VMID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movl	%eax, (%rsp)
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_emerg
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" EDPRSR:  %08x (Power:%s DLK:%s)\n"

	.comm	_EDPRSR_PU,4,2                  ## @EDPRSR_PU
L_.str.1:                               ## @.str.1
	.asciz	"On"

L_.str.2:                               ## @.str.2
	.asciz	"Off"

	.comm	_EDPRSR_DLK,4,2                 ## @EDPRSR_DLK
L_.str.3:                               ## @.str.3
	.asciz	"Lock"

L_.str.4:                               ## @.str.4
	.asciz	"Unlock"

L_.str.5:                               ## @.str.5
	.asciz	"No permission to access debug registers!\n"

	.comm	_EDPCSR_PROHIBITED,8,3          ## @EDPCSR_PROHIBITED
L_.str.6:                               ## @.str.6
	.asciz	"CPU is in Debug state or profiling is prohibited!\n"

L_.str.7:                               ## @.str.7
	.asciz	" EDPCSR:  %pS\n"

L_.str.8:                               ## @.str.8
	.asciz	" EDCIDSR: %08x\n"

L_.str.9:                               ## @.str.9
	.asciz	" EDVIDSR: %08x (State:%s Mode:%s Width:%dbits VMID:%x)\n"

	.comm	_EDVIDSR_NS,4,2                 ## @EDVIDSR_NS
L_.str.10:                              ## @.str.10
	.asciz	"Non-secure"

L_.str.11:                              ## @.str.11
	.asciz	"Secure"

	.comm	_EDVIDSR_E3,4,2                 ## @EDVIDSR_E3
L_.str.12:                              ## @.str.12
	.asciz	"EL3"

	.comm	_EDVIDSR_E2,4,2                 ## @EDVIDSR_E2
L_.str.13:                              ## @.str.13
	.asciz	"EL2"

L_.str.14:                              ## @.str.14
	.asciz	"EL1/0"

	.comm	_EDVIDSR_HV,4,2                 ## @EDVIDSR_HV
	.comm	_EDVIDSR_VMID,8,3               ## @EDVIDSR_VMID
	.no_dead_strip	_debug_dump_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_dump_regs
_debug_dump_regs:                       ; @debug_dump_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #48]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EDPRSR_PU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EDPRSR_PU@GOTPAGEOFF]
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh4:
	adrp	x11, l_.str.2@PAGE
Lloh5:
	add	x11, x11, l_.str.2@PAGEOFF
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x9, x11, x10, eq
Lloh7:
	adrp	x10, _EDPRSR_DLK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EDPRSR_DLK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, l_.str.3@PAGE
Lloh11:
	add	x11, x11, l_.str.3@PAGEOFF
Lloh12:
	adrp	x12, l_.str.4@PAGE
Lloh13:
	add	x12, x12, l_.str.4@PAGEOFF
	tst	w10, w8
	csel	x10, x12, x11, eq
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_emerg
	mov	x0, x20
	bl	_debug_access_permitted
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _EDPCSR_PROHIBITED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EDPCSR_PROHIBITED@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_emerg
LBB0_5:
	mov	x0, x20
	bl	_debug_adjust_pc
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_emerg
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x20, #32]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_emerg
LBB0_7:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x20, #16]
Lloh27:
	adrp	x9, _EDVIDSR_NS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EDVIDSR_NS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, l_.str.10@PAGE
Lloh31:
	add	x10, x10, l_.str.10@PAGEOFF
Lloh32:
	adrp	x11, l_.str.11@PAGE
Lloh33:
	add	x11, x11, l_.str.11@PAGEOFF
	tst	w9, w8
	csel	x9, x11, x10, eq
Lloh34:
	adrp	x10, _EDVIDSR_E3@GOTPAGE
Lloh35:
	ldr	x10, [x10, _EDVIDSR_E3@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
Lloh37:
	adrp	x11, _EDVIDSR_E2@GOTPAGE
Lloh38:
	ldr	x11, [x11, _EDVIDSR_E2@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
Lloh40:
	adrp	x12, l_.str.13@PAGE
Lloh41:
	add	x12, x12, l_.str.13@PAGEOFF
Lloh42:
	adrp	x13, l_.str.14@PAGE
Lloh43:
	add	x13, x13, l_.str.14@PAGEOFF
	tst	w11, w8
	csel	x11, x13, x12, eq
Lloh44:
	adrp	x12, l_.str.12@PAGE
Lloh45:
	add	x12, x12, l_.str.12@PAGEOFF
	tst	w10, w8
Lloh46:
	adrp	x10, _EDVIDSR_HV@GOTPAGE
Lloh47:
	ldr	x10, [x10, _EDVIDSR_HV@GOTPAGEOFF]
	csel	x11, x11, x12, eq
Lloh48:
	ldr	w10, [x10]
Lloh49:
	adrp	x12, _EDVIDSR_VMID@GOTPAGE
Lloh50:
	ldr	x12, [x12, _EDVIDSR_VMID@GOTPAGEOFF]
Lloh51:
	ldr	w12, [x12]
	and	w12, w8, w12
	str	x12, [sp, #32]
	tst	w10, w8
	mov	w10, #64
	mov	w12, #32
	csel	x10, x12, x10, eq
	stp	x8, x9, [sp]
	stp	x11, x10, [sp, #16]
Lloh52:
	adrp	x1, l_.str.9@PAGE
Lloh53:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_emerg
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" EDPRSR:  %08x (Power:%s DLK:%s)\n"

	.comm	_EDPRSR_PU,4,2                  ; @EDPRSR_PU
l_.str.1:                               ; @.str.1
	.asciz	"On"

l_.str.2:                               ; @.str.2
	.asciz	"Off"

	.comm	_EDPRSR_DLK,4,2                 ; @EDPRSR_DLK
l_.str.3:                               ; @.str.3
	.asciz	"Lock"

l_.str.4:                               ; @.str.4
	.asciz	"Unlock"

l_.str.5:                               ; @.str.5
	.asciz	"No permission to access debug registers!\n"

	.comm	_EDPCSR_PROHIBITED,8,3          ; @EDPCSR_PROHIBITED
l_.str.6:                               ; @.str.6
	.asciz	"CPU is in Debug state or profiling is prohibited!\n"

l_.str.7:                               ; @.str.7
	.asciz	" EDPCSR:  %pS\n"

l_.str.8:                               ; @.str.8
	.asciz	" EDCIDSR: %08x\n"

l_.str.9:                               ; @.str.9
	.asciz	" EDVIDSR: %08x (State:%s Mode:%s Width:%dbits VMID:%x)\n"

	.comm	_EDVIDSR_NS,4,2                 ; @EDVIDSR_NS
l_.str.10:                              ; @.str.10
	.asciz	"Non-secure"

l_.str.11:                              ; @.str.11
	.asciz	"Secure"

	.comm	_EDVIDSR_E3,4,2                 ; @EDVIDSR_E3
l_.str.12:                              ; @.str.12
	.asciz	"EL3"

	.comm	_EDVIDSR_E2,4,2                 ; @EDVIDSR_E2
l_.str.13:                              ; @.str.13
	.asciz	"EL2"

l_.str.14:                              ; @.str.14
	.asciz	"EL1/0"

	.comm	_EDVIDSR_HV,4,2                 ; @EDVIDSR_HV
	.comm	_EDVIDSR_VMID,8,3               ; @EDVIDSR_VMID
	.no_dead_strip	_debug_dump_regs
.subsections_via_symbols
