	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecoff_get_magic
_ecoff_get_magic:                       ## @ecoff_get_magic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_bfd_get_arch
	cmpl	$132, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$131, %eax
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_bfd_get_mach
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.5:
	movq	_MIPS_MAGIC_LITTLE2@GOTPCREL(%rip), %rax
	movq	_MIPS_MAGIC_BIG2@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_9:
	movq	_ALPHA_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_MIPS_MAGIC_LITTLE3@GOTPCREL(%rip), %rax
	movq	_MIPS_MAGIC_BIG3@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_MIPS_MAGIC_LITTLE@GOTPCREL(%rip), %rax
	movq	_MIPS_MAGIC_BIG@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rax), %r15d
	movl	(%rcx), %ebx
	movq	%r14, %rdi
	callq	_bfd_big_endian
	testl	%eax, %eax
	cmovel	%r15d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPS_MAGIC_BIG,4,2             ## @MIPS_MAGIC_BIG
	.comm	_MIPS_MAGIC_LITTLE,4,2          ## @MIPS_MAGIC_LITTLE
	.comm	_MIPS_MAGIC_BIG2,4,2            ## @MIPS_MAGIC_BIG2
	.comm	_MIPS_MAGIC_LITTLE2,4,2         ## @MIPS_MAGIC_LITTLE2
	.comm	_MIPS_MAGIC_BIG3,4,2            ## @MIPS_MAGIC_BIG3
	.comm	_MIPS_MAGIC_LITTLE3,4,2         ## @MIPS_MAGIC_LITTLE3
	.comm	_ALPHA_MAGIC,4,2                ## @ALPHA_MAGIC
	.no_dead_strip	_ecoff_get_magic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecoff_get_magic
_ecoff_get_magic:                       ; @ecoff_get_magic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_bfd_get_arch
	cmp	w0, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #131
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_bfd_get_mach
Lloh0:
	adrp	x8, _MIPS_MAGIC_LITTLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPS_MAGIC_LITTLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MIPS_MAGIC_BIG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MIPS_MAGIC_BIG@GOTPAGEOFF]
Lloh4:
	adrp	x10, _MIPS_MAGIC_LITTLE3@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MIPS_MAGIC_LITTLE3@GOTPAGEOFF]
Lloh6:
	adrp	x11, _MIPS_MAGIC_BIG3@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MIPS_MAGIC_BIG3@GOTPAGEOFF]
	cmp	w0, #128
Lloh8:
	adrp	x12, _MIPS_MAGIC_LITTLE2@GOTPAGE
Lloh9:
	ldr	x12, [x12, _MIPS_MAGIC_LITTLE2@GOTPAGEOFF]
Lloh10:
	adrp	x13, _MIPS_MAGIC_BIG2@GOTPAGE
Lloh11:
	ldr	x13, [x13, _MIPS_MAGIC_BIG2@GOTPAGEOFF]
	csel	x9, x9, x13, ne
	csel	x8, x8, x12, ne
	cmp	w0, #129
	csel	x9, x11, x9, eq
	csel	x8, x10, x8, eq
	ldr	w20, [x8]
	ldr	w21, [x9]
	mov	x0, x19
	bl	_bfd_big_endian
	cmp	w0, #0
	csel	w0, w20, w21, eq
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ALPHA_MAGIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ALPHA_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_abort
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPS_MAGIC_BIG,4,2             ; @MIPS_MAGIC_BIG
	.comm	_MIPS_MAGIC_LITTLE,4,2          ; @MIPS_MAGIC_LITTLE
	.comm	_MIPS_MAGIC_BIG2,4,2            ; @MIPS_MAGIC_BIG2
	.comm	_MIPS_MAGIC_LITTLE2,4,2         ; @MIPS_MAGIC_LITTLE2
	.comm	_MIPS_MAGIC_BIG3,4,2            ; @MIPS_MAGIC_BIG3
	.comm	_MIPS_MAGIC_LITTLE3,4,2         ; @MIPS_MAGIC_LITTLE3
	.comm	_ALPHA_MAGIC,4,2                ; @ALPHA_MAGIC
	.no_dead_strip	_ecoff_get_magic
.subsections_via_symbols
