	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kgdb_arch_handle_exception     ## -- Begin function kgdb_arch_handle_exception
	.p2align	4, 0x90
_kgdb_arch_handle_exception:            ## @kgdb_arch_handle_exception
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rcx, %r15
	movsbl	(%rcx), %eax
	movl	$-1, %ebx
	cmpl	$106, %eax
	jg	LBB0_3
## %bb.1:
	cmpl	$68, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$99, %eax
	je	LBB0_5
	jmp	LBB0_10
LBB0_3:
	cmpl	$107, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$115, %eax
	jne	LBB0_10
LBB0_5:
	leaq	1(%r15), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_kgdb_hex2long
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
LBB0_7:
	movq	_X86_EFLAGS_TF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	_kgdb_cpu_doing_single_step@GOTPCREL(%rip), %rdi
	movl	$-1, %esi
	callq	_atomic_set
	cmpb	$115, (%r15)
	jne	LBB0_9
## %bb.8:
	movl	(%rbx), %eax
	orl	%eax, 8(%r14)
	movq	_kgdb_single_step@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_raw_smp_processor_id
	movq	_kgdb_cpu_doing_single_step@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_atomic_set
LBB0_9:
	movl	$6, %esi
	callq	_get_debugreg
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	$6, %esi
	callq	_set_debugreg
	xorl	%eax, %eax
	callq	_kgdb_correct_hw_break
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_EFLAGS_TF,4,2              ## @X86_EFLAGS_TF
	.comm	_kgdb_cpu_doing_single_step,4,2 ## @kgdb_cpu_doing_single_step
	.comm	_kgdb_single_step,4,2           ## @kgdb_single_step
	.comm	_breakinfo,8,3                  ## @breakinfo
	.comm	_X86_EFLAGS_RF,4,2              ## @X86_EFLAGS_RF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kgdb_arch_handle_exception     ; -- Begin function kgdb_arch_handle_exception
	.p2align	2
_kgdb_arch_handle_exception:            ; @kgdb_arch_handle_exception
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x5
	mov	x20, x3
	ldrsb	w8, [x3]
	mov	w0, #-1
	cmp	w8, #106
	b.gt	LBB0_3
; %bb.1:
	cmp	w8, #68
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #99
	b.eq	LBB0_5
	b	LBB0_10
LBB0_3:
	cmp	w8, #107
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #115
	b.ne	LBB0_10
LBB0_5:
	add	x8, x20, #1
	str	x8, [sp]
	mov	x0, sp
	add	x1, sp, #8
	bl	_kgdb_hex2long
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_7:
Lloh0:
	adrp	x21, _X86_EFLAGS_TF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _X86_EFLAGS_TF@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh2:
	adrp	x0, _kgdb_cpu_doing_single_step@GOTPAGE
Lloh3:
	ldr	x0, [x0, _kgdb_cpu_doing_single_step@GOTPAGEOFF]
	mov	w1, #-1
	bl	_atomic_set
	ldrb	w8, [x20]
	cmp	w8, #115
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh4:
	adrp	x8, _kgdb_single_step@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kgdb_single_step@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
	bl	_raw_smp_processor_id
	mov	x1, x0
Lloh7:
	adrp	x0, _kgdb_cpu_doing_single_step@GOTPAGE
Lloh8:
	ldr	x0, [x0, _kgdb_cpu_doing_single_step@GOTPAGEOFF]
	bl	_atomic_set
LBB0_9:
	mov	w1, #6
	bl	_get_debugreg
	mov	x0, #0
	mov	w1, #6
	bl	_set_debugreg
	bl	_kgdb_correct_hw_break
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_EFLAGS_TF,4,2              ; @X86_EFLAGS_TF
	.comm	_kgdb_cpu_doing_single_step,4,2 ; @kgdb_cpu_doing_single_step
	.comm	_kgdb_single_step,4,2           ; @kgdb_single_step
	.comm	_breakinfo,8,3                  ; @breakinfo
	.comm	_X86_EFLAGS_RF,4,2              ; @X86_EFLAGS_RF
.subsections_via_symbols
