	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SYSLINK_GetItem
_SYSLINK_GetItem:                       ## @SYSLINK_GetItem
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	movq	_LIF_ITEMINDEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.1:
	movq	_LIF_FLAGSMASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	32(%rsi), %esi
	callq	_SYSLINK_GetLinkItemByIndex
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	movl	(%r12), %eax
	movq	_LIF_STATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movl	8(%r12), %ecx
	andl	(%r14), %ecx
	movl	%ecx, 4(%r12)
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	_LIS_FOCUSED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, 4(%r12)
LBB0_6:
	movq	_LIF_ITEMID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.7:
	movq	16(%r14), %rsi
	movq	24(%r12), %rdi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.8:
	callq	_lstrcpyW
	movl	(%r12), %eax
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
LBB0_10:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_11:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	32(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_10
LBB0_13:
	movq	$0, (%rdi)
LBB0_14:
	movq	_LIF_URL@GOTPCREL(%rip), %rcx
	movq	_TRUE@GOTPCREL(%rip), %rbx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.15:
	movq	8(%r14), %rsi
	movq	16(%r12), %rdi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	callq	_lstrcpyW
	jmp	LBB0_11
LBB0_17:
	movq	$0, (%rdi)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_LIF_ITEMINDEX,4,2              ## @LIF_ITEMINDEX
	.comm	_LIF_FLAGSMASK,4,2              ## @LIF_FLAGSMASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Flags!\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Link %d couldn't be found\n"

	.comm	_LIF_STATE,4,2                  ## @LIF_STATE
	.comm	_LIS_FOCUSED,4,2                ## @LIS_FOCUSED
	.comm	_LIF_ITEMID,4,2                 ## @LIF_ITEMID
	.comm	_LIF_URL,4,2                    ## @LIF_URL
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_SYSLINK_GetItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SYSLINK_GetItem
_SYSLINK_GetItem:                       ; @SYSLINK_GetItem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _LIF_ITEMINDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIF_ITEMINDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
Lloh3:
	adrp	x9, _LIF_FLAGSMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LIF_FLAGSMASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.2:
	mov	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #32]
	bl	_SYSLINK_GetLinkItemByIndex
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _LIF_STATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LIF_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x20]
	ldr	w10, [x19, #8]
	and	w9, w10, w9
	str	w9, [x19, #4]
	ldr	w10, [x21]
	cbnz	w10, LBB0_6
; %bb.5:
Lloh9:
	adrp	x10, _LIS_FOCUSED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LIS_FOCUSED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	bic	w9, w9, w10
	str	w9, [x19, #4]
LBB0_6:
Lloh12:
	adrp	x9, _LIF_ITEMID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LIF_ITEMID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.7:
	ldr	x1, [x20, #16]
	ldr	x0, [x19, #24]
	cbz	x1, LBB0_12
; %bb.8:
	bl	_lstrcpyW
	ldr	w8, [x19]
	b	LBB0_13
LBB0_9:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_ERR
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_12:
	str	xzr, [x0]
LBB0_13:
Lloh21:
	adrp	x9, _LIF_URL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LIF_URL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	ldr	x1, [x20, #8]
	ldr	x0, [x19, #16]
	cbz	x1, LBB0_16
; %bb.15:
	bl	_lstrcpyW
	b	LBB0_17
LBB0_16:
	str	xzr, [x0]
LBB0_17:
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LIF_ITEMINDEX,4,2              ; @LIF_ITEMINDEX
	.comm	_LIF_FLAGSMASK,4,2              ; @LIF_FLAGSMASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Flags!\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Link %d couldn't be found\n"

	.comm	_LIF_STATE,4,2                  ; @LIF_STATE
	.comm	_LIS_FOCUSED,4,2                ; @LIS_FOCUSED
	.comm	_LIF_ITEMID,4,2                 ; @LIF_ITEMID
	.comm	_LIF_URL,4,2                    ; @LIF_URL
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_SYSLINK_GetItem
.subsections_via_symbols
