	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_get_elf_phdr_upper_bound   ## -- Begin function bfd_get_elf_phdr_upper_bound
	.p2align	4, 0x90
_bfd_get_elf_phdr_upper_bound:          ## @bfd_get_elf_phdr_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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_bfd_target_elf_flavour@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	callq	_elf_elfheader
	movslq	(%rax), %rax
	shlq	$2, %rax
	popq	%rbp
	retq
LBB0_1:
	movq	_bfd_error_wrong_format@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	movq	$-1, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bfd_target_elf_flavour,8,3     ## @bfd_target_elf_flavour
	.comm	_bfd_error_wrong_format,4,2     ## @bfd_error_wrong_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_get_elf_phdr_upper_bound   ; -- Begin function bfd_get_elf_phdr_upper_bound
	.p2align	2
_bfd_get_elf_phdr_upper_bound:          ; @bfd_get_elf_phdr_upper_bound
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _bfd_target_elf_flavour@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bfd_target_elf_flavour@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_elf_elfheader
	ldrsw	x8, [x0]
	lsl	x0, x8, #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _bfd_error_wrong_format@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfd_error_wrong_format@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_bfd_set_error
	mov	x0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_bfd_target_elf_flavour,8,3     ; @bfd_target_elf_flavour
	.comm	_bfd_error_wrong_format,4,2     ; @bfd_error_wrong_format
.subsections_via_symbols
