	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid_map
_raid_map:                              ## @raid_map
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_bio_rw
	movq	_READA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_io_get
	movl	(%r14), %eax
	subl	%eax, (%r15)
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	12(%rbx), %rdi
	movq	%r15, %rsi
	callq	_bio_list_add
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_wake_do_raid
	movq	(%rbx), %r14
	movq	%r15, %rdi
	callq	_bio_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_S_BIOS_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_S_BIOS_WRITE@GOTPCREL(%rip), %rax
LBB0_5:
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READA,8,3                      ## @READA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_READ,8,3                       ## @READ
	.comm	_S_BIOS_READ,8,3                ## @S_BIOS_READ
	.comm	_S_BIOS_WRITE,8,3               ## @S_BIOS_WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.no_dead_strip	_raid_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid_map
_raid_map:                              ; @raid_map
	.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	x20, x0
	mov	x0, x1
	bl	_bio_rw
Lloh0:
	adrp	x8, _READA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x21, [x20, #8]
	mov	x0, x21
	bl	_io_get
	ldr	w8, [x20]
	ldr	w9, [x19]
	sub	w8, w9, w8
	str	w8, [x19]
	add	x20, x21, #8
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x21, #12
	mov	x1, x19
	bl	_bio_list_add
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	bl	_wake_do_raid
	ldr	x20, [x21]
	mov	x0, x19
	bl	_bio_data_dir
Lloh6:
	adrp	x8, _READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _S_BIOS_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_BIOS_READ@GOTPAGEOFF]
Lloh11:
	adrp	x10, _S_BIOS_WRITE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _S_BIOS_WRITE@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_atomic_inc
Lloh13:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_READA,8,3                      ; @READA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_READ,8,3                       ; @READ
	.comm	_S_BIOS_READ,8,3                ; @S_BIOS_READ
	.comm	_S_BIOS_WRITE,8,3               ; @S_BIOS_WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.no_dead_strip	_raid_map
.subsections_via_symbols
