	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unwind_exception
_unwind_exception:                      ## @unwind_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_jscript@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	8(%r15), %edi
	callq	_debugstr_jsval
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_WARN
	movl	8(%r15), %edi
	callq	_jsval_type
	movq	_JSV_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	8(%r15), %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_to_jsdisp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	_unwind_exception.messageW(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_jsdisp_propget_name
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_debugstr_jsval
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WARN
	movl	-44(%rbp), %edi
	callq	_jsval_release
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	movq	%r15, %rdi
	callq	_print_backtrace
LBB0_6:
	movq	_EXEC_RETURN_TO_INTERP@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rsi
	subq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_stack_popn
	movl	24(%rbx), %ebx
	movq	%r15, %rdi
	callq	_pop_call_frame
	testl	%ebx, (%r13)
	je	LBB0_24
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%r15), %rbx
	movq	32(%rbx), %r12
	testq	%r12, %r12
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	callq	_scope_pop
	jmp	LBB0_10
LBB0_8:
	movl	(%r12), %r13d
	movq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setle	%dil
	callq	_assert
	movq	(%r15), %rsi
	subq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_stack_popn
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	cmpq	(%rbx), %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_scope_pop
	jmp	LBB0_13
LBB0_14:
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.16:
	movl	%r13d, 28(%rbx)
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	_OP_enter_catch@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	jmp	LBB0_17
LBB0_15:
	movl	24(%r12), %eax
	movl	%eax, 28(%rbx)
LBB0_17:
	movl	8(%r15), %r14d
	xorl	%eax, %eax
	callq	_jsval_undefined
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_clear_ei
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.18:
	cmpl	$0, 24(%r12)
	je	LBB0_20
## %bb.19:
	movl	$0, (%r12)
	jmp	LBB0_21
LBB0_20:
	movq	32(%r12), %rax
	movq	%rax, 32(%rbx)
	movq	%r12, %rdi
	callq	_heap_free
LBB0_21:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_stack_push
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.22:
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jsval_bool
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_stack_push
	movl	%eax, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jscript,4,2                    ## @jscript
	.section	__TEXT,__const
_unwind_exception.messageW:             ## @unwind_exception.messageW
	.asciz	"message"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exception %08x %s"

	.comm	_JSV_OBJECT,8,3                 ## @JSV_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	" (message %s)"

L_.str.2:                               ## @.str.2
	.asciz	" in:\n"

	.comm	_EXEC_RETURN_TO_INTERP,4,2      ## @EXEC_RETURN_TO_INTERP
	.comm	_OP_enter_catch,8,3             ## @OP_enter_catch
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_unwind_exception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unwind_exception
_unwind_exception:                      ; @unwind_exception
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _jscript@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jscript@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_debugstr_jsval
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	ldr	w0, [x19, #8]
	bl	_jsval_type
Lloh5:
	adrp	x8, _JSV_OBJECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JSV_OBJECT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_get_object
	bl	_to_jsdisp
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, _unwind_exception.messageW@PAGE
Lloh9:
	add	x1, x1, _unwind_exception.messageW@PAGEOFF
	add	x2, sp, #28
	bl	_jsdisp_propget_name
	bl	_SUCCEEDED
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #28]
	bl	_debugstr_jsval
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	ldr	w0, [sp, #28]
	bl	_jsval_release
LBB0_5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
	mov	x0, x19
	bl	_print_backtrace
LBB0_6:
Lloh14:
	adrp	x23, _EXEC_RETURN_TO_INTERP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _EXEC_RETURN_TO_INTERP@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21, #16]
	sub	x1, x8, x9
	mov	x0, x19
	bl	_stack_popn
	ldr	w21, [x21, #24]
	mov	x0, x19
	bl	_pop_call_frame
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_24
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x21, [x19, #16]
	ldr	x22, [x21, #32]
	cbnz	x22, LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_scope_pop
	b	LBB0_9
LBB0_11:
	ldr	w23, [x22]
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x22, #8]
	sub	x1, x8, x9
	mov	x0, x19
	bl	_stack_popn
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_scope_pop
	b	LBB0_12
LBB0_14:
	cbz	w23, LBB0_16
; %bb.15:
	ldr	x8, [x21, #40]
	ldr	x8, [x8]
	ldr	x8, [x8, x23, lsl #3]
	str	w23, [x21, #28]
Lloh16:
	adrp	x9, _OP_enter_catch@GOTPAGE
Lloh17:
	ldr	x9, [x9, _OP_enter_catch@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	b	LBB0_17
LBB0_16:
	ldr	w8, [x22, #24]
	str	w8, [x21, #28]
LBB0_17:
	ldr	w20, [x19, #8]
	bl	_jsval_undefined
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_clear_ei
	cbz	w23, LBB0_20
; %bb.18:
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_20
; %bb.19:
	str	wzr, [x22]
	b	LBB0_21
LBB0_20:
	ldr	x8, [x22, #32]
	str	x8, [x21, #32]
	mov	x0, x22
	bl	_heap_free
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_stack_push
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.22:
	cbnz	w23, LBB0_24
; %bb.23:
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_jsval_bool
	mov	x1, x0
	mov	x0, x19
	bl	_stack_push
	mov	x20, x0
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_jscript,4,2                    ; @jscript
	.section	__TEXT,__const
_unwind_exception.messageW:             ; @unwind_exception.messageW
	.asciz	"message"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exception %08x %s"

	.comm	_JSV_OBJECT,8,3                 ; @JSV_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	" (message %s)"

l_.str.2:                               ; @.str.2
	.asciz	" in:\n"

	.comm	_EXEC_RETURN_TO_INTERP,4,2      ; @EXEC_RETURN_TO_INTERP
	.comm	_OP_enter_catch,8,3             ; @OP_enter_catch
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_unwind_exception
.subsections_via_symbols
