	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oseama_entity
_oseama_entity:                         ## @oseama_entity
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	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
	jmp	LBB0_16
LBB0_2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	16(%rsi), %rdi
	movq	_seama_path@GOTPCREL(%rip), %r15
	movq	%rdi, (%r15)
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r13
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %r12d
	movl	$4, %esi
	movq	%r13, %rdi
	callq	_fseek
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %r15
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$109, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_fwrite
	addq	%rax, %r12
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r13
	movq	%rcx, %r12
	addq	%rax, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_oseama_entity_align
	addq	%rax, %r13
	addq	%rax, %r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	jmp	LBB0_4
LBB0_7:
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	xorl	%r13d, %r13d
	leaq	L_.str.3(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$98, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$102, %eax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_oseama_entity_append_file
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movslq	%eax, %rsi
	subq	%r12, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_oseama_entity_append_zeros
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%rax, %r13
	addq	%rax, %r12
	jmp	LBB0_8
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_oseama_entity_write_hdr
	movq	%rbx, %rdi
	callq	_fclose
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
L_.str.1:                               ## @.str.1
	.asciz	"w+"

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

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_optind,4,2                     ## @optind
L_.str.3:                               ## @.str.3
	.asciz	"m:f:b:"

	.comm	_optarg,8,3                     ## @optarg
	.no_dead_strip	_oseama_entity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oseama_entity
_oseama_entity:                         ; @oseama_entity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #16]
Lloh7:
	adrp	x22, _seama_path@GOTPAGE
Lloh8:
	ldr	x22, [x22, _seama_path@GOTPAGEOFF]
	str	x0, [x22]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_15
; %bb.3:
	mov	x21, x0
Lloh11:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w25, #4
	mov	w1, #4
	bl	_fseek
	mov	x22, #0
Lloh14:
	adrp	x27, _optind@GOTPAGE
Lloh15:
	ldr	x27, [x27, _optind@GOTPAGEOFF]
	mov	w8, #3
	str	w8, [x27]
Lloh16:
	adrp	x23, l_.str.3@PAGE
Lloh17:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh18:
	adrp	x26, _optarg@GOTPAGE
Lloh19:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #109
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x26]
	mov	x0, x24
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x24
	mov	w1, #1
	mov	x3, x21
	bl	_fwrite
	add	x24, x0, x25
	add	x22, x0, x22
	mov	x0, x21
	mov	x1, x24
	mov	w2, #4
	bl	_oseama_entity_align
	add	x25, x24, x0
	add	x22, x22, x0
	b	LBB0_4
LBB0_7:
	mov	x23, #0
	mov	w8, #3
	str	w8, [x27]
Lloh20:
	adrp	x24, l_.str.3@PAGE
Lloh21:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #98
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #102
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x26]
	mov	x0, x21
	bl	_oseama_entity_append_file
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26]
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x1, x8, x25
	mov	x0, x21
	bl	_oseama_entity_append_zeros
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x0, x23
	add	x25, x0, x25
	b	LBB0_8
LBB0_14:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_oseama_entity_write_hdr
	mov	x0, x21
	bl	_fclose
	mov	w0, #0
	b	LBB0_17
LBB0_15:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh27:
	adrp	x8, _EACCES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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
l_.str.1:                               ; @.str.1
	.asciz	"w+"

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

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_optind,4,2                     ; @optind
l_.str.3:                               ; @.str.3
	.asciz	"m:f:b:"

	.comm	_optarg,8,3                     ; @optarg
	.no_dead_strip	_oseama_entity
.subsections_via_symbols
