	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oseama_info
_oseama_info:                           ## @oseama_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	%r12
	pushq	%rbx
	movl	$12320, %eax                    ## imm = 0x3020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_2:
	movq	16(%rsi), %rax
	movq	_seama_path@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	callq	_oseama_info_parse_options
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	leaq	-12352(%rbp), %rdi
	movl	$1, %esi
	movl	$12, %edx
	movq	%rax, %rcx
	callq	_fread
	cmpq	$12, %rax
	jne	LBB0_8
## %bb.4:
	movl	-12344(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %r15d
	movl	-12348(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movl	-12352(%rbp), %ebx
	movl	%ebx, %edi
	callq	_be32_to_cpu
	movq	_SEAMA_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.5:
	cmpl	$12288, %r15d                   ## imm = 0x3000
	jb	LBB0_11
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$12288, %edx                    ## imm = 0x3000
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EACCES@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_be32_to_cpu
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_11:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movq	%r14, %rdi
	callq	_fclose
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_27
## %bb.18:
	movl	%ebx, %eax
	addq	$12320, %rsp                    ## imm = 0x3020
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movslq	%r15d, %r12
	leaq	-12336(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_fread
	cmpq	%r12, %rax
	jne	LBB0_26
## %bb.20:
	movq	_entity_idx@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jns	LBB0_25
## %bb.21:
	leaq	L_.str.8(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.9(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_printf
	decl	%r15d
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	-12336(,%rax,4), %r12
	addq	%rbp, %r12
	movb	$0, -12336(%rbp,%rax,4)
	cmpq	%r12, %rbx
	jae	LBB0_25
## %bb.22:
	leaq	L_.str.10(%rip), %r15
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	cmpq	%r12, %rbx
	jb	LBB0_23
LBB0_25:
	movq	%r14, %rdi
	callq	_oseama_info_entities
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_9
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No Seama file passed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_seama_path,8,3                 ## @seama_path
	.comm	_optind,4,2                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't open %s\n"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't read %s header\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SEAMA_MAGIC,4,2                ## @SEAMA_MAGIC
L_.str.4:                               ## @.str.4
	.asciz	"Invalid Seama magic: 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Too small buffer (%zu B) to read all meta info (%d B)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid Seama image size: 0x%08x (should be 0)\n"

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

	.comm	_entity_idx,8,3                 ## @entity_idx
L_.str.8:                               ## @.str.8
	.asciz	"Meta size:\t%d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Image size:\t%d\n"

L_.str.10:                              ## @.str.10
	.asciz	"Meta entry:\t%s\n"

	.no_dead_strip	_oseama_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oseama_info
_oseama_info:                           ; @oseama_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	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
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh12:
	adrp	x20, _seama_path@GOTPAGE
Lloh13:
	ldr	x20, [x20, _seama_path@GOTPAGEOFF]
	ldr	x8, [x1, #16]
	str	x8, [x20]
Lloh14:
	adrp	x8, _optind@GOTPAGE
Lloh15:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
	mov	w9, #3
Lloh16:
	str	w9, [x8]
	bl	_oseama_info_parse_options
	ldr	x0, [x20]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	add	x0, sp, #24
	mov	w1, #1
	mov	w2, #12
	mov	x3, x19
	bl	_fread
	cmp	x0, #12
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [sp, #32]
	bl	_be16_to_cpu
	mov	x20, x0
	ldr	w0, [sp, #28]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w22, [sp, #24]
	mov	x0, x22
	bl	_be32_to_cpu
Lloh19:
	adrp	x8, _SEAMA_MAGIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SEAMA_MAGIC@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.5:
	cmp	w20, #3, lsl #12                ; =12288
	b.lo	LBB0_12
; %bb.6:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	mov	w8, #12288
	stp	x8, x20, [sp]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_7:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh32:
	adrp	x8, _EACCES@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_9:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	bl	_fprintf
Lloh39:
	adrp	x8, _EIO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh41:
	adrp	x8, _stderr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh43:
	ldr	w20, [x8]
	mov	x0, x22
	bl	_be32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	b	LBB0_14
LBB0_12:
	cbz	w21, LBB0_19
; %bb.13:
Lloh46:
	adrp	x8, _stderr@GOTPAGE
Lloh47:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_14:
	bl	_fprintf
Lloh51:
	adrp	x8, _EINVAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_16:
	mov	x0, x19
	bl	_fclose
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.18:
	mov	x0, x20
	add	sp, sp, #3, lsl #12             ; =12288
	add	sp, sp, #48
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	sxtw	x21, w20
	add	x0, sp, #40
	mov	w1, #1
	mov	x2, x20
	mov	x3, x19
	bl	_fread
	cmp	x0, x21
	b.ne	LBB0_26
; %bb.20:
Lloh56:
	adrp	x8, _entity_idx@GOTPAGE
Lloh57:
	ldr	x8, [x8, _entity_idx@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	tbz	x8, #63, LBB0_25
; %bb.21:
	mov	x8, x20
	str	x8, [sp]
Lloh59:
	adrp	x0, l_.str.8@PAGE
Lloh60:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	str	xzr, [sp]
Lloh61:
	adrp	x0, l_.str.9@PAGE
Lloh62:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	mov	w8, #12
	add	x9, sp, #40
	smaddl	x22, w20, w8, x9
	strb	wzr, [x22, #-12]!
	cmp	x9, x22
	b.hs	LBB0_25
; %bb.22:
	add	x20, sp, #40
Lloh63:
	adrp	x21, l_.str.10@PAGE
Lloh64:
	add	x21, x21, l_.str.10@PAGEOFF
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	str	x20, [sp]
	mov	x0, x21
	bl	_printf
	mov	x0, x20
	bl	_strlen
	add	x8, x0, x20
	add	x20, x8, #1
	cmp	x20, x22
	b.lo	LBB0_23
LBB0_25:
	mov	x0, x19
	bl	_oseama_info_entities
	mov	w20, #0
	b	LBB0_16
LBB0_26:
Lloh65:
	adrp	x8, _stderr@GOTPAGE
Lloh66:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh68:
	adrp	x1, l_.str.7@PAGE
Lloh69:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No Seama file passed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_seama_path,8,3                 ; @seama_path
	.comm	_optind,4,2                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't open %s\n"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't read %s header\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SEAMA_MAGIC,4,2                ; @SEAMA_MAGIC
l_.str.4:                               ; @.str.4
	.asciz	"Invalid Seama magic: 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Too small buffer (%zu B) to read all meta info (%d B)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid Seama image size: 0x%08x (should be 0)\n"

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

	.comm	_entity_idx,8,3                 ; @entity_idx
l_.str.8:                               ; @.str.8
	.asciz	"Meta size:\t%d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Image size:\t%d\n"

l_.str.10:                              ; @.str.10
	.asciz	"Meta entry:\t%s\n"

	.no_dead_strip	_oseama_info
.subsections_via_symbols
