	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_write_super_and_discard_space
_r5l_write_super_and_discard_space:     ## @r5l_write_super_and_discard_space
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	16(%rax), %r14
	callq	_r5l_write_super
	movq	%r14, %rdi
	callq	_bdev_get_queue
	movl	%eax, %edi
	callq	_blk_queue_discard
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	16(%r13), %rax
	movq	8(%rax), %r12
	movq	_MD_SB_CHANGE_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_set_mask_bits
	movq	%r12, %rdi
	callq	_mddev_trylock
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_md_update_sb
	movq	%r12, %rdi
	callq	_mddev_unlock
	movq	(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rcx), %rsi
	addq	%rax, %rsi
	cmpq	%r15, %rax
	jge	LBB0_5
## %bb.3:
	subq	%rax, %r15
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r13), %rdx
	subq	%rax, %rdx
	movq	_GFP_NOIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_blkdev_issue_discard
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blkdev_issue_discard           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_SB_CHANGE_DEVS,4,2          ## @MD_SB_CHANGE_DEVS
	.comm	_MD_SB_CHANGE_PENDING,4,2       ## @MD_SB_CHANGE_PENDING
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.no_dead_strip	_r5l_write_super_and_discard_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_write_super_and_discard_space
_r5l_write_super_and_discard_space:     ; @r5l_write_super_and_discard_space
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #16]
	bl	_r5l_write_super
	mov	x0, x20
	bl	_bdev_get_queue
	bl	_blk_queue_discard
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	x22, [x8, #8]
Lloh0:
	adrp	x8, _MD_SB_CHANGE_DEVS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_SB_CHANGE_DEVS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x23, x0
Lloh3:
	adrp	x8, _MD_SB_CHANGE_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_SB_CHANGE_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w23
	mov	x0, x22
	mov	w1, #0
	bl	_set_mask_bits
	mov	x0, x22
	bl	_mddev_trylock
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x22
	mov	w1, #1
	bl	_md_update_sb
	mov	x0, x22
	bl	_mddev_unlock
	ldr	x8, [x21]
	ldr	x9, [x21, #16]
	ldr	x9, [x9]
	add	x1, x9, x8
	cmp	x8, x19
	b.ge	LBB0_5
; %bb.3:
	sub	x2, x19, x8
Lloh6:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x9, [x21, #8]
	sub	x2, x9, x8
Lloh9:
	adrp	x22, _GFP_NOIO@GOTPAGE
Lloh10:
	ldr	x22, [x22, _GFP_NOIO@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w4, #0
	bl	_blkdev_issue_discard
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x2, x19
LBB0_6:
	mov	w4, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_blkdev_issue_discard
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_SB_CHANGE_DEVS,4,2          ; @MD_SB_CHANGE_DEVS
	.comm	_MD_SB_CHANGE_PENDING,4,2       ; @MD_SB_CHANGE_PENDING
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.no_dead_strip	_r5l_write_super_and_discard_space
.subsections_via_symbols
