	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attempt_merge
_attempt_merge:                         ## @attempt_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, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_rq_mergeable
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_17
## %bb.1:
	movq	%r15, %rdi
	callq	_rq_mergeable
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	movq	_REQ_DISCARD@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	xorl	(%r12), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_17
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_blk_rq_pos
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_blk_rq_sectors
	movq	%rax, %r14
	addq	%rbx, %r14
	movq	%r15, %rdi
	callq	_blk_rq_pos
	cmpq	%rax, %r14
	jne	LBB0_17
## %bb.4:
	movq	%r12, %rdi
	callq	_rq_data_dir
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_rq_data_dir
	cmpq	%rax, %r14
	jne	LBB0_17
## %bb.5:
	movq	8(%r12), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_17
## %bb.6:
	cmpq	$0, 56(%r15)
	jne	LBB0_17
## %bb.7:
	movq	%r12, %rdi
	callq	_blk_integrity_rq
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_blk_integrity_rq
	cmpq	%rax, %r14
	jne	LBB0_17
## %bb.8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ll_merge_requests_fn
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movl	(%r12), %eax
	movl	(%r15), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	movq	_REQ_MIXED_MERGE@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_11
## %bb.10:
	movq	_REQ_FAILFAST_MASK@GOTPCREL(%rip), %rdx
	xorl	%eax, %ecx
	testl	%ecx, (%rdx)
	je	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	callq	_blk_rq_set_mixed_merge
	movq	%r15, %rdi
	callq	_blk_rq_set_mixed_merge
LBB0_12:
	movl	48(%r12), %edi
	movl	48(%r15), %esi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	48(%r15), %eax
	movl	%eax, 48(%r12)
LBB0_14:
	movq	16(%r15), %rax
	movq	40(%r12), %rcx
	movq	%rax, (%rcx)
	movq	40(%r15), %rax
	movq	%rax, 40(%r12)
	movq	%r15, %rdi
	callq	_blk_rq_bytes
	addl	%eax, 32(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_elv_merge_requests
	movq	%r15, %rdi
	callq	_blk_account_io_merge
	movl	28(%r12), %edi
	movl	28(%r15), %esi
	callq	_ioprio_best
	movl	%eax, 28(%r12)
	movq	%r15, %rdi
	callq	_blk_rq_cpu_valid
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	24(%r15), %eax
	movl	%eax, 24(%r12)
LBB0_16:
	movq	$0, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	___blk_put_request
	movl	$1, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_DISCARD,4,2                ## @REQ_DISCARD
	.comm	_REQ_MIXED_MERGE,4,2            ## @REQ_MIXED_MERGE
	.comm	_REQ_FAILFAST_MASK,4,2          ## @REQ_FAILFAST_MASK
	.no_dead_strip	_attempt_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attempt_merge
_attempt_merge:                         ; @attempt_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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_rq_mergeable
	cbz	w0, LBB0_18
; %bb.1:
	mov	x0, x19
	bl	_rq_mergeable
	cbz	w0, LBB0_18
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _REQ_DISCARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_DISCARD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19]
	eor	w8, w10, w8
	tst	w8, w9
	b.ne	LBB0_17
; %bb.3:
	mov	x0, x21
	bl	_blk_rq_pos
	mov	x22, x0
	mov	x0, x21
	bl	_blk_rq_sectors
	add	x22, x0, x22
	mov	x0, x19
	bl	_blk_rq_pos
	cmp	x22, x0
	b.ne	LBB0_17
; %bb.4:
	mov	x0, x21
	bl	_rq_data_dir
	mov	x22, x0
	mov	x0, x19
	bl	_rq_data_dir
	cmp	x22, x0
	b.ne	LBB0_17
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.6:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_17
; %bb.7:
	mov	x0, x21
	bl	_blk_integrity_rq
	mov	x22, x0
	mov	x0, x19
	bl	_blk_integrity_rq
	cmp	x22, x0
	b.ne	LBB0_17
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ll_merge_requests_fn
	cbz	w0, LBB0_18
; %bb.9:
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w10, w9, w8
Lloh3:
	adrp	x11, _REQ_MIXED_MERGE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _REQ_MIXED_MERGE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w10, w11
	b.ne	LBB0_11
; %bb.10:
Lloh6:
	adrp	x10, _REQ_FAILFAST_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REQ_FAILFAST_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	eor	w8, w9, w8
	tst	w10, w8
	b.eq	LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_blk_rq_set_mixed_merge
	mov	x0, x19
	bl	_blk_rq_set_mixed_merge
LBB0_12:
	ldr	w0, [x21, #48]
	ldr	w1, [x19, #48]
	bl	_time_after
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w8, [x19, #48]
	str	w8, [x21, #48]
LBB0_14:
	ldr	x8, [x19, #16]
	ldr	x9, [x21, #40]
	str	x8, [x9]
	ldr	x8, [x19, #40]
	str	x8, [x21, #40]
	mov	x0, x19
	bl	_blk_rq_bytes
	ldr	w8, [x21, #32]
	add	w8, w8, w0
	str	w8, [x21, #32]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_elv_merge_requests
	mov	x0, x19
	bl	_blk_account_io_merge
	ldr	w0, [x21, #28]
	ldr	w1, [x19, #28]
	bl	_ioprio_best
	str	w0, [x21, #28]
	mov	x0, x19
	bl	_blk_rq_cpu_valid
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x19, #24]
	str	w8, [x21, #24]
LBB0_16:
	str	xzr, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	___blk_put_request
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_DISCARD,4,2                ; @REQ_DISCARD
	.comm	_REQ_MIXED_MERGE,4,2            ; @REQ_MIXED_MERGE
	.comm	_REQ_FAILFAST_MASK,4,2          ; @REQ_FAILFAST_MASK
	.no_dead_strip	_attempt_merge
.subsections_via_symbols
