	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_fxm
_insert_fxm:                            ## @insert_fxm
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	testl	$1048576, %ebx                  ## imm = 0x100000
	jne	LBB0_1
## %bb.3:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.4:
	leaq	-1(%rsi), %rax
	testq	%rax, %rsi
	jne	LBB0_5
## %bb.10:
	movq	_PPC_OPCODE_POWER4@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_13
## %bb.11:
	movl	%ebx, %eax
	andl	$2046, %eax                     ## imm = 0x7FE
	cmpq	$38, %rax
	jne	LBB0_6
## %bb.12:
	movq	_PPC_OPCODE_ANY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	je	LBB0_6
LBB0_13:
	orq	$1048576, %rbx                  ## imm = 0x100000
	jmp	LBB0_14
LBB0_1:
	leaq	-1(%rsi), %rax
	testq	%rax, %rsi
	sete	%al
	testq	%rsi, %rsi
	setne	%cl
	testb	%al, %cl
	jne	LBB0_14
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	movl	%ebx, %eax
	andl	$2046, %eax                     ## imm = 0x7FE
LBB0_6:
	cmpl	$38, %eax
	jne	LBB0_14
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	__
	movq	%rax, (%r14)
LBB0_9:
	xorl	%esi, %esi
LBB0_14:
	movzbl	%sil, %eax
	shlq	$12, %rax
	orq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid mask field"

	.comm	_PPC_OPCODE_POWER4,4,2          ## @PPC_OPCODE_POWER4
	.comm	_PPC_OPCODE_ANY,4,2             ## @PPC_OPCODE_ANY
L_.str.1:                               ## @.str.1
	.asciz	"ignoring invalid mfcr mask"

	.no_dead_strip	_insert_fxm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_fxm
_insert_fxm:                            ; @insert_fxm
	.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, x3
	mov	x19, x0
	tbnz	w19, #20, LBB0_7
; %bb.1:
	cbz	x1, LBB0_13
; %bb.2:
	sub	x8, x1, #1
	tst	x1, x8
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _PPC_OPCODE_POWER4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPC_OPCODE_POWER4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_6
; %bb.4:
	and	x8, x19, #0x7fe
	cmp	x8, #38
	b.ne	LBB0_10
; %bb.5:
Lloh3:
	adrp	x9, _PPC_OPCODE_ANY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PPC_OPCODE_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w2
	cbz	w9, LBB0_10
LBB0_6:
	orr	x19, x19, #0x100000
	b	LBB0_13
LBB0_7:
	fmov	d0, x1
	cnt.8b	v0, v0
	uaddlv.8b	h0, v0
	fmov	w8, s0
	cmp	x8, #1
	b.eq	LBB0_13
; %bb.8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
	and	x8, x19, #0x7fe
LBB0_10:
	cmp	x8, #38
	b.ne	LBB0_13
; %bb.11:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	__
	mov	x1, #0
	str	x0, [x20]
LBB0_13:
	lsl	w8, w1, #12
	and	x8, x8, #0xff000
	orr	x0, x8, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid mask field"

	.comm	_PPC_OPCODE_POWER4,4,2          ; @PPC_OPCODE_POWER4
	.comm	_PPC_OPCODE_ANY,4,2             ; @PPC_OPCODE_ANY
l_.str.1:                               ; @.str.1
	.asciz	"ignoring invalid mfcr mask"

	.no_dead_strip	_insert_fxm
.subsections_via_symbols
