	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_xcoff_canonicalize_dynamic_symtab ## -- Begin function _bfd_xcoff_canonicalize_dynamic_symtab
	.p2align	4, 0x90
__bfd_xcoff_canonicalize_dynamic_symtab: ## @_bfd_xcoff_canonicalize_dynamic_symtab
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_xcoff_get_section_contents
	movq	$-1, %rcx
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_coff_section_data
	movq	8(%rax), %r13
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_coff_section_data
	movl	%r15d, (%rax)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bfd_xcoff_swap_ldhdr_in
	movslq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax
	shll	$3, %eax
	leal	(%rax,%rax,4), %esi
	movq	%r14, %rdi
	callq	_bfd_zalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bfd_xcoff_loader_symbol_offset
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movslq	-44(%rbp), %r15
	movq	%r14, %rdi
	callq	_bfd_xcoff_ldsymsz
	cltq
	imulq	%r15, %rax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.5:
	addq	%r13, -64(%rbp)                 ## 8-byte Folded Spill
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%r13,%rcx,4), %r13
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_SYMNMLEN@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, (%r12)
	movq	%r14, %rdi
	callq	_bfd_xcoff_ldsymsz
	cltq
	leaq	(%r13,%rax,4), %r13
	addq	$40, %rbx
	addq	$8, %r12
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	jae	LBB0_21
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-128(%rbp), %rdx
	callq	_bfd_xcoff_swap_ldsym_in
	movq	%r14, 32(%rbx)
	cmpq	$0, -88(%rbp)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %r12
	movq	%r14, %rdi
	callq	_bfd_alloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %r14
	movq	%rax, %r15
	movl	-96(%rbp), %esi
	movq	(%r14), %rdx
	movq	%rax, %rdi
	callq	_memcpy
	movq	(%r14), %rax
	movb	$0, (%r15,%rax)
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	-80(%rbp), %r15
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, (%rbx)
	movq	-128(%rbp), %rax
	movq	_XMC_XO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_bfd_abs_section_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-104(%rbp), %esi
	movq	%r14, %rdi
	callq	_coff_section_from_bfd_index
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_SYMNMLEN@GOTPCREL(%rip), %r15
	movq	%rax, 16(%rbx)
	movq	-112(%rbp), %rcx
	subq	(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movq	_BSF_NO_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_L_EXPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -120(%rbp)
	je	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_BSF_GLOBAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_6
LBB0_16:
	movq	_bfd_error_invalid_operation@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_bfd_error_no_symbols@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	callq	_bfd_set_error
LBB0_19:
	movq	$-1, %rcx
LBB0_20:
	movq	%rcx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	$0, (%r12)
	movslq	-44(%rbp), %rcx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_DYNAMIC,4,2                    ## @DYNAMIC
	.comm	_bfd_error_invalid_operation,4,2 ## @bfd_error_invalid_operation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".loader"

	.comm	_bfd_error_no_symbols,4,2       ## @bfd_error_no_symbols
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SYMNMLEN,8,3                   ## @SYMNMLEN
	.comm	_XMC_XO,8,3                     ## @XMC_XO
	.comm	_bfd_abs_section_ptr,8,3        ## @bfd_abs_section_ptr
	.comm	_BSF_NO_FLAGS,4,2               ## @BSF_NO_FLAGS
	.comm	_L_EXPORT,4,2                   ## @L_EXPORT
	.comm	_BSF_GLOBAL,4,2                 ## @BSF_GLOBAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_xcoff_canonicalize_dynamic_symtab ; -- Begin function _bfd_xcoff_canonicalize_dynamic_symtab
	.p2align	2
__bfd_xcoff_canonicalize_dynamic_symtab: ; @_bfd_xcoff_canonicalize_dynamic_symtab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DYNAMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_17
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_xcoff_get_section_contents
	cbz	w0, LBB0_19
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_coff_section_data
	ldr	x22, [x0, #8]
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_coff_section_data
	str	w23, [x0]
	add	x2, sp, #72
	mov	x0, x20
	mov	x1, x22
	bl	_bfd_xcoff_swap_ldhdr_in
	ldp	w24, w8, [sp, #72]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #3
	mov	x0, x20
	bl	_bfd_zalloc
	cbz	x0, LBB0_19
; %bb.4:
	mov	x21, x0
	add	x1, sp, #72
	mov	x0, x20
	bl	_bfd_xcoff_loader_symbol_offset
	mov	x23, x0
	ldr	w25, [sp, #76]
	mov	x0, x20
	bl	_bfd_xcoff_ldsymsz
	mul	w8, w0, w25
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.5:
	add	x9, x22, x24
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x22, x22, w23, sxtw #2
	add	x25, x22, w8, sxtw #2
Lloh8:
	adrp	x26, _XMC_XO@GOTPAGE
Lloh9:
	ldr	x26, [x26, _XMC_XO@GOTPAGEOFF]
Lloh10:
	adrp	x28, _BSF_NO_FLAGS@GOTPAGE
Lloh11:
	ldr	x28, [x28, _BSF_NO_FLAGS@GOTPAGEOFF]
Lloh12:
	adrp	x27, _L_EXPORT@GOTPAGE
Lloh13:
	ldr	x27, [x27, _L_EXPORT@GOTPAGEOFF]
Lloh14:
	adrp	x24, _SYMNMLEN@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SYMNMLEN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [x19], #8
	mov	x0, x20
	bl	_bfd_xcoff_ldsymsz
	add	x22, x22, w0, sxtw #2
	add	x21, x21, #40
	cmp	x22, x25
	b.hs	LBB0_21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x22
	bl	_bfd_xcoff_swap_ldsym_in
	str	x20, [x21, #32]
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24]
	add	x1, x8, #1
	mov	x0, x20
	bl	_bfd_alloc
	cbz	x0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	ldr	w1, [sp, #48]
	ldr	x2, [x24]
	bl	_memcpy
	ldr	x8, [x24]
	strb	wzr, [x23, x8]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [sp, #64]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x23, x9, x8
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x23, [x21]
	ldr	x8, [sp, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh16:
	adrp	x8, _bfd_abs_section_ptr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bfd_abs_section_ptr@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [sp, #40]
	mov	x0, x20
	bl	_coff_section_from_bfd_index
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x0, [x21, #16]
	ldr	x8, [sp, #32]
	ldr	x9, [x0]
	sub	x8, x8, x9
	str	x8, [x21, #24]
	ldr	w8, [x28]
	str	w8, [x21, #8]
	ldr	w9, [sp, #24]
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh19:
	adrp	x9, _BSF_GLOBAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BSF_GLOBAL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	b	LBB0_6
LBB0_16:
Lloh22:
	adrp	x8, _bfd_error_invalid_operation@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bfd_error_invalid_operation@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh24:
	adrp	x8, _bfd_error_no_symbols@GOTPAGE
Lloh25:
	ldr	x8, [x8, _bfd_error_no_symbols@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_19:
	mov	x0, #-1
LBB0_20:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_21:
	str	xzr, [x19]
	ldrsw	x0, [sp, #76]
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DYNAMIC,4,2                    ; @DYNAMIC
	.comm	_bfd_error_invalid_operation,4,2 ; @bfd_error_invalid_operation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".loader"

	.comm	_bfd_error_no_symbols,4,2       ; @bfd_error_no_symbols
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SYMNMLEN,8,3                   ; @SYMNMLEN
	.comm	_XMC_XO,8,3                     ; @XMC_XO
	.comm	_bfd_abs_section_ptr,8,3        ; @bfd_abs_section_ptr
	.comm	_BSF_NO_FLAGS,4,2               ; @BSF_NO_FLAGS
	.comm	_L_EXPORT,4,2                   ; @L_EXPORT
	.comm	_BSF_GLOBAL,4,2                 ; @BSF_GLOBAL
.subsections_via_symbols
