	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elv_merge                      ## -- Begin function elv_merge
	.p2align	4, 0x90
_elv_merge:                             ## @elv_merge
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %r13
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%r15, %rsi
	callq	_elv_rq_merge_ok
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_blk_try_merge
	movq	_ELEVATOR_NO_MERGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_blk_queue_nomerges
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movq	_ELEVATOR_NO_MERGE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_elv_rqhash_find
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_elv_rq_merge_ok
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, (%r14)
	movq	_ELEVATOR_BACK_MERGE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	(%rbx), %rcx
	movq	%rcx, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ELEVATOR_NO_MERGE,4,2          ## @ELEVATOR_NO_MERGE
	.comm	_ELEVATOR_BACK_MERGE,4,2        ## @ELEVATOR_BACK_MERGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elv_merge                      ; -- Begin function elv_merge
	.p2align	2
_elv_merge:                             ; @elv_merge
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldp	x0, x23, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x20
	bl	_elv_rq_merge_ok
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_blk_try_merge
Lloh0:
	adrp	x8, _ELEVATOR_NO_MERGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELEVATOR_NO_MERGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_3:
	mov	x0, x21
	bl	_blk_queue_nomerges
	cbz	x0, LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ELEVATOR_NO_MERGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELEVATOR_NO_MERGE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_elv_rqhash_find
	cbz	x0, LBB0_11
; %bb.7:
	mov	x22, x0
	mov	x1, x20
	bl	_elv_rq_merge_ok
	cbz	x0, LBB0_11
; %bb.8:
	str	x22, [x19]
Lloh5:
	adrp	x8, _ELEVATOR_BACK_MERGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELEVATOR_BACK_MERGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x23]
	ldr	x3, [x8]
	cbz	x3, LBB0_4
; %bb.12:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ELEVATOR_NO_MERGE,4,2          ; @ELEVATOR_NO_MERGE
	.comm	_ELEVATOR_BACK_MERGE,4,2        ; @ELEVATOR_BACK_MERGE
.subsections_via_symbols
