	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ITSProtocol_create             ## -- Begin function ITSProtocol_create
	.p2align	4, 0x90
_ITSProtocol_create:                    ## @ITSProtocol_create
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TRACE
	xorl	%eax, %eax
	callq	_ITSS_LockModule
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$40, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	addq	$8, %rcx
	movq	_ITSProtocolUnkVtbl@GOTPCREL(%rip), %rdx
	movq	%rdx, 8(%rax)
	movq	_ITSProtocolVtbl@GOTPCREL(%rip), %rdx
	movq	%rdx, 32(%rax)
	movq	_ITSProtocolInfoVtbl@GOTPCREL(%rip), %rdx
	movq	%rdx, 24(%rax)
	testq	%rbx, %rbx
	cmoveq	%rcx, %rbx
	movl	$1, (%rax)
	movq	%rbx, 16(%rax)
	movq	%rcx, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p %p)\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_ITSProtocolUnkVtbl,4,2         ## @ITSProtocolUnkVtbl
	.comm	_ITSProtocolVtbl,4,2            ## @ITSProtocolVtbl
	.comm	_ITSProtocolInfoVtbl,4,2        ## @ITSProtocolInfoVtbl
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ITSProtocol_create             ; -- Begin function ITSProtocol_create
	.p2align	2
_ITSProtocol_create:                    ; @ITSProtocol_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	bl	_ITSS_LockModule
	bl	_GetProcessHeap
Lloh2:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #40
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ITSProtocolUnkVtbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ITSProtocolUnkVtbl@GOTPAGEOFF]
	mov	x9, x0
	str	x8, [x9, #8]!
Lloh7:
	adrp	x8, _ITSProtocolVtbl@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ITSProtocolVtbl@GOTPAGEOFF]
	str	x8, [x0, #32]
Lloh9:
	adrp	x8, _ITSProtocolInfoVtbl@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ITSProtocolInfoVtbl@GOTPAGEOFF]
	mov	w10, #1
	str	w10, [x0]
	cmp	x20, #0
	csel	x10, x9, x20, eq
	stp	x10, x8, [x0, #16]
	str	x9, [x19]
Lloh11:
	adrp	x8, _S_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p %p)\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_ITSProtocolUnkVtbl,4,2         ; @ITSProtocolUnkVtbl
	.comm	_ITSProtocolVtbl,4,2            ; @ITSProtocolVtbl
	.comm	_ITSProtocolInfoVtbl,4,2        ; @ITSProtocolInfoVtbl
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
