	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IOCS_OnDraw
_IOCS_OnDraw:                           ## @IOCS_OnDraw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$0, 24(%rbx)
	je	LBB0_4
## %bb.2:
	movq	_IID_IViewObject@GOTPCREL(%rip), %rsi
	leaq	-24(%rbp), %rdx
	callq	_IOleObject_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_GetDC
	movl	%eax, %r14d
	movups	4(%rbx), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	-24(%rbp), %rdi
	movq	_DVASPECT_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	%rax
	pushq	%rax
	pushq	%r14
	callq	_IViewObject_Draw
	addq	$48, %rsp
	movq	-24(%rbp), %rdi
	callq	_IViewObject_Release
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_ReleaseDC
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IID_IViewObject,4,2            ## @IID_IViewObject
	.comm	_DVASPECT_CONTENT,4,2           ## @DVASPECT_CONTENT
	.no_dead_strip	_IOCS_OnDraw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IOCS_OnDraw
_IOCS_OnDraw:                           ; @IOCS_OnDraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	w0, [x0, #20]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, _IID_IViewObject@GOTPAGE
Lloh1:
	ldr	x1, [x1, _IID_IViewObject@GOTPAGEOFF]
	sub	x2, x29, #24
	bl	_IOleObject_QueryInterface
	bl	_SUCCEEDED
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_GetDC
	mov	x20, x0
	ldur	q0, [x19, #4]
	str	q0, [sp, #32]
	ldur	x0, [x29, #-24]
Lloh2:
	adrp	x8, _DVASPECT_CONTENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DVASPECT_CONTENT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	str	wzr, [sp, #16]
	add	x8, sp, #32
	stp	x8, xzr, [sp]
	add	x7, sp, #32
	mov	w2, #-1
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x20
	bl	_IViewObject_Draw
	ldur	x0, [x29, #-24]
	bl	_IViewObject_Release
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ReleaseDC
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IID_IViewObject,4,2            ; @IID_IViewObject
	.comm	_DVASPECT_CONTENT,4,2           ; @DVASPECT_CONTENT
	.no_dead_strip	_IOCS_OnDraw
.subsections_via_symbols
