	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bio_clone_mddev                ## -- Begin function bio_clone_mddev
	.p2align	4, 0x90
_bio_clone_mddev:                       ## @bio_clone_mddev
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	movq	%rdx, %rbx
	movl	(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.2:
	movl	4(%r12), %esi
	movl	%r14d, %edi
	callq	_bio_alloc_bioset
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, -8(%rax)
	movq	_mddev_bio_destructor@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	___bio_clone
	movq	%r12, %rdi
	callq	_bio_integrity
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_bio_integrity_clone
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_bio_put
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bio_clone                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mddev_bio_destructor,4,2       ## @mddev_bio_destructor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bio_clone_mddev                ; -- Begin function bio_clone_mddev
	.p2align	2
_bio_clone_mddev:                       ; @bio_clone_mddev
	.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, x1
	mov	x21, x0
	cbz	x2, LBB0_7
; %bb.1:
	mov	x22, x2
	ldr	w2, [x2]
	cbz	w2, LBB0_7
; %bb.2:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_bio_alloc_bioset
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	stur	x22, [x20, #-8]
Lloh0:
	adrp	x8, _mddev_bio_destructor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mddev_bio_destructor@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	___bio_clone
	mov	x0, x21
	bl	_bio_integrity
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_bio_integrity_clone
	tbz	w0, #31, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_bio_put
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
	mov	x0, x21
	mov	x1, 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_clone
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mddev_bio_destructor,4,2       ; @mddev_bio_destructor
.subsections_via_symbols
