	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_set_indices
_log_set_indices:                       ## @log_set_indices
	.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	%rdi, %r15
	movq	$-1, -48(%rbp)
	cmpq	$0, (%rdi)
	jle	LBB0_23
## %bb.1:
	movl	$1, %ebx
	leaq	-56(%rbp), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %rbx
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	$0, %eax
	cmovll	%eax, %ebx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	(%r15), %rsi
	leaq	-56(%rbp), %rdx
	jge	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r15, %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_btt_log_group_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rdi
	addq	%r15, %rdi
	callq	_ent_is_padding
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	addq	$4, %r15
	cmpq	$16, %r15
	je	LBB0_20
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	movslq	-48(%rbp), %rax
	cmpq	%rax, %r13
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	movslq	-44(%rbp), %rax
	movl	$1, %r12d
	cmpq	%rax, %r13
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rdi
	addq	%r15, %rdi
	callq	_ent_is_padding
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rdi
	addq	%r15, %rdi
	callq	_ent_is_padding
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	xorl	%r12d, %r12d
	cmpq	$1, %r14
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movslq	-48(%rbp), %rax
	cmpq	%rax, %r13
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, %r14d
	jmp	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%r13d, -48(%rbp,%r14,4)
	leaq	1(%r14), %rax
	cmpq	$2, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$2, %r14d
	movl	$1, %r12d
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$2, %r14
	movq	%rax, %r14
	jl	LBB0_19
	jmp	LBB0_14
LBB0_3:
	movl	%eax, %r13d
	jmp	LBB0_28
LBB0_21:
	orl	%ebx, %r12d
	je	LBB0_14
## %bb.22:
	testl	%ebx, %ebx
	je	LBB0_24
LBB0_23:
	movl	$1, -44(%rbp)
LBB0_24:
	cmpl	$0, -48(%rbp)
	jne	LBB0_26
## %bb.25:
	movl	-44(%rbp), %r14d
	leal	-1(%r14), %eax
	cmpl	$2, %eax
	jae	LBB0_26
## %bb.27:
	movq	8(%r15), %rax
	movl	$0, (%rax)
	movl	%r14d, 4(%rax)
	movq	%r15, %rdi
	callq	_to_dev
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_to_dev
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_dev_dbg
	jmp	LBB0_28
LBB0_26:
	movq	%r15, %rdi
	callq	_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
LBB0_14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_28:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found an unknown padding scheme\n"

L_.str.1:                               ## @.str.1
	.asciz	"log_index_0 = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"log_index_1 = %d\n"

	.no_dead_strip	_log_set_indices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_set_indices
_log_set_indices:                       ; @log_set_indices
	.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	x19, x0
	mov	x8, #-1
	str	x8, [sp, #8]
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x23, #0
	mov	x20, #0
	mov	w27, #0
	mov	w21, #1
	add	x22, sp, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, #3
	csel	w21, wzr, w21, lt
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_btt_log_group_read
	tbnz	w0, #31, LBB0_29
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	mov	x24, #0
	mov	x26, #0
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp]
	add	x0, x8, x25
	bl	_ent_is_padding
	cbnz	x0, LBB0_28
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	w27, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x26, x26, #1
	add	x25, x25, #4
	cmp	x25, #16
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w27, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [sp, #8]
	cmp	x26, x8
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [sp, #12]
	cmp	x26, x8
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp]
	add	x0, x8, x25
	bl	_ent_is_padding
	cbnz	x0, LBB0_6
	b	LBB0_28
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp]
	add	x0, x8, x25
	bl	_ent_is_padding
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w27, #0
	add	x24, x24, #1
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x23, #1
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [sp, #8]
	cmp	x26, x8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w27, #0
	mov	w23, #1
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	str	w26, [x22, x23, lsl #2]
	add	x8, x23, #1
	cmp	x8, #2
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w27, #1
	mov	w23, #2
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x23, #2
	b.ge	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w27, #0
	mov	x23, x8
	b	LBB0_7
LBB0_21:
	orr	w8, w21, w27
	cbz	w8, LBB0_28
; %bb.22:
	cbz	w21, LBB0_24
LBB0_23:
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_24:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_27
; %bb.25:
	ldr	w20, [sp, #12]
	sub	w8, w20, #1
	cmp	w8, #2
	b.hs	LBB0_27
; %bb.26:
	ldr	x8, [x19, #8]
	stp	wzr, w20, [x8]
	mov	x0, x19
	bl	_to_dev
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_dev_dbg
	mov	x0, x19
	bl	_to_dev
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_29
LBB0_27:
	mov	x0, x19
	bl	_to_dev
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_28:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_29:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found an unknown padding scheme\n"

l_.str.1:                               ; @.str.1
	.asciz	"log_index_0 = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"log_index_1 = %d\n"

	.no_dead_strip	_log_set_indices
.subsections_via_symbols
