	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ufs_getlbns                    ## -- Begin function ufs_getlbns
	.p2align	4, 0x90
_ufs_getlbns:                           ## @ufs_getlbns
	.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
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_NINDIR
	movl	%eax, %edi
	callq	_ffs
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	$0, (%r12)
LBB0_2:
	movl	%r13d, %ebx
	negl	%ebx
	cmovsl	%r13d, %ebx
	movq	_UFS_NDADDR@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	(%r14), %ebx
	setge	%dil
	callq	_assert
	movl	%ebx, %r11d
	movq	_UFS_NIADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	decq	%r15
	subl	(%r14), %r11d
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	movl	%r11d, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r14
	addq	%r15, %r14
	movl	$1, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	subl	%esi, %edx
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%edi
	movl	%edx, %r11d
	cmpl	%edi, %ebx
	jne	LBB0_4
LBB0_6:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_7:
	movq	%r12, %r10
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	$0, %edx
	cmovnsl	%r13d, %edx
	movl	%r13d, %ecx
	cmovnsl	%eax, %ecx
	subl	%edx, %ecx
	addl	%r11d, %ecx
	movl	%r13d, %r8d
	movl	%ecx, %r13d
	subl	%edi, %r13d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	%r13d, (%r9)
	movq	_UFS_NIADDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	subl	%ebx, %esi
	addl	%edi, %esi
	movl	%esi, 4(%r9)
	subl	%edi, %ebx
	movl	$1, %r12d
	cmpl	%ebx, %edx
	jl	LBB0_13
## %bb.8:
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	subl	%r8d, %ecx
	cmpl	%edi, %ecx
	je	LBB0_13
## %bb.9:
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r14
	subq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	movl	%r11d, %r15d
	movl	%r14d, %ecx
	sarl	%cl, %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_NINDIR
	movl	-44(%rbp), %r11d                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	andl	%r15d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rcx,%r12,8)
	movl	%eax, 4(%rcx,%r12,8)
	movl	%r14d, %ecx
	shll	%cl, %eax
	incq	%r12
	movq	_UFS_NIADDR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	negl	%eax
	addl	%eax, %r13d
	incl	%r13d
	incl	%ebx
	cmpl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_10
LBB0_12:
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	xorl	%eax, %eax
LBB0_13:
	testq	%r10, %r10
	je	LBB0_15
## %bb.14:
	movl	%r12d, (%r10)
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UFS_NDADDR,4,2                 ## @UFS_NDADDR
	.comm	_UFS_NIADDR,4,2                 ## @UFS_NIADDR
	.comm	_EFBIG,4,2                      ## @EFBIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ufs_getlbns                    ; -- Begin function ufs_getlbns
	.p2align	2
_ufs_getlbns:                           ; @ufs_getlbns
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x24, x0
	ldr	w0, [x0]
	bl	_NINDIR
	bl	_ffs
	mov	x23, x0
	cbz	x21, LBB0_2
; %bb.1:
	str	wzr, [x21]
LBB0_2:
	cmp	w20, #0
	cneg	w19, w20, mi
Lloh0:
	adrp	x26, _UFS_NDADDR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _UFS_NDADDR@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w19, w8
	cset	w0, ge
	bl	_assert
Lloh2:
	adrp	x12, _UFS_NIADDR@GOTPAGE
Lloh3:
	ldr	x12, [x12, _UFS_NIADDR@GOTPAGEOFF]
	ldr	w8, [x12]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x25, #0
	sub	x23, x23, #1
	ldr	w9, [x26]
	sub	w27, w19, w9
	mov	w9, #1
	mov	x26, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x23, w25, sxtw
	lsl	w10, w9, w25
	subs	w10, w27, w10
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x10
	sub	w26, w26, #1
	cbnz	w26, LBB0_4
LBB0_6:
Lloh4:
	adrp	x8, _EFBIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_7:
	bic	w9, w20, w20, asr #31
	cmp	w20, #0
	csel	w10, wzr, w20, ge
	add	w11, w26, w27
	add	w10, w11, w10
	add	w8, w8, w9
	sub	w28, w10, w8
	str	w28, [x22]
	ldr	w8, [x12]
	subs	w8, w8, w26
	str	w8, [x22, #4]
	ccmp	w28, w20, #4, ge
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b.ne	LBB0_9
; %bb.8:
	mov	w22, #1
	b	LBB0_11
LBB0_9:
	add	x19, x22, #12
	mov	w22, #1
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w26, w22
	sub	w24, w8, #1
	sxtw	x8, w25
	sub	x25, x8, x23
	asr	w21, w27, w25
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x20, x12
	bl	_NINDIR
	mov	x12, x20
	sub	w8, w0, #1
	and	w8, w8, w21
	add	w22, w22, #1
	stp	w28, w8, [x19, #-4]
	lsl	w8, w8, w25
	sub	w8, w28, w8
	add	w28, w8, #1
	ldr	w8, [x20]
	add	x19, x19, #8
	cmp	w24, w8
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	ccmp	w28, w8, #4, lt
	b.ne	LBB0_10
LBB0_11:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_13
; %bb.12:
	mov	w0, #0
	str	w22, [x8]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UFS_NDADDR,4,2                 ; @UFS_NDADDR
	.comm	_UFS_NIADDR,4,2                 ; @UFS_NIADDR
	.comm	_EFBIG,4,2                      ; @EFBIG
.subsections_via_symbols
