	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbg_enable_monitor
_dbg_enable_monitor:                    ## @dbg_enable_monitor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dbg_monitor_is_enabled
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_cp14_dbgdscrint_get
	movq	_dbg_model@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-128(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_4
## %bb.2:
	addl	$-130, %ecx
	cmpl	$1, %ecx
	ja	LBB0_5
## %bb.3:
	movq	_DBGSCR_MDBG_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cp14_dbgdscr_v6_set
	jmp	LBB0_5
LBB0_4:
	movq	_DBGSCR_MDBG_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cp14_dbgdscr_v7_set
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_isb
	xorl	%eax, %eax
	callq	_dbg_monitor_is_enabled
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbg_model,4,2                  ## @dbg_model
	.comm	_DBGSCR_MDBG_EN,4,2             ## @DBGSCR_MDBG_EN
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_dbg_enable_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dbg_enable_monitor
_dbg_enable_monitor:                    ; @dbg_enable_monitor
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_dbg_monitor_is_enabled
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_cp14_dbgdscrint_get
Lloh0:
	adrp	x8, _dbg_model@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dbg_model@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.3:
	sub	w8, w8, #130
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _DBGSCR_MDBG_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBGSCR_MDBG_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cp14_dbgdscr_v6_set
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _DBGSCR_MDBG_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBGSCR_MDBG_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cp14_dbgdscr_v7_set
LBB0_6:
	bl	_isb
	bl	_dbg_monitor_is_enabled
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dbg_model,4,2                  ; @dbg_model
	.comm	_DBGSCR_MDBG_EN,4,2             ; @DBGSCR_MDBG_EN
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_dbg_enable_monitor
.subsections_via_symbols
