	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deadline_merge
_deadline_merge:                        ## @deadline_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	(%rdi), %rax
	movq	(%rax), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	(%rdx), %r15
	movq	%rdx, %rdi
	callq	_bio_sectors
	movq	%rax, %r13
	addq	%r15, %r13
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_bio_data_dir
	leaq	(%rbx,%rax,4), %rdi
	movq	%r13, %rsi
	callq	_elv_rb_find
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_blk_rq_pos
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setne	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_elv_rq_merge_ok
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_ELEVATOR_FRONT_MERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, (%r14)
	jmp	LBB0_5
LBB0_3:
	movq	_ELEVATOR_NO_MERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELEVATOR_FRONT_MERGE,4,2       ## @ELEVATOR_FRONT_MERGE
	.comm	_ELEVATOR_NO_MERGE,4,2          ## @ELEVATOR_NO_MERGE
	.no_dead_strip	_deadline_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deadline_merge
_deadline_merge:                        ; @deadline_merge
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	ldr	x22, [x2]
	mov	x0, x2
	bl	_bio_sectors
	add	x22, x0, x22
	ldr	x21, [x21]
	mov	x0, x20
	bl	_bio_data_dir
	add	x0, x21, x0, lsl #2
	mov	x1, x22
	bl	_elv_rb_find
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	bl	_blk_rq_pos
	cmp	x22, x0
	cset	w0, ne
	bl	_BUG_ON
	mov	x0, x21
	mov	x1, x20
	bl	_elv_rq_merge_ok
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ELEVATOR_FRONT_MERGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELEVATOR_FRONT_MERGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x21, [x19]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ELEVATOR_NO_MERGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELEVATOR_NO_MERGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ELEVATOR_FRONT_MERGE,4,2       ; @ELEVATOR_FRONT_MERGE
	.comm	_ELEVATOR_NO_MERGE,4,2          ; @ELEVATOR_NO_MERGE
	.no_dead_strip	_deadline_merge
.subsections_via_symbols
