	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genfs_write
_genfs_write:                           ## @genfs_write
	.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
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rdi
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	je	LBB0_4
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	leaq	-44(%rbp), %r14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	8(%r13), %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rdi
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %r15
	testq	%r15, %r15
	je	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	16(%r15), %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	8(%r15), %rdi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	(%r15), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_context_write
	testl	%eax, %eax
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	24(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_16
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %r13
	xorl	%eax, %eax
	testq	%r13, %r13
	jne	LBB0_7
	jmp	LBB0_21
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_genfs_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genfs_write
_genfs_write:                           ; @genfs_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_put_entry
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x22, [x20]
	cbz	x22, LBB0_21
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x0, [x22, #8]
	bl	_strlen
	mov	x21, x0
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x22, #8]
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, #0
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x0, #1
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_11
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, #0
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [x22]
	cbz	x23, LBB0_20
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23, #16]
	bl	_strlen
	mov	x21, x0
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x0, [x23, #16]
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x0, [x23, #8]
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x23]
	mov	x0, x20
	mov	x2, x19
	bl	_context_write
	cbnz	w0, LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x23, [x23, #24]
	cbnz	x23, LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	ldr	x22, [x22, #16]
	cbnz	x22, LBB0_7
	b	LBB0_5
LBB0_21:
	mov	w0, #0
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_genfs_write
.subsections_via_symbols
