	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_integrity_rw_tag
_dm_integrity_rw_tag:                   ## @dm_integrity_rw_tag
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %eax
	addq	%rax, %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%r13d, %eax
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	je	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, %r14d
	movq	%r15, %rdi
	callq	_dm_integrity_failed
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_dm_bufio_read
	movq	%r15, %rbx
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	movzbl	(%rbx), %ecx
	shll	%cl, %edi
	movq	%r12, %rbx
	subl	(%r12), %edi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %r13d
	movl	(%r12), %eax
	addq	%rax, %r15
	movq	_TAG_READ@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TAG_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-64(%rbp), %rdi
	movl	(%r12), %esi
	leal	(%rsi,%r13), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dm_bufio_mark_partial_buffer_dirty
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcmp
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi
	callq	_dm_bufio_release
	movl	(%r12), %eax
	addl	%r13d, %eax
	movl	%eax, (%r12)
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movzbl	(%r15), %ecx
	shll	%cl, %edx
	xorl	%edi, %edi
	cmpl	%edx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movl	$0, (%r12)
	jmp	LBB0_11
LBB0_2:
	movl	%ebx, %r12d
	jmp	LBB0_21
LBB0_4:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_21
LBB0_12:
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_14:
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.16:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %eax
	subl	%r13d, %eax
	movl	%r13d, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rdx), %ebx
	cmpb	(%r14,%rdx), %bl
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	decl	%r12d
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_17
## %bb.19:
	movl	%eax, %r12d
	jmp	LBB0_20
LBB0_15:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_20:
	movq	-64(%rbp), %rdi
	callq	_dm_bufio_release
LBB0_21:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_TAG_READ,4,2                   ## @TAG_READ
	.comm	_TAG_WRITE,4,2                  ## @TAG_WRITE
	.no_dead_strip	_dm_integrity_rw_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_integrity_rw_tag
_dm_integrity_rw_tag:                   ; @dm_integrity_rw_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x27, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SECTOR_SHIFT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, w25, uxtw
	sub	w19, w19, w25
	mov	x0, x19
	bl	_unlikely
	cbz	x0, LBB0_13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_dm_integrity_failed
	mov	x25, x0
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24, #4]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_dm_bufio_read
	mov	x26, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x27
	ldr	w8, [x27]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x24]
	lsl	w8, w8, w9
	ldr	w9, [x22]
	sub	w0, w8, w9
	mov	x1, x19
	bl	_min
	mov	x25, x0
	ldr	w27, [x22]
	add	x1, x26, x27
Lloh2:
	adrp	x8, _TAG_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TAG_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x2, x25
	bl	_memcpy
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x8, _TAG_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TAG_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x20
	mov	x2, x25
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_memcpy
	ldr	x0, [sp, #8]
	ldr	w1, [x22]
	add	w2, w1, w25
	bl	_dm_bufio_mark_partial_buffer_dirty
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_memcmp
	bl	_unlikely
	cbnz	x0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	bl	_dm_bufio_release
	ldr	w8, [x22]
	add	w8, w8, w25
	str	w8, [x22]
	mov	x27, x28
	ldr	w9, [x28]
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	w10, [x24]
	lsl	w9, w9, w10
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	str	wzr, [x22]
	b	LBB0_1
LBB0_11:
	mov	x19, x25
	b	LBB0_20
LBB0_12:
	mov	x0, x26
	bl	_PTR_ERR
	mov	x19, x0
	b	LBB0_20
LBB0_13:
	mov	w19, #0
	b	LBB0_20
LBB0_14:
	cbz	w25, LBB0_19
; %bb.15:
	sub	w8, w19, w25
	mov	w9, w25
	add	x10, x26, x27
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10]
	ldrb	w12, [x20]
	cmp	w11, w12
	b.ne	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w19, w19, #1
	add	x10, x10, #1
	add	x20, x20, #1
	subs	x9, x9, #1
	b.ne	LBB0_16
; %bb.18:
	mov	x19, x8
LBB0_19:
	ldr	x0, [sp, #8]
	bl	_dm_bufio_release
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_TAG_READ,4,2                   ; @TAG_READ
	.comm	_TAG_WRITE,4,2                  ; @TAG_WRITE
	.no_dead_strip	_dm_integrity_rw_tag
.subsections_via_symbols
