	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oseama_info_entities
_oseama_info_entities:                  ## @oseama_info_entities
	.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
	movl	$12312, %eax                    ## imm = 0x3018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-12352(%rbp), %rdi
	movl	$12, %edx
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_fread
	xorl	%ebx, %ebx
	cmpq	$12, %rax
	jne	LBB0_17
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_fseek
	incl	%r15d
	movl	$12, %edx
	leaq	-12352(%rbp), %rdi
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_fread
	cmpq	$12, %rax
	jne	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movl	-12344(%rbp), %ebx
	movl	%ebx, %edi
	callq	_be32_to_cpu
	movq	_SEAMA_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-12348(%rbp), %edi
	callq	_be16_to_cpu
	movq	%rax, %r12
	movl	-12352(%rbp), %edi
	callq	_be32_to_cpu
	movslq	%eax, %r13
	movq	_entity_idx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r15d
	jne	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$12288, %r12                    ## imm = 0x3000
	jae	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ftell
	leaq	-12(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	(%r12,%r13), %rsi
	addq	$12, %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.6(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	-12336(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_fread
	cmpq	%r12, %rax
	jne	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r12,2), %rax
	leaq	-12348(,%rax,4), %r12
	addq	%rbp, %r12
	movb	$0, -12348(%rbp,%rax,4)
	cmpq	%r12, %rbx
	jae	LBB0_7
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%rbx)
	je	LBB0_7
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	cmpq	%r12, %rbx
	jb	LBB0_21
	jmp	LBB0_7
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_be32_to_cpu
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$12288, %edx                    ## imm = 0x3000
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.23:
	movl	%ebx, %eax
	addq	$12312, %rsp                    ## imm = 0x3018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEAMA_MAGIC,4,2                ## @SEAMA_MAGIC
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Seama magic: 0x%08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_entity_idx,4,2                 ## @entity_idx
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
L_.str.1:                               ## @.str.1
	.asciz	"Too small buffer (%zu B) to read all meta info (%zd B)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Entity offset:\t%ld\n"

L_.str.4:                               ## @.str.4
	.asciz	"Entity size:\t%zd\n"

L_.str.5:                               ## @.str.5
	.asciz	"Meta size:\t%zd\n"

L_.str.6:                               ## @.str.6
	.asciz	"Image size:\t%zd\n"

L_.str.7:                               ## @.str.7
	.asciz	"Couldn't read %zd B of meta\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.8:                               ## @.str.8
	.asciz	"Meta entry:\t%s\n"

	.no_dead_strip	_oseama_info_entities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oseama_info_entities
_oseama_info_entities:                  ; @oseama_info_entities
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #12336
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #3, lsl #12             ; =12288
	sub	sp, sp, #48
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, sp, #16
	mov	w1, #1
	mov	w2, #12
	mov	x3, x19
	bl	_fread
	cmp	x0, #12
	b.ne	LBB0_15
; %bb.1:
	mov	w27, #0
Lloh5:
	adrp	x28, _SEAMA_MAGIC@GOTPAGE
Lloh6:
	ldr	x28, [x28, _SEAMA_MAGIC@GOTPAGEOFF]
Lloh7:
	adrp	x20, _entity_idx@GOTPAGE
Lloh8:
	ldr	x20, [x20, _entity_idx@GOTPAGEOFF]
	add	x21, sp, #32
Lloh9:
	adrp	x22, _SEEK_CUR@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SEEK_CUR@GOTPAGEOFF]
Lloh11:
	adrp	x24, l_.str.8@PAGE
Lloh12:
	add	x24, x24, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x26, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x25
	bl	_fseek
	add	w27, w27, #1
	add	x0, sp, #16
	mov	w1, #1
	mov	w2, #12
	mov	x3, x19
	bl	_fread
	cmp	x0, #12
	b.ne	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w25, [sp, #24]
	mov	x0, x25
	bl	_be32_to_cpu
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #20]
	bl	_be16_to_cpu
	mov	x26, x0
	ldr	w0, [sp, #16]
	bl	_be32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, w8
	b.ne	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, #3, lsl #12                ; =12288
	b.hs	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w8, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ftell
	sub	x8, x0, #12
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	x8, x26, x25
	add	x8, x8, #12
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	str	x26, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	str	x25, [sp]
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	add	x0, sp, #32
	mov	w1, #1
	mov	x2, x26
	mov	x3, x19
	bl	_fread
	cmp	x0, x26
	b.ne	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #12
	madd	x23, x26, x8, x21
	strb	wzr, [x23, #-12]!
	cmp	x21, x23
	b.hs	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x26, sp, #32
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x26]
	cbz	w8, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x26, [sp]
	mov	x0, x24
	bl	_printf
	mov	x0, x26
	bl	_strlen
	add	x8, x0, x26
	add	x26, x8, #1
	cmp	x26, x23
	b.lo	LBB0_13
	b	LBB0_3
LBB0_15:
	mov	w0, #0
	b	LBB0_21
LBB0_16:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	mov	x0, x25
	bl	_be32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_18
LBB0_17:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #12288
LBB0_18:
	bl	_fprintf
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x26
	bl	_fprintf
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldur	x8, [x29, #-96]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	add	sp, sp, #3, lsl #12             ; =12288
	add	sp, sp, #48
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SEAMA_MAGIC,4,2                ; @SEAMA_MAGIC
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Seama magic: 0x%08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_entity_idx,4,2                 ; @entity_idx
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
l_.str.1:                               ; @.str.1
	.asciz	"Too small buffer (%zu B) to read all meta info (%zd B)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Entity offset:\t%ld\n"

l_.str.4:                               ; @.str.4
	.asciz	"Entity size:\t%zd\n"

l_.str.5:                               ; @.str.5
	.asciz	"Meta size:\t%zd\n"

l_.str.6:                               ; @.str.6
	.asciz	"Image size:\t%zd\n"

l_.str.7:                               ; @.str.7
	.asciz	"Couldn't read %zd B of meta\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.8:                               ; @.str.8
	.asciz	"Meta entry:\t%s\n"

	.no_dead_strip	_oseama_info_entities
.subsections_via_symbols
