	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PullPin_Construct              ## -- Begin function PullPin_Construct
	.p2align	4, 0x90
_PullPin_Construct:                     ## @PullPin_Construct
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	40(%rbp), %rax
	movq	$0, (%rax)
	movq	(%rsi), %rsi
	movq	_PINDIR_INPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.2:
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r15
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	$4, %edi
	callq	_CoTaskMemAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	32(%rbp), %eax
	movl	24(%rbp), %r10d
	movl	16(%rbp), %r11d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_PullPin_Init
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	40(%rbp), %rax
	movq	%rbx, (%rax)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_CoTaskMemFree
	movq	_E_FAIL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINDIR_INPUT,8,3               ## @PINDIR_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pin direction(%x) != PINDIR_INPUT\n"

	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_E_FAIL,4,2                     ## @E_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PullPin_Construct              ; -- Begin function PullPin_Construct
	.p2align	2
_PullPin_Construct:                     ; @PullPin_Construct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x1
	ldr	x28, [x29, #24]
	str	xzr, [x28]
	ldr	x1, [x1]
Lloh0:
	adrp	x8, _PINDIR_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINDIR_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x27, x0
	mov	w0, #4
	bl	_CoTaskMemAlloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	ldr	w8, [x29, #16]
	str	x0, [sp, #8]
	str	w8, [sp]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_PullPin_Init
	bl	_SUCCEEDED
	cbz	x0, LBB0_6
; %bb.3:
	str	x23, [x28]
Lloh3:
	adrp	x8, _S_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh7:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	x0, x23
	bl	_CoTaskMemFree
Lloh11:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PINDIR_INPUT,8,3               ; @PINDIR_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pin direction(%x) != PINDIR_INPUT\n"

	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_E_FAIL,4,2                     ; @E_FAIL
.subsections_via_symbols
