	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcache_strategy                ## -- Begin function bcache_strategy
	.p2align	4, 0x90
_bcache_strategy:                       ## @bcache_strategy
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_bcache_ops@GOTPCREL(%rip), %rax
	incl	(%rax)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %rsi
	movq	%r13, %rax
	addq	%r13, %rax
	movq	_bcache_blksize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rcx
	cmpq	%rsi, %rax
	ja	LBB0_6
	jmp	LBB0_10
LBB0_1:
	movq	_bcache_blksize@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_6
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rsi, %rax
	jbe	LBB0_10
LBB0_6:
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rsi
	jmp	LBB0_9
LBB0_10:
	movq	_F_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	$128, %edx
	je	LBB0_33
## %bb.11:
	movl	$-1, %eax
	cmpl	$129, %edx
	jne	LBB0_32
## %bb.12:
	testq	%r13, %r13
	je	LBB0_13
## %bb.14:
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.16:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_17
LBB0_7:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	callq	_DPRINTF
	movq	_bcache_bypasses@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_F_MASK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	andl	(%rax), %esi
	movq	(%r14), %rax
	movl	8(%r14), %edi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_33:
	movq	%r14, %rdi
	movl	$128, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_strategy                 ## TAILCALL
LBB0_13:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_15:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	testl	%eax, %eax
	movl	$1, %ebx
	cmovnel	%eax, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rbx
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	addq	%rsi, %r12
	addq	%rcx, %r15
	testq	%r13, %r13
	je	LBB0_28
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r14
	movq	%r12, %rsi
	callq	_BHASH
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edi
	subl	%eax, %edi
	movl	%ebx, %esi
	callq	_MIN
	movq	_bcache_blksize@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movslq	%eax, %rcx
	imulq	%rdx, %rcx
	cmpq	%rdx, %r13
	cmovbeq	%r13, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	leaq	-88(%rbp), %r9
	callq	_read_strategy
	movl	%eax, %edx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-88(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rbx), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rsi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	subq	%rcx, %r13
	movq	%r13, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_28:
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_20:
	xorl	%eax, %eax
	testq	%r15, %r15
	cmovel	%edx, %eax
LBB0_29:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_30:
	testq	%rbx, %rbx
	je	LBB0_32
## %bb.31:
	movq	%r15, (%rbx)
LBB0_32:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bcache_ops,4,2                 ## @bcache_ops
	.comm	_bcache_blksize,8,3             ## @bcache_blksize
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bypass %zu from %qu"

	.comm	_bcache_bypasses,4,2            ## @bcache_bypasses
	.comm	_F_MASK,4,2                     ## @F_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcache_strategy                ; -- Begin function bcache_strategy
	.p2align	2
_bcache_strategy:                       ; @bcache_strategy
	.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	x26, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x25, [x0, #16]
Lloh0:
	adrp	x8, _bcache_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bcache_ops@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cbz	x25, LBB0_9
; %bb.1:
	ldr	x27, [x25]
	lsl	x9, x21, #1
Lloh2:
	adrp	x19, _bcache_blksize@GOTPAGE
Lloh3:
	ldr	x19, [x19, _bcache_blksize@GOTPAGEOFF]
	ldr	x8, [x19]
	udiv	x9, x9, x8
	cmp	x9, x27
	b.hi	LBB0_10
; %bb.2:
Lloh4:
	adrp	x9, _F_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _F_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w9, w9, w24
	cmp	w9, #128
	b.eq	LBB0_11
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_12
; %bb.4:
	cbz	x21, LBB0_13
; %bb.5:
	str	x26, [sp]                       ; 8-byte Folded Spill
	mov	x28, #0
	udiv	x8, x21, x8
	cmp	w8, #0
	csinc	w26, w8, wzr, ne
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_BHASH
	sub	w0, w27, w0
	mov	x1, x26
	bl	_MIN
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	sxtw	x9, w0
	mul	x9, x8, x9
	cmp	x21, x8
	csel	x3, x9, x21, hi
	add	x4, x20, x28
	add	x5, sp, #8
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_read_strategy
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19]
	udiv	x10, x8, x9
	add	x22, x10, x22
	add	x28, x8, x28
	subs	x21, x21, x8
	udiv	x26, x21, x9
	b.ne	LBB0_6
; %bb.8:
	mov	w0, #0
	b	LBB0_15
LBB0_9:
Lloh7:
	adrp	x8, _bcache_blksize@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bcache_blksize@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
LBB0_10:
	udiv	x1, x21, x8
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_DPRINTF
Lloh12:
	adrp	x8, _bcache_bypasses@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bcache_bypasses@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh14:
	adrp	x8, _F_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _F_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w1, w8, w24
	ldr	x6, [x23]
	ldr	w0, [x23, #8]
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x26
	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
	br	x6
LBB0_11:
	mov	x0, x23
	mov	w1, #128
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x26
	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
	b	_write_strategy
LBB0_12:
	mov	w0, #-1
	b	LBB0_18
LBB0_13:
	mov	x28, #0
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	cmp	x28, #0
	csel	w0, w0, wzr, eq
LBB0_15:
	ldr	x26, [sp]                       ; 8-byte Folded Reload
LBB0_16:
	cbz	x26, LBB0_18
; %bb.17:
	str	x28, [x26]
LBB0_18:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_bcache_ops,4,2                 ; @bcache_ops
	.comm	_bcache_blksize,8,3             ; @bcache_blksize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bypass %zu from %qu"

	.comm	_bcache_bypasses,4,2            ; @bcache_bypasses
	.comm	_F_MASK,4,2                     ; @F_MASK
.subsections_via_symbols
