	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_xcoff_get_dynamic_symtab_upper_bound ## -- Begin function _bfd_xcoff_get_dynamic_symtab_upper_bound
	.p2align	4, 0x90
__bfd_xcoff_get_dynamic_symtab_upper_bound: ## @_bfd_xcoff_get_dynamic_symtab_upper_bound
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_xcoff_get_section_contents
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_coff_section_data
	movq	(%rax), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_bfd_xcoff_swap_ldhdr_in
	movslq	-24(%rbp), %rax
	leaq	8(,%rax,8), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_bfd_error_invalid_operation@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_bfd_error_no_symbols@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_bfd_set_error
LBB0_7:
	movq	$-1, %rax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_xcoff_get_dynamic_symtab_upper_bound ; -- Begin function _bfd_xcoff_get_dynamic_symtab_upper_bound
	.p2align	2
__bfd_xcoff_get_dynamic_symtab_upper_bound: ; @_bfd_xcoff_get_dynamic_symtab_upper_bound
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DYNAMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_xcoff_get_section_contents
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_coff_section_data
	ldr	x1, [x0]
	add	x2, sp, #8
	mov	x0, x19
	bl	_bfd_xcoff_swap_ldhdr_in
	ldrsw	x8, [sp, #8]
	lsl	x8, x8, #3
	add	x0, x8, #8
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _bfd_error_invalid_operation@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bfd_error_invalid_operation@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _bfd_error_no_symbols@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bfd_error_no_symbols@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_7:
	mov	x0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.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
.subsections_via_symbols
