	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_aio_inprogress             ## -- Begin function get_aio_inprogress
	.p2align	4, 0x90
_get_aio_inprogress:                    ## @get_aio_inprogress
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_aio_fsync_cbp@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	js	LBB0_6
## %bb.1:
	movq	_aio_fsync_cbp@GOTPCREL(%rip), %rdi
	callq	_aio_error
	movl	%eax, %ecx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_6
## %bb.2:
	movq	_aio_fsync_cbp@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_aio_return
	movq	_last_fsync_binlog_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	$1, %esi
	jmp	LBB0_5
LBB0_3:
	movl	(%rdi), %r14d
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_vkprintf
	movq	(%rbx), %rdi
	xorl	%esi, %esi
LBB0_5:
	callq	_update_binlog_fsync_stat
	movl	$-1, (%r15)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aio_fsync_cbp,4,2              ## @aio_fsync_cbp
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aio_fsync (%s) fails. %s\n"

	.comm	_last_fsync_binlog_file,8,3     ## @last_fsync_binlog_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_aio_inprogress             ; -- Begin function get_aio_inprogress
	.p2align	2
_get_aio_inprogress:                    ; @get_aio_inprogress
	.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
Lloh0:
	adrp	x8, _aio_fsync_cbp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aio_fsync_cbp@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, _aio_fsync_cbp@GOTPAGE
Lloh4:
	ldr	x0, [x0, _aio_fsync_cbp@GOTPAGEOFF]
	bl	_aio_error
Lloh5:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x19, _aio_fsync_cbp@GOTPAGE
Lloh9:
	ldr	x19, [x19, _aio_fsync_cbp@GOTPAGEOFF]
	mov	x0, x19
	bl	_aio_return
Lloh10:
	adrp	x21, _last_fsync_binlog_file@GOTPAGE
Lloh11:
	ldr	x21, [x21, _last_fsync_binlog_file@GOTPAGEOFF]
	ldr	x8, [x21]
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	x0, x8
	mov	w1, #1
	b	LBB0_7
LBB0_6:
	ldr	w20, [x8]
	bl	_strerror
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x20
	bl	_vkprintf
	ldr	x0, [x21]
	mov	w1, #0
LBB0_7:
	bl	_update_binlog_fsync_stat
	mov	w0, #0
	mov	w8, #-1
	str	w8, [x19]
LBB0_8:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_aio_fsync_cbp,4,2              ; @aio_fsync_cbp
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aio_fsync (%s) fails. %s\n"

	.comm	_last_fsync_binlog_file,8,3     ; @last_fsync_binlog_file
.subsections_via_symbols
