	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppc64_cas                      ## -- Begin function ppc64_cas
	.p2align	4, 0x90
_ppc64_cas:                             ## @ppc64_cas
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mfpvr
	movq	_PVR_CPU_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ppc64_hv
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_OF_open
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	movq	_ibm_arch_vec@GOTPCREL(%rip), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_OF_call_method
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_9
LBB0_3:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	-24(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%r14d, %edi
	callq	_OF_close
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR_CPU_MASK,4,2               ## @PVR_CPU_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.2:                               ## @.str.2
	.asciz	"ibm,client-architecture-support"

	.comm	_ibm_arch_vec,4,2               ## @ibm_arch_vec
L_.str.4:                               ## @.str.4
	.asciz	"cas: error: 0x%08lX\n"

L_str:                                  ## @str
	.asciz	"cas: failed to call CAS method"

L_str.5:                                ## @str.5
	.asciz	"cas: failed to open / node"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppc64_cas                      ; -- Begin function ppc64_cas
	.p2align	2
_ppc64_cas:                             ; @ppc64_cas
	.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
	bl	_mfpvr
Lloh0:
	adrp	x8, _PVR_CPU_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR_CPU_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w0, w8
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	bl	_ppc64_hv
	cbz	x0, LBB0_4
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_open
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh7:
	adrp	x4, _ibm_arch_vec@GOTPAGE
Lloh8:
	ldr	x4, [x4, _ibm_arch_vec@GOTPAGEOFF]
	add	x5, sp, #8
	mov	x1, x19
	mov	w2, #1
	mov	w3, #1
	bl	_OF_call_method
	cbz	w0, LBB0_8
; %bb.6:
	mov	x20, x0
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x0, l_str.5@PAGE
Lloh12:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	mov	w20, #-1
	b	LBB0_3
LBB0_8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.9:
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w20, #-1
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_OF_close
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR_CPU_MASK,4,2               ; @PVR_CPU_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.2:                               ; @.str.2
	.asciz	"ibm,client-architecture-support"

	.comm	_ibm_arch_vec,4,2               ; @ibm_arch_vec
l_.str.4:                               ; @.str.4
	.asciz	"cas: error: 0x%08lX\n"

l_str:                                  ; @str
	.asciz	"cas: failed to call CAS method"

l_str.5:                                ; @str.5
	.asciz	"cas: failed to open / node"

.subsections_via_symbols
