	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_seama_header
_write_seama_header:                    ## @write_seama_header
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rdi
	callq	_strlen
	addl	%eax, %ebx
	incl	%ebx
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_3
## %bb.4:
	leal	3(%rbx), %eax
	addl	$6, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	andl	$-4, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_verbose
	movq	_SEAMA_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htonl
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, -72(%rbp)
	movq	%r15, %rdi
	callq	_htonl
	movq	%rax, -80(%rbp)
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEAMA META : %d bytes\n"

	.comm	_SEAMA_MAGIC,8,3                ## @SEAMA_MAGIC
	.no_dead_strip	_write_seama_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_seama_header
_write_seama_header:                    ; @write_seama_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	cbz	x2, LBB0_4
; %bb.1:
	mov	x22, x1
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22], #8
	bl	_strlen
	add	w8, w23, w0
	add	w23, w8, #1
	subs	x21, x21, #1
	b.ne	LBB0_2
; %bb.3:
	add	w8, w23, #3
	add	w9, w23, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	and	w21, w8, #0xfffffffc
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_verbose
Lloh2:
	adrp	x8, _SEAMA_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEAMA_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	_htonl
	stp	xzr, x0, [sp, #16]
	mov	x0, x21
	bl	_htons
	str	w0, [sp, #8]
	mov	x0, x20
	bl	_htonl
	str	x0, [sp]
	mov	x0, sp
	mov	w1, #32
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEAMA META : %d bytes\n"

	.comm	_SEAMA_MAGIC,8,3                ; @SEAMA_MAGIC
	.no_dead_strip	_write_seama_header
.subsections_via_symbols
