	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ck_linktarget
LCPI0_0:
	.space	1
	.byte	3                               ## 0x3
	.byte	67                              ## 0x43
	.byte	73                              ## 0x49
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ck_linktarget:                         ## @ck_linktarget
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	%edx, -20(%rbp)
	movq	_PIOCRWFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	cmpl	$0, -20(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_4:
	leaq	-28(%rbp), %rsi
	movl	%ebx, %edi
	movl	$5, %edx
	callq	_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$5, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_CIS_LINKTARGET@GOTPCREL(%rip), %rax
	movd	-28(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <u,3,67,73,u,u,u,u,u,u,u,u,u,u,u,u>
	pinsrb	$0, (%rax), %xmm1
	pcmpeqb	%xmm0, %xmm1
	pmovsxbd	%xmm1, %xmm0
	pslld	$31, %xmm0
	movmskps	%xmm0, %ecx
	xorb	$15, %cl
	movb	-24(%rbp), %dl
	xorb	$83, %dl
	xorl	%eax, %eax
	orb	%cl, %dl
	sete	%al
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIOCRWFLAG,4,2                 ## @PIOCRWFLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting flag to rad %s memory failed"

L_.str.1:                               ## @.str.1
	.asciz	"attribute"

L_.str.2:                               ## @.str.2
	.asciz	"common"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"Unable to seek to memory offset %ju"

	.comm	_CIS_LINKTARGET,1,0             ## @CIS_LINKTARGET
	.no_dead_strip	_ck_linktarget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ck_linktarget
_ck_linktarget:                         ; @ck_linktarget
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	w2, [sp, #12]
Lloh0:
	adrp	x8, _PIOCRWFLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIOCRWFLAG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_lseek
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_4:
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #5
	bl	_read
	cmp	w0, #5
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _CIS_LINKTARGET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CIS_LINKTARGET@GOTPAGEOFF]
	ldr	s0, [sp, #4]
	ushll.8h	v0, v0, #0
	ld1.b	{ v1 }[0], [x8]
	mov	w8, #3
	mov.h	v1[1], w8
	mov	w8, #67
	mov.h	v1[2], w8
	mov	w8, #73
	mov.h	v1[3], w8
	bic.4h	v1, #255, lsl #8
	cmeq.4h	v0, v0, v1
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	umov.h	w10, v0[2]
	bfi	w8, w9, #1, #1
	and	w9, w10, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	mov	w9, #15
	bics	wzr, w9, w8
	ldrb	w8, [sp, #8]
	mov	w9, #83
	ccmp	w8, w9, #0, eq
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PIOCRWFLAG,4,2                 ; @PIOCRWFLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting flag to rad %s memory failed"

l_.str.1:                               ; @.str.1
	.asciz	"attribute"

l_.str.2:                               ; @.str.2
	.asciz	"common"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"Unable to seek to memory offset %ju"

	.comm	_CIS_LINKTARGET,1,0             ; @CIS_LINKTARGET
	.no_dead_strip	_ck_linktarget
.subsections_via_symbols
