	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function super_written
_super_written:                         ## @super_written
	.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	%rdi, %r14
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rbx
	movq	8(%rbx), %r15
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_md_error
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_MD_FAILFAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.3:
	movq	_MD_SB_NEED_REWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
	movq	_LastDev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_5
LBB0_4:
	movq	_LastDev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_5:
	leaq	4(%r15), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_wake_up
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rdev_dec_pending
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bio_put                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md: super_written gets error=%d\n"

	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_MD_FAILFAST,4,2                ## @MD_FAILFAST
	.comm	_MD_SB_NEED_REWRITE,4,2         ## @MD_SB_NEED_REWRITE
	.comm	_LastDev,4,2                    ## @LastDev
	.no_dead_strip	_super_written
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function super_written
_super_written:                         ; @super_written
	.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, x0
	ldp	x1, x20, [x0, #8]
	ldr	x21, [x20, #8]
	cbz	x1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x21
	mov	x1, x20
	bl	_md_error
Lloh2:
	adrp	x8, _Faulty@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _MD_FAILFAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MD_FAILFAST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _MD_SB_NEED_REWRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MD_SB_NEED_REWRITE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_set_bit
Lloh11:
	adrp	x8, _LastDev@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LastDev@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _LastDev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LastDev@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
LBB0_5:
	add	x0, x21, #4
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_wake_up
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_rdev_dec_pending
	mov	x0, x19
	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
	b	_bio_put
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md: super_written gets error=%d\n"

	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_MD_FAILFAST,4,2                ; @MD_FAILFAST
	.comm	_MD_SB_NEED_REWRITE,4,2         ; @MD_SB_NEED_REWRITE
	.comm	_LastDev,4,2                    ; @LastDev
	.no_dead_strip	_super_written
.subsections_via_symbols
