	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_write_batch
_update_write_batch:                    ## @update_write_batch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_BLK_RW_ASYNC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%rax, %rdx
	subq	8(%rdi), %rdx
	xorl	%ecx, %ecx
	testq	%rdx, %rdx
	cmovgq	%rdx, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_5
## %bb.1:
	cmpl	$0, 32(%rdi)
	je	LBB0_2
LBB0_5:
	cmpq	%rax, %rcx
	jae	LBB0_11
## %bb.6:
	cmpq	$0, 24(%rdi)
	jne	LBB0_11
## %bb.7:
	leaq	(%rcx,%rcx,2), %rdx
	movl	16(%rdi), %ecx
	cmpq	%rdx, %rax
	jbe	LBB0_9
## %bb.8:
	addl	%ecx, %ecx
	jmp	LBB0_10
LBB0_2:
	leaq	(%rax,%rax,2), %rdx
	movl	16(%rdi), %eax
	cmpq	%rdx, %rcx
	jbe	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	jmp	LBB0_10
LBB0_4:
	decl	%eax
	movl	%eax, 16(%rdi)
	jmp	LBB0_11
LBB0_9:
	incl	%ecx
LBB0_10:
	movl	%ecx, 16(%rdi)
LBB0_11:
	cmpl	$0, 16(%rdi)
	jle	LBB0_12
## %bb.13:
	popq	%rbp
	retq
LBB0_12:
	movl	$1, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_RW_ASYNC,8,3               ## @BLK_RW_ASYNC
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_update_write_batch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_write_batch
_update_write_batch:                    ; @update_write_batch
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BLK_RW_ASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_RW_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	ldr	x8, [x9, x8, lsl #3]
Lloh3:
	adrp	x9, _jiffies@GOTPAGE
Lloh4:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, x8
	sub	x9, x9, x10
	cmp	x9, #0
	csel	x9, x9, xzr, gt
	cmp	x9, x8
	b.ls	LBB0_2
; %bb.1:
	ldr	w10, [x0, #32]
	cbz	w10, LBB0_6
LBB0_2:
	cmp	x9, x8
	b.hs	LBB0_11
; %bb.3:
	ldr	x10, [x0, #24]
	cbnz	x10, LBB0_11
; %bb.4:
	add	x10, x9, x9, lsl #1
	ldr	w9, [x0, #16]
	cmp	x8, x10
	b.ls	LBB0_9
; %bb.5:
	lsl	w8, w9, #1
	b	LBB0_10
LBB0_6:
	add	x10, x8, x8, lsl #1
	ldr	w8, [x0, #16]
	cmp	x9, x10
	b.ls	LBB0_8
; %bb.7:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_10
LBB0_8:
	sub	w8, w8, #1
	b	LBB0_10
LBB0_9:
	add	w8, w9, #1
LBB0_10:
	str	w8, [x0, #16]
LBB0_11:
	ldr	w8, [x0, #16]
	cmp	w8, #0
	b.le	LBB0_13
; %bb.12:
	ret
LBB0_13:
	mov	w8, #1
	str	w8, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_RW_ASYNC,8,3               ; @BLK_RW_ASYNC
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_update_write_batch
.subsections_via_symbols
