	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function indir_blkatoff
_indir_blkatoff:                        ## @indir_blkatoff
	.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
	testl	%edi, %edi
	je	LBB0_17
## %bb.1:
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%edi, %ebx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_fs@GOTPCREL(%rip), %r12
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	%r13d, %r14d
	incl	%r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ebx
	movl	%r14d, %r13d
	cmpl	%r15d, %r14d
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r14d
	testl	%ebx, %ebx
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%ebx, %r13d
	movl	%r14d, %edi
	callq	_lbn_level
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	sete	%bl
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	testl	%r15d, %r15d
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r15d
	setne	%bl
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_err_suj
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movl	%r13d, %edi
	callq	_dblk_read
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r14), %ebx
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	callq	_NINDIR
	imull	%eax, %r13d
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addl	%ebx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %ebx
	testl	%eax, %eax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	js	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	callq	_NINDIR
	cmpl	%eax, %ebx
	jl	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_err_suj
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	imull	%ebx, %r13d
	movslq	%ebx, %rax
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ebx
	cmpl	%r15d, %r13d
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_err_suj
	jmp	LBB0_16
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	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	"Invalid indir lbn %jd\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid lbn %jd\n"

	.comm	_fs,8,3                         ## @fs
L_.str.2:                               ## @.str.2
	.asciz	"Invalid indirect index %d produced by lbn %jd\n"

	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
L_.str.3:                               ## @.str.3
	.asciz	"Invalid lbn %jd at level 0\n"

	.no_dead_strip	_indir_blkatoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function indir_blkatoff
_indir_blkatoff:                        ; @indir_blkatoff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x0
	cbz	w0, LBB0_19
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	cmp	w3, #0
	cneg	w25, w3, mi
Lloh0:
	adrp	x27, _fs@GOTPAGE
Lloh1:
	ldr	x27, [x27, _fs@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.2@PAGE
Lloh3:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w20, w8
	add	w20, w8, #1
	ldr	w23, [x23, w24, sxtw #2]
	cmp	w20, w19
	b.eq	LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x20
	bl	_lbn_level
	mov	x24, x0
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #0
	cset	w26, eq
	tbz	w19, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	cbz	w24, LBB0_8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmn	w24, #1
	cset	w26, ne
	mov	x1, x19
	bl	_err_suj
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	ldr	w1, [x8, #8]
	mov	x0, x23
	bl	_dblk_read
	mov	x23, x0
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w24, #1
	mov	w28, #1
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x27]
	bl	_NINDIR
	mul	w28, w0, w28
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_11
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w24, w20
	add	w8, w22, w25
	sdiv	w24, w8, w28
	tbnz	w24, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27]
	bl	_NINDIR
	cmp	w24, w0
	b.lt	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x19, [sp]
	mov	x0, x21
	mov	x1, x24
	bl	_err_suj
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	w8, w24, w28
	cbz	w26, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x23, w24, sxtw #2]
	sub	w20, w8, w22
	cmp	w20, w19
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_err_suj
	cbnz	w23, LBB0_4
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid indir lbn %jd\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid lbn %jd\n"

	.comm	_fs,8,3                         ; @fs
l_.str.2:                               ; @.str.2
	.asciz	"Invalid indirect index %d produced by lbn %jd\n"

	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
l_.str.3:                               ; @.str.3
	.asciz	"Invalid lbn %jd at level 0\n"

	.no_dead_strip	_indir_blkatoff
.subsections_via_symbols
