	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_build_dinode2
_ffs_build_dinode2:                     ## @ffs_build_dinode2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_stampst@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	16(%r14), %r15
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	16(%r14), %rax
	movl	64(%rax), %ecx
	movl	%ecx, 68(%rbx)
	movl	72(%rax), %ecx
	movl	%ecx, 64(%rbx)
	movq	8(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_random
	movl	%eax, 56(%rbx)
	movq	16(%r14), %rax
	movsd	52(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movsd	44(%r15), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 40(%rbx)
	movl	36(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	%eax, 32(%rbx)
	cmpq	%r13, %r14
	je	LBB0_3
## %bb.4:
	movl	8(%r14), %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	$0, (%rbx)
	movq	16(%r14), %rax
	movl	16(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_ufs_rw64
	movl	%eax, 12(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_3:
	movq	(%r12), %rax
	movq	8(%r12), %r14
	movq	%rax, (%rbx)
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r14), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%r14), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	_UFS2_MAXSYMLINKLEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_11
## %bb.10:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r15, (%rbx)
	jmp	LBB0_12
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_stampst,72,3                   ## @stampst
	.comm	_UFS2_MAXSYMLINKLEN,8,3         ## @UFS2_MAXSYMLINKLEN
	.no_dead_strip	_ffs_build_dinode2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_build_dinode2
_ffs_build_dinode2:                     ; @ffs_build_dinode2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _stampst@GOTPAGE
Lloh1:
	ldr	x24, [x24, _stampst@GOTPAGEOFF]
	ldr	x8, [x24]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x24, [x20, #16]
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #64]
	ldr	w10, [x8, #72]
	stp	w10, w9, [x19, #64]
	ldr	x8, [x8, #8]
	str	x8, [x19]
	bl	_random
	str	w0, [x19, #56]
	ldr	x8, [x20, #16]
	ldur	d0, [x8, #52]
	ldur	d1, [x24, #44]
	mov.d	v1[1], v0[0]
	stur	q1, [x19, #40]
	ldr	w8, [x24, #36]
	stp	w8, w8, [x19, #32]
	cmp	x20, x23
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_S_ISBLK
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_S_ISCHR
	cbz	x0, LBB0_8
LBB0_5:
	str	xzr, [x19]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #16]
	ldr	w1, [x21]
	bl	_ufs_rw64
	mov	x20, #0
	str	w0, [x19, #12]
	b	LBB0_7
LBB0_6:
	ldp	x8, x20, [x22]
	str	x8, [x19]
LBB0_7:
	mov	x0, x20
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20, #8]
	bl	_S_ISLNK
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x20, [x20]
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
Lloh2:
	adrp	x8, _UFS2_MAXSYMLINKLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UFS2_MAXSYMLINKLEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_11
; %bb.10:
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	mov	x20, #0
LBB0_11:
	str	x21, [x19]
	b	LBB0_7
LBB0_12:
	mov	x20, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_stampst,72,3                   ; @stampst
	.comm	_UFS2_MAXSYMLINKLEN,8,3         ; @UFS2_MAXSYMLINKLEN
	.no_dead_strip	_ffs_build_dinode2
.subsections_via_symbols
