	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitWebBrowser                 ## -- Begin function InitWebBrowser
	.p2align	4, 0x90
_InitWebBrowser:                        ## @InitWebBrowser
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$56, %edi
	callq	_heap_alloc_zero
	movq	_FALSE@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	16(%rax), %r12
	movq	_OleClientSiteVtbl@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_OleInPlaceSiteVtbl@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_OleInPlaceFrameVtbl@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_DocHostUIHandlerVtbl@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movl	$1, (%rbx)
	movl	%r15d, 24(%rbx)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%r14)
	movq	_OLERENDER_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%rbx), %r14
	movq	%r14, (%rsp)
	movq	_CLSID_WebBrowser@GOTPCREL(%rip), %rdi
	movq	_IID_IOleObject@GOTPCREL(%rip), %rsi
	movq	_MyIStorage@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_OleCreate
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	leaq	-44(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetClientRect
	movq	(%r14), %rdi
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_OleSetContainedObject
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rdi
	movq	_OLEIVERB_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%edx, %edx
	movq	%r12, %rcx
	movl	$-1, %r8d
	movl	%r15d, %r9d
	callq	_IOleObject_DoVerb
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	(%r14), %rdi
	movq	_IID_IOleInPlaceObject@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_IOleObject_QueryInterface
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	movq	%rdx, %rsi
	callq	_IOleInPlaceObject_SetObjectRects
	movq	-56(%rbp), %rdi
	callq	_IOleInPlaceObject_Release
	movq	8(%rbx), %rdi
	addq	$4, %rbx
	movq	_IID_IWebBrowser2@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_IOleObject_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ReleaseWebBrowser
	movq	_FALSE@GOTPCREL(%rip), %r13
LBB0_7:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_OleClientSiteVtbl,4,2          ## @OleClientSiteVtbl
	.comm	_OleInPlaceSiteVtbl,4,2         ## @OleInPlaceSiteVtbl
	.comm	_OleInPlaceFrameVtbl,4,2        ## @OleInPlaceFrameVtbl
	.comm	_DocHostUIHandlerVtbl,4,2       ## @DocHostUIHandlerVtbl
	.comm	_CLSID_WebBrowser,4,2           ## @CLSID_WebBrowser
	.comm	_IID_IOleObject,4,2             ## @IID_IOleObject
	.comm	_OLERENDER_DRAW,4,2             ## @OLERENDER_DRAW
	.comm	_MyIStorage,4,2                 ## @MyIStorage
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_OLEIVERB_SHOW,4,2              ## @OLEIVERB_SHOW
	.comm	_IID_IOleInPlaceObject,4,2      ## @IID_IOleInPlaceObject
	.comm	_IID_IWebBrowser2,4,2           ## @IID_IWebBrowser2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitWebBrowser                 ; -- Begin function InitWebBrowser
	.p2align	2
_InitWebBrowser:                        ; @InitWebBrowser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	mov	w0, #56
	bl	_heap_alloc_zero
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _OleClientSiteVtbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OleClientSiteVtbl@GOTPAGEOFF]
	mov	x22, x0
	str	x8, [x22, #16]!
Lloh2:
	adrp	x8, _OleInPlaceSiteVtbl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OleInPlaceSiteVtbl@GOTPAGEOFF]
	str	x8, [x0, #48]
Lloh4:
	adrp	x8, _OleInPlaceFrameVtbl@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OleInPlaceFrameVtbl@GOTPAGEOFF]
Lloh6:
	adrp	x9, _DocHostUIHandlerVtbl@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DocHostUIHandlerVtbl@GOTPAGEOFF]
	stp	x9, x8, [x0, #32]
	mov	w8, #1
	str	w8, [x0]
	str	w21, [x0, #24]
	str	x0, [x19]
Lloh8:
	adrp	x8, _OLERENDER_DRAW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OLERENDER_DRAW@GOTPAGEOFF]
	add	x23, x0, #8
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x0, _CLSID_WebBrowser@GOTPAGE
Lloh12:
	ldr	x0, [x0, _CLSID_WebBrowser@GOTPAGEOFF]
Lloh13:
	adrp	x1, _IID_IOleObject@GOTPAGE
Lloh14:
	ldr	x1, [x1, _IID_IOleObject@GOTPAGEOFF]
Lloh15:
	adrp	x5, _MyIStorage@GOTPAGE
Lloh16:
	ldr	x5, [x5, _MyIStorage@GOTPAGEOFF]
	mov	w3, #0
	mov	x4, x22
	mov	x6, x23
	bl	_OleCreate
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.2:
	add	x1, sp, #4
	mov	x0, x21
	bl	_GetClientRect
	ldr	x0, [x23]
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_OleSetContainedObject
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x23]
Lloh20:
	adrp	x8, _OLEIVERB_SHOW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OLEIVERB_SHOW@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x6, sp, #4
	mov	x2, #0
	mov	x3, x22
	mov	w4, #-1
	mov	x5, x21
	bl	_IOleObject_DoVerb
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x23]
Lloh23:
	adrp	x1, _IID_IOleInPlaceObject@GOTPAGE
Lloh24:
	ldr	x1, [x1, _IID_IOleInPlaceObject@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_IOleObject_QueryInterface
	bl	_FAILED
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_ReleaseWebBrowser
LBB0_6:
Lloh25:
	adrp	x8, _FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_IOleInPlaceObject_SetObjectRects
	ldr	x0, [sp, #8]
	bl	_IOleInPlaceObject_Release
	ldr	x0, [x20, #8]
	add	x2, x20, #4
Lloh27:
	adrp	x1, _IID_IWebBrowser2@GOTPAGE
Lloh28:
	ldr	x1, [x1, _IID_IWebBrowser2@GOTPAGEOFF]
	bl	_IOleObject_QueryInterface
	bl	_SUCCEEDED
	cbz	x0, LBB0_5
; %bb.9:
Lloh29:
	adrp	x8, _TRUE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_OleClientSiteVtbl,4,2          ; @OleClientSiteVtbl
	.comm	_OleInPlaceSiteVtbl,4,2         ; @OleInPlaceSiteVtbl
	.comm	_OleInPlaceFrameVtbl,4,2        ; @OleInPlaceFrameVtbl
	.comm	_DocHostUIHandlerVtbl,4,2       ; @DocHostUIHandlerVtbl
	.comm	_CLSID_WebBrowser,4,2           ; @CLSID_WebBrowser
	.comm	_IID_IOleObject,4,2             ; @IID_IOleObject
	.comm	_OLERENDER_DRAW,4,2             ; @OLERENDER_DRAW
	.comm	_MyIStorage,4,2                 ; @MyIStorage
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_OLEIVERB_SHOW,4,2              ; @OLEIVERB_SHOW
	.comm	_IID_IOleInPlaceObject,4,2      ; @IID_IOleInPlaceObject
	.comm	_IID_IWebBrowser2,4,2           ; @IID_IWebBrowser2
.subsections_via_symbols
