	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prio_read
_prio_read:                             ## @prio_read
	.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	%rsi, %r13
	movq	%rdi, %r12
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r14
	callq	_prios_per_bucket
	cmpl	$0, (%r12)
	jle	LBB0_9
## %bb.1:
	cltq
	leaq	(%r14,%rax,8), %r15
	movq	24(%r12), %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	movq	24(%rax), %r13
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 8(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movl	%eax, 4(%r14)
	addq	$12, %r14
	addq	$8, %r15
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rax
	shlq	$2, %rax
	addq	24(%r12), %rax
	cmpq	%rax, %r14
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movq	%r13, (%rax,%rcx,8)
	movq	8(%r12), %rax
	movq	%r13, (%rax,%rcx,8)
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_prio_io
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	%r12, %rdi
	callq	_bucket_bytes
	leaq	-8(%rax), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bch_crc64
	cmpq	%rax, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %r15
	movq	%r12, %rdi
	callq	_pset_magic
	cmpq	%rax, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_7
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad csum reading priorities"

L_.str.1:                               ## @.str.1
	.asciz	"bad magic reading priorities"

	.no_dead_strip	_prio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prio_read
_prio_read:                             ; @prio_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	x24, [x0, #32]
	ldr	x20, [x24, #16]
	bl	_prios_per_bucket
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w25, #0
	add	x22, x20, w0, sxtw #3
	ldr	x27, [x19, #24]
	add	x20, x24, #8
Lloh0:
	adrp	x28, _REQ_OP_READ@GOTPAGE
Lloh1:
	ldr	x28, [x28, _REQ_OP_READ@GOTPAGEOFF]
	mov	w21, #12
	mov	x26, x22
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	ldp	x26, x23, [x24, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26, #4]
	bl	_le16_to_cpu
	str	w0, [x27, #8]
	ldr	w8, [x26], #8
	stp	w8, w8, [x27], #12
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19]
	madd	x8, x9, x21, x8
	cmp	x27, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x26, x22
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	mov	w9, w25
	lsl	x9, x9, #3
	str	x23, [x8, x9]
	ldr	x8, [x19, #8]
	str	x23, [x8, x9]
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_prio_io
	ldr	x23, [x24]
	mov	x0, x19
	bl	_bucket_bytes
	sub	x1, x0, #8
	mov	x0, x20
	bl	_bch_crc64
	cmp	x23, x0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x20]
	mov	x0, x19
	bl	_pset_magic
	cmp	x23, x0
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	b	LBB0_2
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad csum reading priorities"

l_.str.1:                               ; @.str.1
	.asciz	"bad magic reading priorities"

	.no_dead_strip	_prio_read
.subsections_via_symbols
