	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_elf_gc_common_finalize_got_offsets ## -- Begin function bfd_elf_gc_common_finalize_got_offsets
	.p2align	4, 0x90
_bfd_elf_gc_common_finalize_got_offsets: ## @bfd_elf_gc_common_finalize_got_offsets
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_get_elf_backend_data
	movq	%rax, %r14
	movq	8(%rax), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_is_elf_hash_table
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%r14)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_4:
	movq	(%r14), %r14
LBB0_5:
	sarl	$3, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r12
	testq	%r12, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_30
## %bb.6:
	movl	%ebx, %r15d
	movq	_bfd_target_elf_flavour@GOTPCREL(%rip), %r13
	jmp	LBB0_7
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, (%rbx,%rcx,8)
	addq	%r15, %r14
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %r12
	testq	%r12, %r12
	je	LBB0_30
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%r12, %rdi
	callq	_bfd_get_flavour
	cmpq	(%r13), %rax
	jne	LBB0_29
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_elf_local_got_refcounts
	testq	%rax, %rax
	je	LBB0_29
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_elf_tdata
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_elf_bad_symtab
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rax
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_bfd_target_elf_flavour@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$1, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %al
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rbx,%rcx,8)
	jg	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	$-1, (%rbx,%rcx,8)
	jmp	LBB0_29
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rdx
	andq	$-2, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	%r14, 8(%rbx,%rcx,8)
	addq	%r15, %r14
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_25
LBB0_18:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rbx,%rcx,8)
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%r14, (%rbx,%rcx,8)
	addq	%r15, %r14
	cmpq	$0, 8(%rbx,%rcx,8)
	jg	LBB0_23
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	$-1, (%rbx,%rcx,8)
	cmpq	$0, 8(%rbx,%rcx,8)
	jg	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	$-1, 8(%rbx,%rcx,8)
	jmp	LBB0_24
LBB0_30:
	movq	%r14, -72(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_elf_hash_table
	movq	_elf_gc_allocate_got_offsets@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-80(%rbp), %rdx
	movl	%eax, %edi
	callq	_elf_link_hash_traverse
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_bfd_target_elf_flavour,8,3     ## @bfd_target_elf_flavour
	.comm	_elf_gc_allocate_got_offsets,4,2 ## @elf_gc_allocate_got_offsets
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_elf_gc_common_finalize_got_offsets ; -- Begin function bfd_elf_gc_common_finalize_got_offsets
	.p2align	2
_bfd_elf_gc_common_finalize_got_offsets: ; @bfd_elf_gc_common_finalize_got_offsets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	bl	_get_elf_backend_data
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w21, w9, w8, lt
	ldr	w0, [x19, #8]
	bl	_is_elf_hash_table
	cbz	w0, LBB0_3
; %bb.1:
	asr	w24, w21, #3
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x25, #0
	ldr	x21, [x19]
	cbnz	x21, LBB0_5
	b	LBB0_16
LBB0_3:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	ldr	x25, [x20]
	ldr	x21, [x19]
	cbz	x21, LBB0_16
LBB0_5:
Lloh2:
	adrp	x26, _bfd_target_elf_flavour@GOTPAGE
Lloh3:
	ldr	x26, [x26, _bfd_target_elf_flavour@GOTPAGEOFF]
	mov	x27, #-1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x21, [x21]
	cbz	x21, LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x21
	bl	_bfd_get_flavour
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_elf_local_got_refcounts
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	mov	x0, x21
	bl	_elf_tdata
	mov	x23, x0
	mov	x0, x21
	bl	_elf_bad_symtab
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x20, #8]
	ldr	x9, [x9, #8]
	udiv	x8, x8, x9
	cbnz	x8, LBB0_14
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_14
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	str	x27, [x22]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x22, x22, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x22]
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	str	x25, [x22]
	add	x25, x25, x24
	b	LBB0_13
LBB0_16:
	str	x25, [sp, #8]
	str	w24, [sp]
	mov	x0, x19
	bl	_elf_hash_table
Lloh4:
	adrp	x8, _elf_gc_allocate_got_offsets@GOTPAGE
Lloh5:
	ldr	x8, [x8, _elf_gc_allocate_got_offsets@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_elf_link_hash_traverse
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_bfd_target_elf_flavour,8,3     ; @bfd_target_elf_flavour
	.comm	_elf_gc_allocate_got_offsets,4,2 ; @elf_gc_allocate_got_offsets
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
