	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_h_control_facility
_cxl_h_control_facility:                ## @cxl_h_control_facility
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PLPAR_HCALL9_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	_H_CONTROL_CA_FACILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	movq	%rbx, %rcx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r9
	movq	%r13, %r12
	pushq	%r13
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	pushq	%r13
	pushq	%r15
	callq	_CXL_H9_WAIT_UNTIL_DONE
	addq	$32, %rsp
	movq	%r14, %rdi
	callq	_OP_STR_CONTROL_ADAPTER
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	pushq	(%r14)
	pushq	%r12
	pushq	%r13
	callq	__PRINT_MSG
	addq	$32, %rsp
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_OP_STR_CONTROL_ADAPTER
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	movq	%r14, %r15
	pushq	(%r14)
	callq	_trace_cxl_hcall_control_facility
	addq	$16, %rsp
	movq	_H_CONTROL_CA_FACILITY_COLLECT_VPD@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbp), %rax
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PLPAR_HCALL9_BUFSIZE,4,2       ## @PLPAR_HCALL9_BUFSIZE
	.comm	_H_CONTROL_CA_FACILITY,4,2      ## @H_CONTROL_CA_FACILITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxl_h_control_facility(%#.16llx, %s(%#llx, %#llx, %#llx, %#llx, R4: %#lx)): %li\n"

	.comm	_H_CONTROL_CA_FACILITY_COLLECT_VPD,8,3 ## @H_CONTROL_CA_FACILITY_COLLECT_VPD
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EBUSY,8,3                      ## @EBUSY
	.no_dead_strip	_cxl_h_control_facility
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_h_control_facility
_cxl_h_control_facility:                ; @cxl_h_control_facility
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _PLPAR_HCALL9_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLPAR_HCALL9_BUFSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
Lloh8:
	adrp	x8, _H_CONTROL_CA_FACILITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H_CONTROL_CA_FACILITY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	str	x5, [sp, #-16]!
	mov	x1, x25
	mov	x3, x0
	mov	x4, x20
	mov	x5, x24
	mov	x6, x23
	mov	x7, x22
	bl	_CXL_H9_WAIT_UNTIL_DONE
	add	sp, sp, #16
	mov	x0, x20
	bl	_OP_STR_CONTROL_ADAPTER
	ldr	x8, [x25]
	str	x8, [sp, #-16]!
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	mov	x3, x0
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	mov	x7, x21
	bl	__PRINT_MSG
	add	sp, sp, #16
	mov	x0, x20
	bl	_OP_STR_CONTROL_ADAPTER
	mov	x1, x0
	ldr	x6, [x25]
	mov	x0, x26
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_trace_cxl_hcall_control_facility
Lloh13:
	adrp	x8, _H_CONTROL_CA_FACILITY_COLLECT_VPD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H_CONTROL_CA_FACILITY_COLLECT_VPD@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x25]
	str	x8, [x19]
LBB0_2:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, #0
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PLPAR_HCALL9_BUFSIZE,4,2       ; @PLPAR_HCALL9_BUFSIZE
	.comm	_H_CONTROL_CA_FACILITY,4,2      ; @H_CONTROL_CA_FACILITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxl_h_control_facility(%#.16llx, %s(%#llx, %#llx, %#llx, %#llx, R4: %#lx)): %li\n"

	.comm	_H_CONTROL_CA_FACILITY_COLLECT_VPD,8,3 ; @H_CONTROL_CA_FACILITY_COLLECT_VPD
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EBUSY,8,3                      ; @EBUSY
	.no_dead_strip	_cxl_h_control_facility
.subsections_via_symbols
