	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bad_rw_intr
_bad_rw_intr:                           ## @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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_hd_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movq	(%rdx), %rbx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_MAX_ERRORS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_3
## %bb.2:
	movq	_hd_error@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BBD_ERR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_hd_end_request_cur
LBB0_14:
	movl	$1, 4(%rbx)
LBB0_15:
	movl	$1, (%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_RESET_FREQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_9:
	movq	_TRK0_ERR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_14
## %bb.10:
	movq	_RECAL_FREQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_13
LBB0_5:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_9
LBB0_8:
	movq	_reset@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_11:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_13:
	testq	%rdx, %rdx
	jne	LBB0_16
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_hd_req,8,3                     ## @hd_req
	.comm	_MAX_ERRORS,8,3                 ## @MAX_ERRORS
	.comm	_hd_error,4,2                   ## @hd_error
	.comm	_BBD_ERR,4,2                    ## @BBD_ERR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RESET_FREQ,4,2                 ## @RESET_FREQ
	.comm	_reset,4,2                      ## @reset
	.comm	_TRK0_ERR,4,2                   ## @TRK0_ERR
	.comm	_RECAL_FREQ,4,2                 ## @RECAL_FREQ
	.no_dead_strip	_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 bad_rw_intr
_bad_rw_intr:                           ; @bad_rw_intr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _hd_req@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hd_req@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
	ldp	x10, x8, [x9]
	ldr	x19, [x8]
	add	x8, x10, #1
	str	x8, [x9]
Lloh3:
	adrp	x9, _MAX_ERRORS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_ERRORS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _hd_error@GOTPAGE
Lloh7:
	ldr	x9, [x9, _hd_error@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _BBD_ERR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BBD_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_hd_end_request_cur
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh15:
	adrp	x10, _RESET_FREQ@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RESET_FREQ@GOTPAGEOFF]
Lloh17:
	ldrsw	x10, [x10]
	sdiv	x11, x8, x10
	msub	x10, x11, x10, x8
	cbz	x10, LBB0_10
; %bb.8:
Lloh18:
	adrp	x10, _TRK0_ERR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TRK0_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.9:
Lloh21:
	adrp	x9, _RECAL_FREQ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RECAL_FREQ@GOTPAGEOFF]
Lloh23:
	ldrsw	x9, [x9]
	sdiv	x10, x8, x9
	msub	x8, x10, x9, x8
	cbnz	x8, LBB0_6
	b	LBB0_4
LBB0_10:
Lloh24:
	adrp	x19, _reset@GOTPAGE
Lloh25:
	ldr	x19, [x19, _reset@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_hd_req,8,3                     ; @hd_req
	.comm	_MAX_ERRORS,8,3                 ; @MAX_ERRORS
	.comm	_hd_error,4,2                   ; @hd_error
	.comm	_BBD_ERR,4,2                    ; @BBD_ERR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RESET_FREQ,4,2                 ; @RESET_FREQ
	.comm	_reset,4,2                      ; @reset
	.comm	_TRK0_ERR,4,2                   ; @TRK0_ERR
	.comm	_RECAL_FREQ,4,2                 ; @RECAL_FREQ
	.no_dead_strip	_bad_rw_intr
.subsections_via_symbols
