	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppc_instr_emulate              ## -- Begin function ppc_instr_emulate
	.p2align	4, 0x90
_ppc_instr_emulate:                     ## @ppc_instr_emulate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_fuword32
	movl	%eax, %ebx
	andl	$-65011713, %eax                ## imm = 0xFC1FFFFF
	cmpl	$2082423462, %eax               ## imm = 0x7C1F42A6
	jne	LBB0_4
## %bb.1:
	shrl	$21, %ebx
	andl	$31, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_mfpvr
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
LBB0_2:
	addq	$4, (%r14)
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_XFX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$2080375718, %eax               ## imm = 0x7C0003A6
	je	LBB0_7
## %bb.5:
	cmpl	$2080375462, %eax               ## imm = 0x7C0002A6
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %esi
	shrl	$21, %esi
	andl	$31, %esi
	shrl	$16, %ebx
	andl	$31, %ebx
	movl	%ebx, %edi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emulate_mfspr                  ## TAILCALL
LBB0_7:
	movl	%ebx, %esi
	shrl	$21, %esi
	andl	$31, %esi
	shrl	$16, %ebx
	andl	$31, %ebx
	movl	%ebx, %edi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emulate_mtspr                  ## TAILCALL
LBB0_8:
	andl	$-67104770, %ebx                ## imm = 0xFC000FFE
	cmpl	$2080375980, %ebx               ## imm = 0x7C0004AC
	jne	LBB0_10
## %bb.9:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_powerpc_sync
	jmp	LBB0_2
LBB0_10:
	movq	(%r15), %rbx
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_12
## %bb.11:
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
LBB0_12:
	movq	_curpmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	(%r14), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_pmap_sync_icache
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_XFX,4,2                        ## @XFX
	.comm	_curpmap,4,2                    ## @curpmap
	.comm	_PCB_FPREGS,4,2                 ## @PCB_FPREGS
	.comm	_PCB_FPU,4,2                    ## @PCB_FPU
	.comm	_SIGFPE,4,2                     ## @SIGFPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppc_instr_emulate              ; -- Begin function ppc_instr_emulate
	.p2align	2
_ppc_instr_emulate:                     ; @ppc_instr_emulate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	ldr	x0, [x0]
	bl	_fuword32
	and	w8, w0, #0xfc1fffff
	mov	w9, #17062
	movk	w9, #31775, lsl #16
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	ubfx	w20, w0, #21, #5
	bl	_mfpvr
	mov	x8, x0
	mov	w0, #0
	ldp	x10, x9, [x19]
	str	w8, [x9, w20, uxtw #2]
	add	x8, x10, #4
LBB0_2:
	str	x8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x8, _XFX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	mov	w9, #934
	movk	w9, #31744, lsl #16
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.5:
	mov	w9, #678
	movk	w9, #31744, lsl #16
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
	ubfx	w1, w0, #21, #5
	ubfx	w0, w0, #16, #5
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emulate_mfspr
LBB0_7:
	ubfx	w1, w0, #21, #5
	ubfx	w0, w0, #16, #5
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emulate_mtspr
LBB0_8:
	and	w8, w0, #0xfffffffe
	and	w8, w8, #0xfc000fff
	mov	w9, #1196
	movk	w9, #31744, lsl #16
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	bl	_powerpc_sync
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #4
	b	LBB0_2
LBB0_10:
	ldr	x20, [x20]
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh3:
	adrp	x8, _SIGILL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_12:
Lloh6:
	adrp	x8, _curpmap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _curpmap@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_PCPU_GET
	ldr	x1, [x19]
	mov	w2, #4
	bl	_pmap_sync_icache
	mov	w0, #0
	ldr	x8, [x19]
	str	x8, [x20, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_XFX,4,2                        ; @XFX
	.comm	_curpmap,4,2                    ; @curpmap
	.comm	_PCB_FPREGS,4,2                 ; @PCB_FPREGS
	.comm	_PCB_FPU,4,2                    ; @PCB_FPU
	.comm	_SIGFPE,4,2                     ; @SIGFPE
.subsections_via_symbols
