	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs6000_emit_set_long_const
_rs6000_emit_set_long_const:            ## @rs6000_emit_set_long_const
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_TARGET_POWERPC64@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movzwl	%r12w, %edi
	movl	%r12d, %r13d
	shrl	$16, %r13d
	movzwl	%bx, %r14d
	cmpl	$-65536, %ebx                   ## imm = 0xFFFF0000
	setae	%cl
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	sete	%al
	andb	%cl, %al
	movl	%r12d, %ecx
	andl	$32768, %ecx                    ## imm = 0x8000
	je	LBB0_5
## %bb.3:
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	jne	LBB0_5
## %bb.4:
	testb	%al, %al
	jne	LBB0_7
LBB0_5:
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	ja	LBB0_10
## %bb.6:
	movl	%ecx, %edx
	orl	%ebx, %edx
	jne	LBB0_10
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	movswl	%r12w, %edi
LBB0_9:
	callq	_GEN_INT
LBB0_26:
	movl	%r15d, %edi
	jmp	LBB0_27
LBB0_1:
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	$0, (%rax)
	sete	%sil
	movq	_DImode@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%r15d, %edi
	callq	_operand_subword_force
	movl	%eax, %r14d
	xorl	%esi, %esi
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%sil
	movl	(%r13), %edx
	movl	%r15d, %edi
	callq	_operand_subword_force
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_GEN_INT
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	movl	%ebx, %edi
	callq	_GEN_INT
	movl	%r13d, %edi
LBB0_27:
	movl	%eax, %esi
	callq	_emit_move_insn
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	sete	%cl
	testl	%r12d, %r12d
	movzbl	%al, %eax
	cmovsl	%eax, %ecx
	cmpb	$1, %cl
	jne	LBB0_13
## %bb.11:
	andl	$-65536, %r12d                  ## imm = 0xFFFF0000
	movl	%edi, %ebx
	movl	%r12d, %edi
	callq	_GEN_INT
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	testl	%ebx, %ebx
	je	LBB0_28
## %bb.12:
	movl	%ebx, %edi
	movq	_DImode@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_25
LBB0_13:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-65536, %ebx                   ## imm = 0xFFFF0000
	setae	%al
	cmpl	$32768, %ebx                    ## imm = 0x8000
	jb	LBB0_15
## %bb.14:
	movzwl	%bx, %ecx
	shrl	$15, %ecx
	andb	%cl, %al
	jne	LBB0_15
## %bb.18:
	andl	$-65536, %ebx                   ## imm = 0xFFFF0000
	movl	%ebx, %edi
	callq	_GEN_INT
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:
	movq	_DImode@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_IOR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
LBB0_20:
	movq	_DImode@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	$32, %edi
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_ASHIFT
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	cmpl	$65536, %r12d                   ## imm = 0x10000
	jb	LBB0_23
## %bb.21:
	movl	(%r14), %ebx
	andl	$-65536, %r12d                  ## imm = 0xFFFF0000
	movl	%r12d, %edi
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_IOR
	jmp	LBB0_22
LBB0_15:
	shll	$16, %ebx
	movl	%ebx, %edi
	callq	_GEN_INT
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	cmpl	$65536, %r12d                   ## imm = 0x10000
	jb	LBB0_17
## %bb.16:
	movq	_DImode@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_IOR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
LBB0_17:
	movq	_DImode@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	$16, %edi
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_ASHIFT
LBB0_22:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_emit_move_insn
LBB0_23:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	je	LBB0_28
## %bb.24:
	movl	(%r14), %ebx
LBB0_25:
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gen_rtx_IOR
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_POWERPC64,4,2           ## @TARGET_POWERPC64
	.comm	_WORDS_BIG_ENDIAN,8,3           ## @WORDS_BIG_ENDIAN
	.comm	_DImode,4,2                     ## @DImode
	.no_dead_strip	_rs6000_emit_set_long_const
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs6000_emit_set_long_const
_rs6000_emit_set_long_const:            ; @rs6000_emit_set_long_const
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TARGET_POWERPC64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_POWERPC64@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.1:
	and	w20, w21, #0xffff
	lsr	w23, w21, #16
	and	w24, w22, #0xffff
	mov	w8, #-65537
	cmp	w22, w8
	mov	w10, #65535
	ccmp	w24, w10, #0, hi
	cset	w8, eq
	and	w9, w21, #0x8000
	tbz	w21, #15, LBB0_4
; %bb.2:
	cmp	w23, w10
	b.ne	LBB0_4
; %bb.3:
	cbnz	w8, LBB0_6
LBB0_4:
	cbnz	w23, LBB0_10
; %bb.5:
	orr	w10, w9, w22
	cbnz	w10, LBB0_10
LBB0_6:
	cbnz	w9, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_GEN_INT
	b	LBB0_26
LBB0_8:
Lloh3:
	adrp	x23, _WORDS_BIG_ENDIAN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WORDS_BIG_ENDIAN@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w1, eq
Lloh5:
	adrp	x24, _DImode@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DImode@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_operand_subword_force
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w1, ne
	ldr	w2, [x24]
	mov	x0, x19
	bl	_operand_subword_force
	mov	x23, x0
	mov	x0, x21
	bl	_GEN_INT
	mov	x1, x0
	mov	x0, x20
	bl	_emit_move_insn
	mov	x0, x22
	bl	_GEN_INT
	mov	x1, x0
	mov	x0, x23
	b	LBB0_27
LBB0_9:
	sxth	w0, w21
	bl	_GEN_INT
	b	LBB0_26
LBB0_10:
	cmp	w22, #0
	cset	w9, eq
	cmp	w21, #0
	csel	w8, w8, w9, lt
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.11:
	and	w0, w21, #0xffff0000
	bl	_GEN_INT
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
	cbz	w20, LBB0_28
; %bb.12:
Lloh7:
	adrp	x8, _DImode@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DImode@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_25
LBB0_13:
	mov	w8, #-65537
	cmp	w22, w8
	cset	w8, hi
	cmp	w22, #8, lsl #12                ; =32768
	b.lo	LBB0_21
; %bb.14:
	and	w9, w22, #0x8000
	and	w8, w8, w9, lsr #15
	cbnz	w8, LBB0_21
; %bb.15:
	and	w0, w22, #0xffff0000
	bl	_GEN_INT
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
Lloh10:
	adrp	x23, _DImode@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DImode@GOTPAGEOFF]
	cbz	w24, LBB0_17
; %bb.16:
	ldr	w22, [x23]
	mov	x0, x24
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_gen_rtx_IOR
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
LBB0_17:
	ldr	w22, [x23]
	mov	w0, #32
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_gen_rtx_ASHIFT
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
	cmp	w21, #16, lsl #12               ; =65536
	b.lo	LBB0_19
; %bb.18:
	ldr	w22, [x23]
	and	w0, w21, #0xffff0000
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_gen_rtx_IOR
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
LBB0_19:
	cbz	w20, LBB0_28
; %bb.20:
	ldr	w21, [x23]
	b	LBB0_25
LBB0_21:
	lsl	w0, w22, #16
	bl	_GEN_INT
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
	cmp	w21, #16, lsl #12               ; =65536
	b.lo	LBB0_23
; %bb.22:
Lloh12:
	adrp	x8, _DImode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DImode@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gen_rtx_IOR
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
LBB0_23:
Lloh15:
	adrp	x22, _DImode@GOTPAGE
Lloh16:
	ldr	x22, [x22, _DImode@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	w0, #16
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gen_rtx_ASHIFT
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
	cbz	w20, LBB0_28
; %bb.24:
	ldr	w21, [x22]
LBB0_25:
	mov	x0, x20
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_gen_rtx_IOR
LBB0_26:
	mov	x1, x0
	mov	x0, x19
LBB0_27:
	bl	_emit_move_insn
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_POWERPC64,4,2           ; @TARGET_POWERPC64
	.comm	_WORDS_BIG_ENDIAN,8,3           ; @WORDS_BIG_ENDIAN
	.comm	_DImode,4,2                     ; @DImode
	.no_dead_strip	_rs6000_emit_set_long_const
.subsections_via_symbols
