	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __debug_exception_event
___debug_exception_event:               ## @__debug_exception_event
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdx
	leaq	-128(%rdx), %rax
	cmpq	$5, %rax
	jae	LBB0_1
## %bb.6:
	movl	8(%rbx), %r14d
	movq	%rdx, %rdi
	callq	___get_w32_excep_name
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
LBB0_4:
	callq	_eprintf
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpq	$1080890248, %rdx               ## imm = 0x406D1388
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %ecx
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	$1080890248, %edx               ## imm = 0x406D1388
	callq	_eprintf
	movl	$1, %eax
	jmp	LBB0_5
LBB0_3:
	movl	(%rbx), %ecx
	movl	8(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) Fatal exception (%s) in thread %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"(%d) MS_VC_EXCEPTION (%x) in thread %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"(%d) Unknown exception %x in thread %d\n"

	.no_dead_strip	___debug_exception_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __debug_exception_event
___debug_exception_event:               ; @__debug_exception_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x2, [x0, #16]
	sub	x8, x2, #128
	cmp	x8, #5
	b.hs	LBB0_4
; %bb.1:
	ldr	w20, [x19, #8]
	mov	x0, x2
	bl	___get_w32_excep_name
	mov	x2, x0
	ldr	w3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
LBB0_2:
	bl	_eprintf
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w8, #5000
	movk	w8, #16493, lsl #16
	cmp	x2, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x19, #8]
	ldr	w3, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #5000
	movk	w2, #16493, lsl #16
	bl	_eprintf
	mov	w0, #1
	b	LBB0_3
LBB0_6:
	ldr	w1, [x19, #8]
	ldr	w3, [x19]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) Fatal exception (%s) in thread %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"(%d) MS_VC_EXCEPTION (%x) in thread %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"(%d) Unknown exception %x in thread %d\n"

	.no_dead_strip	___debug_exception_event
.subsections_via_symbols
