	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altera_get_file_info
_altera_get_file_info:                  ## @altera_get_file_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$53, %rsi
	jl	LBB0_4
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %r15
	callq	_get_unaligned_be32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$1245793536, %ecx               ## imm = 0x4A414D00
	jne	LBB0_4
## %bb.2:
	andl	$1, %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	192(%r15), %rdi
	callq	_get_unaligned_be32
	movl	%eax, (%r12)
	addq	$208, %r15
	movq	%r15, %rdi
	callq	_get_unaligned_be32
	movl	%eax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_altera_get_file_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altera_get_file_info
_altera_get_file_info:                  ; @altera_get_file_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	cmp	x1, #53
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x0
	bl	_get_unaligned_be32
	mov	w8, #42624
	movk	w8, #9504, lsl #16
	cmp	w8, w0, lsr #1
	b.ne	LBB0_5
; %bb.2:
	and	w8, w0, #0x1
	add	w8, w8, #1
	str	w8, [x23]
	tbnz	w0, #0, LBB0_4
; %bb.3:
	mov	w22, #0
	b	LBB0_5
LBB0_4:
	add	x0, x21, #192
	bl	_get_unaligned_be32
	str	w0, [x20]
	add	x0, x21, #208
	bl	_get_unaligned_be32
	mov	w22, #0
	str	w0, [x19]
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_altera_get_file_info
.subsections_via_symbols
