	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function native_attach_process
_native_attach_process:                 ## @native_attach_process
	.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	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rsi
	movq	8(%rsi), %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r12d, (%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_CXL_MODE_DIRECTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	8(%rax), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%r8                            ## TAILCALL
LBB0_4:
	movq	_CXL_MODE_DEDICATED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device link is down, refusing to attach process!\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_CXL_MODE_DIRECTED,8,3          ## @CXL_MODE_DIRECTED
	.comm	_CXL_MODE_DEDICATED,8,3         ## @CXL_MODE_DEDICATED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_native_attach_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function native_attach_process
_native_attach_process:                 ; @native_attach_process
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x1, [x0, #8]
	ldr	x0, [x1, #8]
	blr	x8
	cbz	w0, LBB0_6
; %bb.1:
	str	w22, [x21]
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _CXL_MODE_DIRECTED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CXL_MODE_DIRECTED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	ldr	x10, [x8, #8]
	ldr	x10, [x10]
	ldr	x10, [x10]
	ldr	x3, [x10]
	cbnz	x3, LBB0_5
LBB0_3:
Lloh6:
	adrp	x10, _CXL_MODE_DEDICATED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CXL_MODE_DEDICATED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x3, [x8, #8]
	cbz	x3, LBB0_7
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x3
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device link is down, refusing to attach process!\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_CXL_MODE_DIRECTED,8,3          ; @CXL_MODE_DIRECTED
	.comm	_CXL_MODE_DEDICATED,8,3         ; @CXL_MODE_DEDICATED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_native_attach_process
.subsections_via_symbols
