	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc_insert_operand
_ppc_insert_operand:                    ## @ppc_insert_operand
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r8
	movq	(%rsi), %rcx
	movq	%rcx, %r9
	negq	%r9
	andq	%rcx, %r9
	movl	8(%rsi), %ebx
	movq	_PPC_OPERAND_SIGNED@GOTPCREL(%rip), %rsi
	testl	%ebx, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	_PPC_OPERAND_SIGNOPT@GOTPCREL(%rip), %rsi
	movq	%rcx, %rdi
	sarq	%rdi
	movq	%r9, %rax
	negq	%rax
	andq	%rax, %rdi
	testl	%ebx, (%rsi)
	cmoveq	%rdi, %rcx
	movq	%rcx, %rsi
	notq	%rsi
	andq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	_PPC_OPERAND_PLUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$1, %eax
	sbbq	$-1, %rcx
	movq	_PPC_OPERAND_NEGATIVE@GOTPCREL(%rip), %rax
	movq	%rcx, %r15
	negq	%r15
	movq	%rsi, %r12
	negq	%r12
	testl	%ebx, (%rax)
	cmoveq	%rsi, %r15
	cmoveq	%rcx, %r12
	cmpq	%r12, %r15
	jle	LBB0_4
LBB0_15:
	movq	%rdx, %r13
	jmp	LBB0_16
LBB0_4:
	cmpq	%rdx, %r12
	jge	LBB0_10
## %bb.5:
	movabsq	$-4294967296, %r13              ## imm = 0xFFFFFFFF00000000
	addq	%rdx, %r13
	cmpq	%r15, %r13
	jl	LBB0_8
## %bb.6:
	cmpq	%r12, %r13
	jg	LBB0_8
## %bb.7:
	leaq	-1(%r9), %rax
	testq	%r13, %rax
	je	LBB0_16
LBB0_8:
	cmpq	%rdx, %r15
	jg	LBB0_11
	jmp	LBB0_9
LBB0_10:
	cmpq	%rdx, %r15
	jle	LBB0_14
LBB0_11:
	movabsq	$4294967296, %r13               ## imm = 0x100000000
	addq	%rdx, %r13
	cmpq	%r15, %r13
	jl	LBB0_9
## %bb.12:
	cmpq	%r12, %r13
	jg	LBB0_9
## %bb.13:
	decq	%r9
	testq	%r13, %r9
	jne	LBB0_9
	jmp	LBB0_16
LBB0_14:
	decq	%r9
	testq	%rdx, %r9
	je	LBB0_15
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%r8, %rbx
	movq	%rdx, %r13
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_as_bad_value_out_of_range
	movq	%rbx, %r8
LBB0_16:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	$0, -64(%rbp)
	movq	_ppc_cpu@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-64(%rbp), %rcx
	movq	%r8, %rdi
	movq	%r13, %rsi
	callq	*%rax
	movq	%rax, %r13
	movq	-64(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.18:
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_as_bad_where
	jmp	LBB0_20
LBB0_19:
	andq	(%r14), %r13
	movb	24(%r14), %cl
	shlq	%cl, %r13
	orq	%r8, %r13
LBB0_20:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPC_OPERAND_SIGNED,4,2         ## @PPC_OPERAND_SIGNED
	.comm	_PPC_OPERAND_SIGNOPT,4,2        ## @PPC_OPERAND_SIGNOPT
	.comm	_PPC_OPERAND_PLUS1,4,2          ## @PPC_OPERAND_PLUS1
	.comm	_PPC_OPERAND_NEGATIVE,4,2       ## @PPC_OPERAND_NEGATIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"operand"

	.comm	_ppc_cpu,4,2                    ## @ppc_cpu
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_ppc_insert_operand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc_insert_operand
_ppc_insert_operand:                    ; @ppc_insert_operand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x9, [x1]
	neg	x8, x9
	and	x8, x9, x8
	ldr	w10, [x1, #8]
Lloh0:
	adrp	x11, _PPC_OPERAND_SIGNED@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PPC_OPERAND_SIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x11, _PPC_OPERAND_SIGNOPT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PPC_OPERAND_SIGNOPT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	neg	x12, x8
	and	x13, x12, x9, asr #1
	tst	w11, w10
	csel	x9, x13, x9, eq
	bic	x11, x12, x9
	b	LBB0_3
LBB0_2:
	mov	x11, #0
LBB0_3:
Lloh6:
	adrp	x12, _PPC_OPERAND_PLUS1@GOTPAGE
Lloh7:
	ldr	x12, [x12, _PPC_OPERAND_PLUS1@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w10
Lloh9:
	adrp	x12, _PPC_OPERAND_NEGATIVE@GOTPAGE
Lloh10:
	ldr	x12, [x12, _PPC_OPERAND_NEGATIVE@GOTPAGEOFF]
	cinc	x9, x9, ne
Lloh11:
	ldr	w12, [x12]
	tst	w12, w10
	csneg	x24, x11, x9, eq
	csneg	x25, x9, x11, eq
	cmp	x24, x25
	b.gt	LBB0_15
; %bb.4:
	cmp	x25, x22
	b.ge	LBB0_8
; %bb.5:
	mov	x9, #-4294967296
	add	x9, x22, x9
	cmp	x9, x24
	ccmp	x9, x25, #0, ge
	b.gt	LBB0_7
; %bb.6:
	sub	x10, x8, #1
	tst	x10, x9
	b.eq	LBB0_11
LBB0_7:
	cmp	x24, x22
	b.gt	LBB0_9
	b	LBB0_14
LBB0_8:
	cmp	x24, x22
	b.le	LBB0_13
LBB0_9:
	mov	x9, #4294967296
	add	x9, x22, x9
	cmp	x9, x24
	ccmp	x9, x25, #0, ge
	b.gt	LBB0_14
; %bb.10:
	sub	x8, x8, #1
	tst	x8, x9
	b.ne	LBB0_14
LBB0_11:
	mov	x22, x9
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_16
LBB0_12:
	ldr	x8, [x23]
	and	x8, x8, x22
	ldr	x9, [x23, #24]
	lsl	x8, x8, x9
	orr	x21, x8, x21
	b	LBB0_18
LBB0_13:
	sub	x8, x8, #1
	tst	x8, x22
	b.eq	LBB0_15
LBB0_14:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, x20
	mov	x5, x19
	bl	_as_bad_value_out_of_range
LBB0_15:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_12
LBB0_16:
	str	xzr, [sp, #8]
Lloh14:
	adrp	x9, _ppc_cpu@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ppc_cpu@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x21, x0
	ldr	x3, [sp, #8]
	cbz	x3, LBB0_18
; %bb.17:
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_as_bad_where
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PPC_OPERAND_SIGNED,4,2         ; @PPC_OPERAND_SIGNED
	.comm	_PPC_OPERAND_SIGNOPT,4,2        ; @PPC_OPERAND_SIGNOPT
	.comm	_PPC_OPERAND_PLUS1,4,2          ; @PPC_OPERAND_PLUS1
	.comm	_PPC_OPERAND_NEGATIVE,4,2       ; @PPC_OPERAND_NEGATIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"operand"

	.comm	_ppc_cpu,4,2                    ; @ppc_cpu
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_ppc_insert_operand
.subsections_via_symbols
