	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_ready_state
_update_ready_state:                    ## @update_ready_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_READYSTATE_LOADING@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rsi, %rax
	jge	LBB0_3
## %bb.1:
	cmpl	$-1, 12(%r14)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movl	12(%r14), %eax
	movl	%eax, 16(%r14)
	movl	$-1, 12(%r14)
	movq	(%r15), %rax
LBB0_3:
	cmpq	%rbx, %rax
	jge	LBB0_7
## %bb.4:
	cmpq	%rax, (%r14)
	jg	LBB0_7
## %bb.5:
	cmpl	$0, 8(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_DISPID_NAVIGATECOMPLETE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_notif_complete
LBB0_7:
	movq	_READYSTATE_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_11
## %bb.8:
	cmpq	%rbx, (%r14)
	jge	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_doc_state
	cmpl	$0, 8(%r14)
	je	LBB0_10
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_doc_state                  ## TAILCALL
LBB0_10:
	movq	_DISPID_DOCUMENTCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_notif_complete                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_READYSTATE_LOADING,8,3         ## @READYSTATE_LOADING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"histupdate not notified\n"

	.comm	_DISPID_NAVIGATECOMPLETE2,4,2   ## @DISPID_NAVIGATECOMPLETE2
	.comm	_READYSTATE_COMPLETE,8,3        ## @READYSTATE_COMPLETE
	.comm	_DISPID_DOCUMENTCOMPLETE,4,2    ## @DISPID_DOCUMENTCOMPLETE
	.no_dead_strip	_update_ready_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_ready_state
_update_ready_state:                    ; @update_ready_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
Lloh0:
	adrp	x21, _READYSTATE_LOADING@GOTPAGE
Lloh1:
	ldr	x21, [x21, _READYSTATE_LOADING@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
	b.ge	LBB0_3
; %bb.1:
	ldr	w9, [x19, #12]
	cmn	w9, #1
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	ldr	w8, [x19, #12]
	mov	w9, #-1
	stp	w9, w8, [x19, #12]
	ldr	x8, [x21]
LBB0_3:
	cmp	x8, x20
	b.ge	LBB0_7
; %bb.4:
	ldr	x9, [x19]
	cmp	x9, x8
	b.gt	LBB0_7
; %bb.5:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _DISPID_NAVIGATECOMPLETE2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DISPID_NAVIGATECOMPLETE2@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_notif_complete
LBB0_7:
Lloh7:
	adrp	x8, _READYSTATE_COMPLETE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _READYSTATE_COMPLETE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x19]
	cmp	x8, x20
	b.ge	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_set_doc_state
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_12
; %bb.10:
	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
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	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
	b	_set_doc_state
LBB0_12:
Lloh10:
	adrp	x8, _DISPID_DOCUMENTCOMPLETE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DISPID_DOCUMENTCOMPLETE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_notif_complete
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_READYSTATE_LOADING,8,3         ; @READYSTATE_LOADING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"histupdate not notified\n"

	.comm	_DISPID_NAVIGATECOMPLETE2,4,2   ; @DISPID_NAVIGATECOMPLETE2
	.comm	_READYSTATE_COMPLETE,8,3        ; @READYSTATE_COMPLETE
	.comm	_DISPID_DOCUMENTCOMPLETE,4,2    ; @DISPID_DOCUMENTCOMPLETE
	.no_dead_strip	_update_ready_state
.subsections_via_symbols
