	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrease_state
_decrease_state:                        ## @decrease_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_26
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	%r15, %rdi
	movl	$131, %esi
	callq	_change_state
	cmpl	$131, %r14d
	je	LBB0_31
LBB0_4:
	movq	%r15, %rdi
	callq	_clear_script_queue
	movq	16(%r15), %rax
	cmpl	$131, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$130, %esi
	callq	_change_state
LBB0_6:
	cmpl	$130, %r14d
	je	LBB0_31
## %bb.7:
	movq	16(%r15), %rax
LBB0_8:
	movq	40(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_IDispatch_Release
	movq	16(%r15), %rax
	movq	$0, 40(%rax)
LBB0_10:
	movq	32(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rdi
	callq	_heap_free
	movq	%rbx, %rdi
	callq	_heap_free
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	16(%rbx), %r12
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_IDispatch_Release
	jmp	LBB0_13
LBB0_22:
	cmpl	$128, %r14d
	jne	LBB0_25
## %bb.23:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.24:
	movl	$128, %esi
	callq	_IActiveScriptSite_OnStateChange
	jmp	LBB0_28
LBB0_25:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_29
LBB0_14:
	movq	16(%r15), %rax
	movq	$0, 32(%rax)
LBB0_15:
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_IInternetHostSecurityManager_Release
	movq	16(%r15), %rax
	movq	$0, 24(%rax)
LBB0_17:
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_IActiveScriptSite_Release
	movq	16(%r15), %rax
	movq	$0, 16(%rax)
LBB0_19:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_jsdisp_release
	movq	16(%r15), %rax
	movq	$0, 8(%rax)
LBB0_21:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_change_state
	jmp	LBB0_27
LBB0_26:
	xorl	%edi, %edi
	callq	_assert
LBB0_27:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_change_state
	cmpl	$128, %r14d
	jne	LBB0_29
LBB0_28:
	movq	$0, 8(%r15)
LBB0_29:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_IActiveScriptSite_Release
	movq	$0, (%r15)
LBB0_31:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NULL ctx\n"

	.no_dead_strip	_decrease_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrease_state
_decrease_state:                        ; @decrease_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_14
; %bb.1:
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_26
; %bb.2:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	x0, x19
	mov	w1, #131
	bl	_change_state
	cmp	w20, #131
	b.eq	LBB0_31
LBB0_4:
	mov	x0, x19
	bl	_clear_script_queue
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #130
	bl	_change_state
LBB0_6:
	cmp	w20, #130
	b.eq	LBB0_31
; %bb.7:
	ldr	x8, [x19, #16]
LBB0_8:
	ldr	x0, [x8, #40]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_IDispatch_Release
	ldr	x8, [x19, #16]
	str	xzr, [x8, #40]
LBB0_10:
	ldr	x21, [x8, #32]
	cbnz	x21, LBB0_12
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x21]
	bl	_heap_free
	mov	x0, x21
	bl	_heap_free
	mov	x21, x22
	cbz	x22, LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	x0, x22, [x21, #8]
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_IDispatch_Release
	b	LBB0_11
LBB0_14:
	cmp	w20, #128
	b.ne	LBB0_17
; %bb.15:
	ldr	x0, [x19]
	cbz	x0, LBB0_28
; %bb.16:
	mov	w1, #128
	bl	_IActiveScriptSite_OnStateChange
	b	LBB0_28
LBB0_17:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_29
LBB0_18:
	ldr	x8, [x19, #16]
	str	xzr, [x8, #32]
LBB0_19:
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_IInternetHostSecurityManager_Release
	ldr	x8, [x19, #16]
	str	xzr, [x8, #24]
LBB0_21:
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_IActiveScriptSite_Release
	ldr	x8, [x19, #16]
	str	xzr, [x8, #16]
LBB0_23:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_jsdisp_release
	ldr	x8, [x19, #16]
	str	xzr, [x8, #8]
LBB0_25:
	mov	x0, x19
	mov	x1, x20
	bl	_change_state
	b	LBB0_27
LBB0_26:
	mov	w0, #0
	bl	_assert
LBB0_27:
	mov	x0, x19
	mov	x1, x20
	bl	_change_state
	cmp	w20, #128
	b.ne	LBB0_29
LBB0_28:
	str	xzr, [x19, #8]
LBB0_29:
	ldr	x0, [x19]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_IActiveScriptSite_Release
	str	xzr, [x19]
LBB0_31:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL ctx\n"

	.no_dead_strip	_decrease_state
.subsections_via_symbols
