	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mg_bad_rw_intr
_mg_bad_rw_intr:                        ## @mg_bad_rw_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_MG_MAX_ERRORS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_4
## %bb.2:
	movq	(%rdi), %rax
	movq	_MG_ERR_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	popq	%rbp
	jmp	_mg_end_request_cur             ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MG_MAX_ERRORS,8,3              ## @MG_MAX_ERRORS
	.comm	_MG_ERR_TIMEOUT,8,3             ## @MG_ERR_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mg_bad_rw_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mg_bad_rw_intr
_mg_bad_rw_intr:                        ; @mg_bad_rw_intr
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
Lloh0:
	adrp	x8, _MG_MAX_ERRORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MG_MAX_ERRORS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_3
; %bb.2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MG_ERR_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MG_ERR_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w1, w8
	b	_mg_end_request_cur
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MG_MAX_ERRORS,8,3              ; @MG_MAX_ERRORS
	.comm	_MG_ERR_TIMEOUT,8,3             ; @MG_ERR_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mg_bad_rw_intr
.subsections_via_symbols
