	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_dir
_add_dir:                               ## @add_dir
	.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	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_S_IFDIR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_IFTODT
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_add_dirent
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_rbytes
	cmpl	$111, %eax
	ja	LBB0_2
## %bb.1:
	movq	_erasesize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pad
LBB0_2:
	xorl	%eax, %eax
	callq	_prep_eraseblock
	leaq	-136(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movq	_JFFS2_MAGIC_BITMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_JFFS2_NODETYPE_INODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	$112, -136(%rbp)
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_crc32
	movq	%rax, -40(%rbp)
	movl	$493, %eax                      ## imm = 0x1ED
	orl	(%r15), %eax
	movl	%r14d, -132(%rbp)
	movl	%eax, -128(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -88(%rbp)
	movups	%xmm0, -72(%rbp)
	movups	%xmm0, -56(%rbp)
	movl	$1, -124(%rbp)
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$104, %edx
	callq	_crc32
	movq	%rax, -112(%rbp)
	movq	$0, -120(%rbp)
	movq	%rbx, %rdi
	movl	$112, %esi
	callq	_add_data
	movl	$4, %edi
	callq	_pad
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_erasesize,4,2                  ## @erasesize
	.comm	_JFFS2_MAGIC_BITMASK,4,2        ## @JFFS2_MAGIC_BITMASK
	.comm	_JFFS2_NODETYPE_INODE,4,2       ## @JFFS2_NODETYPE_INODE
	.no_dead_strip	_add_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_dir
_add_dir:                               ; @add_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _S_IFDIR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S_IFDIR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_IFTODT
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_add_dirent
	mov	x19, x0
	bl	_rbytes
	cmp	w0, #111
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _erasesize@GOTPAGE
Lloh3:
	ldr	x8, [x8, _erasesize@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_pad
LBB0_2:
	bl	_prep_eraseblock
	mov	w20, #112
	mov	x0, sp
	mov	w1, #0
	mov	w2, #112
	bl	_memset
Lloh5:
	adrp	x8, _JFFS2_MAGIC_BITMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JFFS2_MAGIC_BITMASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #108]
Lloh8:
	adrp	x8, _JFFS2_NODETYPE_INODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JFFS2_NODETYPE_INODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #104]
	str	w20, [sp]
	mov	x1, sp
	mov	w0, #0
	mov	w2, #0
	bl	_crc32
	str	x0, [sp, #96]
	ldr	w8, [x21]
	mov	w9, #493
	orr	w8, w8, w9
	stp	w19, w8, [sp, #4]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp, #64]
	mov	w8, #1
	str	w8, [sp, #12]
	mov	x1, sp
	mov	w0, #0
	mov	w2, #104
	bl	_crc32
	stp	xzr, x0, [sp, #16]
	mov	x0, sp
	mov	w1, #112
	bl	_add_data
	mov	w0, #4
	bl	_pad
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_erasesize,4,2                  ; @erasesize
	.comm	_JFFS2_MAGIC_BITMASK,4,2        ; @JFFS2_MAGIC_BITMASK
	.comm	_JFFS2_NODETYPE_INODE,4,2       ; @JFFS2_NODETYPE_INODE
	.no_dead_strip	_add_dir
.subsections_via_symbols
