	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ufs2_blksout
_ufs2_blksout:                          ## @ufs2_blksout
	.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
	movl	%r8d, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_sblock@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	imull	(%rax), %edx
	movq	_TP_BSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%edx, %edi
	callq	_howmany
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	_spcl@GOTPCREL(%rip), %rax
	addq	$16, %rax
	cmpb	$0, _ufs2_blksout.writingextdata(%rip)
	movq	(%r14), %rdi
	cmoveq	%rbx, %rax
	movl	(%rax), %esi
	callq	_fragoff
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_howmany
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_howmany
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	subl	%eax, %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
LBB0_3:
	movq	(%r14), %rax
	movl	4(%rax), %r14d
	movq	_tp_bshift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_28
## %bb.4:
	movq	_TP_NINDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_TP_NINDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%edx, %eax
	cmpl	%r15d, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_28
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	addl	%eax, %edx
	cmpl	%r15d, %edx
	movl	%r13d, %r12d
	movl	%eax, %r13d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	cmovll	%edx, %r15d
	movl	$1, %edi
	callq	_assert
	movl	%r15d, %r8d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	subl	%r13d, %r8d
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_spcl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movslq	-48(%rbp), %r9                  ## 4-byte Folded Reload
	movq	%r9, %rcx
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%r14d
	cltq
	xorl	%ecx, %ecx
	cmpq	$0, (%rbx,%rax,8)
	setne	%cl
	movl	%ecx, (%rdi)
	leaq	1(%r9), %rcx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r15d, %rsi
	movq	%r9, %rax
	notq	%rax
	addq	%rsi, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	shlq	$2, %r9
	subq	%r9, %rdi
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %eax
	cltd
	idivl	%r14d
	cltq
	xorl	%edx, %edx
	cmpq	$0, (%rbx,%rax,8)
	setne	%dl
	movl	%edx, -4(%rdi,%rcx,4)
	leal	1(%rcx), %eax
	cltd
	idivl	%r14d
	cltq
	xorl	%edx, %edx
	cmpq	$0, (%rbx,%rax,8)
	setne	%dl
	movl	%edx, (%rdi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rsi, %rcx
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_spcl@GOTPCREL(%rip), %rax
	movl	%r8d, 8(%rax)
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, _ufs2_blksout.writingextdata(%rip)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_appendextdata
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_writeheader
	movl	%r15d, %r13d
	subl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	jle	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	cltd
	idivl	%r14d
	cltq
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	_TP_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%r13d, %esi
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=2
	callq	_dumpblock
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=2
	addq	$8, %r12
	subl	%r14d, %r13d
	cmpl	%ebx, %r15d
	jle	LBB0_23
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	addl	%r14d, %ebx
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpl	%r15d, %ebx
	jg	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_sblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_TS_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_spcl@GOTPCREL(%rip), %rcx
	movl	%eax, 12(%rcx)
	movl	$0, 8(%rcx)
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jg	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, _ufs2_blksout.writingextdata(%rip)
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$1, _ufs2_blksout.writingextdata(%rip)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_writeextdata
	movb	$0, _ufs2_blksout.writingextdata(%rip)
	jmp	LBB0_27
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ufs2_blksout.writingextdata,1,2 ## @ufs2_blksout.writingextdata
	.comm	_sblock,8,3                     ## @sblock
	.comm	_TP_BSIZE,4,2                   ## @TP_BSIZE
	.comm	_spcl,24,3                      ## @spcl
	.comm	_tp_bshift,4,2                  ## @tp_bshift
	.comm	_TP_NINDIR,4,2                  ## @TP_NINDIR
	.comm	_TS_ADDR,4,2                    ## @TS_ADDR
	.no_dead_strip	_ufs2_blksout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ufs2_blksout
_ufs2_blksout:                          ; @ufs2_blksout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x4
	str	w3, [sp, #28]                   ; 4-byte Folded Spill
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _sblock@GOTPAGE
Lloh1:
	ldr	x26, [x26, _sblock@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w8, [x8]
	mul	w0, w8, w2
Lloh2:
	adrp	x22, _TP_BSIZE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TP_BSIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_howmany
	mov	x23, x0
Lloh4:
	adrp	x25, _spcl@GOTPAGE
Lloh5:
	ldr	x25, [x25, _spcl@GOTPAGEOFF]
	adrp	x27, _ufs2_blksout.writingextdata@PAGE
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	cbz	w19, LBB0_3
; %bb.1:
	ldrb	w8, [x27, _ufs2_blksout.writingextdata@PAGEOFF]
	ldr	x0, [x26]
	add	x9, x25, #16
	cmp	w8, #0
	csel	x8, x9, x20, ne
	ldr	w1, [x8]
	bl	_fragoff
	ldr	w1, [x22]
	bl	_howmany
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x24, x0
	ldr	x8, [x26]
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_howmany
	add	w8, w24, w23
	sub	w23, w8, w0
LBB0_3:
	cmp	w23, #1
	b.lt	LBB0_29
; %bb.4:
	mov	w22, #0
	ldr	x8, [x26]
	ldr	w8, [x8, #4]
Lloh6:
	adrp	x9, _tp_bshift@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tp_bshift@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w24, w8, w9
Lloh9:
	adrp	x8, _TP_NINDIR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TP_NINDIR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
                                        ; implicit-def: $w0
                                        ; kill: killed $w0
	str	w19, [sp, #24]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x8, _TP_NINDIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TP_NINDIR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w22, w8, w22
	cmp	w22, w23
	b.ge	LBB0_29
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	add	w28, w8, w22
	cmp	w28, w23
	csel	w20, w28, w23, lt
	mov	w0, #1
	bl	_assert
	subs	w8, w20, w22
	b.le	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x25]
	sxtw	x12, w22
	sxtw	x9, w20
	sub	x13, x9, x12
	mov	x10, x12
	cmp	x13, #4
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	and	x14, x13, #0xfffffffffffffffc
	add	x10, x14, x12
	add	x15, x11, #8
	mov	x16, x14
	mov	x17, x22
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w17, #1
	add	w1, w17, #2
	add	w2, w17, #3
	sdiv	w3, w17, w24
	sdiv	w0, w0, w24
	sdiv	w1, w1, w24
	ldr	x3, [x21, w3, sxtw #3]
	ldr	x0, [x21, w0, sxtw #3]
	ldr	x1, [x21, w1, sxtw #3]
	sdiv	w2, w2, w24
	ldr	x2, [x21, w2, sxtw #3]
	cmp	x3, #0
	cset	w3, ne
	cmp	x0, #0
	cset	w0, ne
	cmp	x1, #0
	cset	w1, ne
	cmp	x2, #0
	stp	w3, w0, [x15, #-8]
	cset	w0, ne
	stp	w1, w0, [x15], #16
	add	w17, w17, #4
	subs	x16, x16, #4
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x13, x14
	b.eq	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x11, x11, x12, lsl #2
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sdiv	w12, w10, w24
	ldr	x12, [x21, w12, sxtw #3]
	cmp	x12, #0
	cset	w12, ne
	str	w12, [x11, x10, lsl #2]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x25, #8]
	cbz	w19, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, w28
	b.gt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x27, _ufs2_blksout.writingextdata@PAGEOFF]
	tbnz	w8, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_appendextdata
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	bl	_writeheader
	subs	w27, w20, w22
	b.le	LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	sdiv	w8, w22, w24
	add	x19, x21, w8, sxtw #3
	mov	x25, x22
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_22 Depth=2
Lloh15:
	adrp	x8, _TP_BSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TP_BSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mul	w1, w8, w27
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=2
	bl	_dumpblock
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	add	x19, x19, #8
	sub	w27, w27, w24
	cmp	w20, w25
	b.le	LBB0_25
LBB0_22:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19]
	add	w25, w25, w24
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	cmp	w25, w20
	b.gt	LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x8, [x26]
	ldr	w1, [x8, #4]
	b	LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh18:
	adrp	x8, _TS_ADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TS_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x25, _spcl@GOTPAGE
Lloh22:
	ldr	x25, [x25, _spcl@GOTPAGEOFF]
	stp	wzr, w8, [x25, #8]
	ldr	w19, [sp, #24]                  ; 4-byte Folded Reload
	adrp	x27, _ufs2_blksout.writingextdata@PAGE
	cbz	w19, LBB0_5
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, w28
	b.gt	LBB0_5
; %bb.27:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x27, _ufs2_blksout.writingextdata@PAGEOFF]
	tbnz	w8, #0, LBB0_5
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	strb	w8, [x27, _ufs2_blksout.writingextdata@PAGEOFF]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_writeextdata
	strb	wzr, [x27, _ufs2_blksout.writingextdata@PAGEOFF]
	b	LBB0_5
LBB0_29:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ufs2_blksout.writingextdata,1,2 ; @ufs2_blksout.writingextdata
	.comm	_sblock,8,3                     ; @sblock
	.comm	_TP_BSIZE,4,2                   ; @TP_BSIZE
	.comm	_spcl,24,3                      ; @spcl
	.comm	_tp_bshift,4,2                  ; @tp_bshift
	.comm	_TP_NINDIR,4,2                  ; @TP_NINDIR
	.comm	_TS_ADDR,4,2                    ; @TS_ADDR
	.no_dead_strip	_ufs2_blksout
.subsections_via_symbols
