	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_xcoff_canonicalize_dynamic_reloc ## -- Begin function _bfd_xcoff_canonicalize_dynamic_reloc
	.p2align	4, 0x90
__bfd_xcoff_canonicalize_dynamic_reloc: ## @_bfd_xcoff_canonicalize_dynamic_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_xcoff_get_section_contents
	movq	$-1, %r12
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_coff_section_data
	movq	(%rax), %r14
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bfd_xcoff_swap_ldhdr_in
	movl	-48(%rbp), %esi
	shll	$5, %esi
	movq	%r15, %rdi
	callq	_bfd_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_bfd_xcoff_loader_reloc_offset
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	-48(%rbp), %r12
	movq	%r15, %rdi
	callq	_bfd_xcoff_ldrelsz
	cltq
	imulq	%r12, %rax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.7:
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%r14,%rcx,4), %r14
	leaq	(%r14,%rax,4), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	addl	$-3, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, 24(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%r15, %rdi
	callq	_bfd_xcoff_dynamic_reloc_howto
	movl	%eax, (%rbx)
	movq	%rbx, (%r13)
	movq	%r15, %rdi
	callq	_bfd_xcoff_ldrelsz
	cltq
	leaq	(%r14,%rax,4), %r14
	addq	$32, %rbx
	addq	$8, %r13
	cmpq	%r12, %r14
	jae	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	callq	_bfd_xcoff_swap_ldrel_in
	movslq	-64(%rbp), %rax
	cmpq	$3, %rax
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$3, %eax
	jae	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	l_reltable._bfd_xcoff_canonicalize_dynamic_reloc(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movq	%r15, %rdi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_bfd_error_invalid_operation@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	movq	_bfd_error_no_symbols@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edi
	callq	_bfd_set_error
	movq	$-1, %r12
LBB0_17:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	$0, (%r13)
	movslq	-48(%rbp), %r12
	jmp	LBB0_17
LBB0_15:
	movq	_bfd_error_bad_value@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	callq	_abort
	.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
L_.str.1:                               ## @.str.1
	.asciz	".text"

L_.str.2:                               ## @.str.2
	.asciz	".data"

L_.str.3:                               ## @.str.3
	.asciz	".bss"

	.comm	_bfd_error_bad_value,4,2        ## @bfd_error_bad_value
	.section	__TEXT,__const
	.p2align	2                               ## @reltable._bfd_xcoff_canonicalize_dynamic_reloc
l_reltable._bfd_xcoff_canonicalize_dynamic_reloc:
	.long	L_.str.1-l_reltable._bfd_xcoff_canonicalize_dynamic_reloc
	.long	L_.str.2-l_reltable._bfd_xcoff_canonicalize_dynamic_reloc
	.long	L_.str.3-l_reltable._bfd_xcoff_canonicalize_dynamic_reloc

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_xcoff_canonicalize_dynamic_reloc ; -- Begin function _bfd_xcoff_canonicalize_dynamic_reloc
	.p2align	2
__bfd_xcoff_canonicalize_dynamic_reloc: ; @_bfd_xcoff_canonicalize_dynamic_reloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DYNAMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_xcoff_get_section_contents
	cbz	w0, LBB0_15
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	bl	_coff_section_data
	ldr	x23, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_bfd_xcoff_swap_ldhdr_in
	ldr	w8, [sp, #8]
	lsl	w1, w8, #5
	mov	x0, x21
	bl	_bfd_alloc
	cbz	x0, LBB0_15
; %bb.4:
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_bfd_xcoff_loader_reloc_offset
	mov	x24, x0
	ldr	w25, [sp, #8]
	mov	x0, x21
	bl	_bfd_xcoff_ldrelsz
	mul	w8, w0, w25
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.5:
	add	x23, x23, w24, sxtw #2
	add	x24, x23, w8, sxtw #2
Lloh5:
	adrp	x25, l_switch.table._bfd_xcoff_canonicalize_dynamic_reloc@PAGE
Lloh6:
	add	x25, x25, l_switch.table._bfd_xcoff_canonicalize_dynamic_reloc@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w8, #3
	add	x8, x20, w8, uxtw #3
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	x8, [x22, #24]
	ldr	w8, [sp, #4]
	str	w8, [x22, #16]
	str	xzr, [x22, #8]
	mov	x0, x21
	bl	_bfd_xcoff_dynamic_reloc_howto
	str	w0, [x22]
	str	x22, [x19], #8
	mov	x0, x21
	bl	_bfd_xcoff_ldrelsz
	add	x23, x23, w0, sxtw #2
	add	x22, x22, #32
	cmp	x23, x24
	b.hs	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x21
	mov	x1, x23
	bl	_bfd_xcoff_swap_ldrel_in
	ldrsw	x8, [sp]
	cmp	w8, #3
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #3
	b.hs	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x25, x8, lsl #3]
	mov	x0, x21
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0]
	b	LBB0_7
LBB0_12:
Lloh7:
	adrp	x8, _bfd_error_invalid_operation@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bfd_error_invalid_operation@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _bfd_error_no_symbols@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bfd_error_no_symbols@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_15:
	mov	x0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	str	xzr, [x19]
	ldrsw	x0, [sp, #8]
	b	LBB0_16
LBB0_18:
Lloh11:
	adrp	x8, _bfd_error_bad_value@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bfd_error_bad_value@GOTPAGEOFF]
	b	LBB0_14
LBB0_19:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.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
l_.str.1:                               ; @.str.1
	.asciz	".text"

l_.str.2:                               ; @.str.2
	.asciz	".data"

l_.str.3:                               ; @.str.3
	.asciz	".bss"

	.comm	_bfd_error_bad_value,4,2        ; @bfd_error_bad_value
	.section	__DATA,__const
	.p2align	3                               ; @switch.table._bfd_xcoff_canonicalize_dynamic_reloc
l_switch.table._bfd_xcoff_canonicalize_dynamic_reloc:
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

.subsections_via_symbols
