	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc64_elf_toc64_reloc
_ppc64_elf_toc64_reloc:                 ## @ppc64_elf_toc64_reloc
	.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
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%r9, %r9
	je	LBB0_1
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rcx
	movq	%rbx, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfd_elf_generic_reloc          ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	__bfd_get_gp_value
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_ppc64_elf_toc
	movq	%rax, %r13
LBB0_3:
	movslq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_bfd_octets_per_byte
	cltq
	imulq	%rbx, %rax
	movq	_TOC_BASE_OFF@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r13
	leaq	(%r14,%rax,4), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bfd_put_64
	movq	_bfd_reloc_ok@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOC_BASE_OFF,8,3               ## @TOC_BASE_OFF
	.comm	_bfd_reloc_ok,4,2               ## @bfd_reloc_ok
	.no_dead_strip	_ppc64_elf_toc64_reloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc64_elf_toc64_reloc
_ppc64_elf_toc64_reloc:                 ; @ppc64_elf_toc64_reloc
	.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, x4
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	cbz	x5, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	mov	x4, x22
	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
	b	_bfd_elf_generic_reloc
LBB0_2:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	__bfd_get_gp_value
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_ppc64_elf_toc
	mov	x23, x0
LBB0_4:
	ldr	w21, [x21]
	mov	x0, x20
	bl	_bfd_octets_per_byte
	mul	w8, w0, w21
Lloh0:
	adrp	x9, _TOC_BASE_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TOC_BASE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x23
	add	x2, x19, w8, sxtw #2
	mov	x0, x20
	bl	_bfd_put_64
Lloh3:
	adrp	x8, _bfd_reloc_ok@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfd_reloc_ok@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TOC_BASE_OFF,8,3               ; @TOC_BASE_OFF
	.comm	_bfd_reloc_ok,4,2               ; @bfd_reloc_ok
	.no_dead_strip	_ppc64_elf_toc64_reloc
.subsections_via_symbols
