	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs6000_eliminate_indexed_memrefs
_rs6000_eliminate_indexed_memrefs:      ## @rs6000_eliminate_indexed_memrefs
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_GET_CODE
	movq	_MEM@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_GET_CODE
	movq	_REG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_legitimate_constant_pool_address_p
	movq	_reload_in_progress@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_copy_addr_to_reg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_replace_equiv_address
	movl	%eax, (%rbx)
LBB0_4:
	movl	4(%rbx), %edi
	callq	_GET_CODE
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.5:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_GET_CODE
	movq	_REG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_legitimate_constant_pool_address_p
	movq	_reload_in_progress@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movl	4(%rbx), %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_copy_addr_to_reg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_replace_equiv_address
	movl	%eax, 4(%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM,8,3                        ## @MEM
	.comm	_REG,8,3                        ## @REG
	.comm	_reload_in_progress,4,2         ## @reload_in_progress
	.no_dead_strip	_rs6000_eliminate_indexed_memrefs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs6000_eliminate_indexed_memrefs
_rs6000_eliminate_indexed_memrefs:      ; @rs6000_eliminate_indexed_memrefs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0]
	bl	_GET_CODE
Lloh0:
	adrp	x22, _MEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MEM@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _REG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REG@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_XEXP
	bl	_GET_CODE
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_XEXP
	bl	_legitimate_constant_pool_address_p
Lloh4:
	adrp	x8, _reload_in_progress@GOTPAGE
Lloh5:
	ldr	x8, [x8, _reload_in_progress@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w8, w0, w8
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w20, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_XEXP
	bl	_copy_addr_to_reg
	mov	x1, x0
	mov	x0, x20
	bl	_replace_equiv_address
	str	w0, [x19]
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_GET_CODE
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_XEXP
	bl	_GET_CODE
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_XEXP
	bl	_legitimate_constant_pool_address_p
Lloh7:
	adrp	x8, _reload_in_progress@GOTPAGE
Lloh8:
	ldr	x8, [x8, _reload_in_progress@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w0, w8
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w20, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	bl	_XEXP
	bl	_copy_addr_to_reg
	mov	x1, x0
	mov	x0, x20
	bl	_replace_equiv_address
	str	w0, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM,8,3                        ; @MEM
	.comm	_REG,8,3                        ; @REG
	.comm	_reload_in_progress,4,2         ; @reload_in_progress
	.no_dead_strip	_rs6000_eliminate_indexed_memrefs
.subsections_via_symbols
