	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bind_to_object
_bind_to_object:                        ## @bind_to_object
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %r12
	movq	%rsi, -40(%rbp)
	movq	$0, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_IMoniker_AddRef
LBB0_4:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IMoniker_GetDisplayName
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_FIXME
	jmp	LBB0_7
LBB0_2:
	leaq	-40(%rbp), %rsi
	movl	%r15d, %edi
	callq	_create_moniker
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movq	-40(%rbp), %rbx
	jmp	LBB0_4
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_set_dochost_url
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_CoTaskMemFree
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	_IMoniker_Release
LBB0_14:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SZ_HTML_CLIENTSITE_OBJECTPARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_IBindCtx_RegisterObjectParam
	movq	-40(%rbp), %rdi
	movq	_IID_IUnknown@GOTPCREL(%rip), %rcx
	leaq	-56(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_IMoniker_BindToObject
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:
	callq	_IUnknown_Release
	jmp	LBB0_13
LBB0_11:
	movl	%r15d, %edi
	callq	_try_application_url
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_FIXME
LBB0_13:
	movq	-40(%rbp), %rdi
	callq	_IMoniker_Release
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetDisplayName failed: %08x\n"

	.comm	_SZ_HTML_CLIENTSITE_OBJECTPARAM,8,3 ## @SZ_HTML_CLIENTSITE_OBJECTPARAM
	.comm	_IID_IUnknown,4,2               ## @IID_IUnknown
	.comm	_S_OK,4,2                       ## @S_OK
L_.str.1:                               ## @.str.1
	.asciz	"BindToObject failed: %08x\n"

	.no_dead_strip	_bind_to_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bind_to_object
_bind_to_object:                        ; @bind_to_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	stp	xzr, x1, [sp, #16]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x1
	mov	x0, x1
	bl	_IMoniker_AddRef
LBB0_2:
	add	x3, sp, #8
	mov	x0, x22
	mov	w1, #0
	mov	x2, #0
	bl	_IMoniker_GetDisplayName
	mov	x22, x0
	bl	_FAILED
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_FIXME
	b	LBB0_7
LBB0_4:
	add	x1, sp, #24
	mov	x0, x19
	bl	_create_moniker
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	x22, [sp, #24]
	b	LBB0_2
LBB0_6:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_set_dochost_url
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_CoTaskMemFree
	mov	x0, x22
	bl	_FAILED
	cbz	x0, LBB0_9
LBB0_7:
	ldr	x0, [sp, #24]
	bl	_IMoniker_Release
LBB0_8:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_9:
Lloh2:
	adrp	x8, _SZ_HTML_CLIENTSITE_OBJECTPARAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_HTML_CLIENTSITE_OBJECTPARAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_IBindCtx_RegisterObjectParam
	ldr	x0, [sp, #24]
Lloh5:
	adrp	x3, _IID_IUnknown@GOTPAGE
Lloh6:
	ldr	x3, [x3, _IID_IUnknown@GOTPAGEOFF]
	add	x4, sp, #16
	mov	x1, x20
	mov	x2, #0
	bl	_IMoniker_BindToObject
	mov	x20, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_14
; %bb.11:
	bl	_IUnknown_Release
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_try_application_url
	cbnz	x0, LBB0_14
; %bb.13:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_FIXME
LBB0_14:
	ldr	x0, [sp, #24]
	bl	_IMoniker_Release
Lloh9:
	adrp	x8, _S_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetDisplayName failed: %08x\n"

	.comm	_SZ_HTML_CLIENTSITE_OBJECTPARAM,8,3 ; @SZ_HTML_CLIENTSITE_OBJECTPARAM
	.comm	_IID_IUnknown,4,2               ; @IID_IUnknown
	.comm	_S_OK,4,2                       ; @S_OK
l_.str.1:                               ; @.str.1
	.asciz	"BindToObject failed: %08x\n"

	.no_dead_strip	_bind_to_object
.subsections_via_symbols
