	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verity_map
_verity_map:                            ## @verity_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	%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, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bio_set_dev
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_verity_map_sector
	movl	%eax, %ebx
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_bio_sectors
	movl	(%r14), %ecx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %r13
	subl	(%r13), %ecx
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%ebx, %eax
	notl	%edx
	testl	%edx, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_bio_end_sector
	movl	(%r14), %ecx
	subl	(%r13), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	cmpl	4(%r14), %eax
	jle	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_DMERR_LIMIT
LBB0_5:
	movq	_DM_MAPIO_KILL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.9:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_dm_per_bio_data
	movq	%rax, %r15
	movq	%r14, 24(%rax)
	movl	16(%r12), %eax
	movl	%eax, 16(%r15)
	movl	(%r12), %edx
	movl	(%r14), %eax
	movl	%eax, %ecx
	subl	(%r13), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	movl	%edx, (%r15)
	movl	4(%r12), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, 4(%r15)
	movq	_verity_end_io@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r15, 8(%r12)
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_verity_fec_init_io
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_verity_submit_prefetch
	movq	%r12, %rdi
	callq	_generic_make_request
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unaligned io"

	.comm	_DM_MAPIO_KILL,4,2              ## @DM_MAPIO_KILL
L_.str.1:                               ## @.str.1
	.asciz	"io out of range"

	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_verity_end_io,4,2              ## @verity_end_io
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.no_dead_strip	_verity_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verity_map
_verity_map:                            ; @verity_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	x21, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bio_set_dev
	ldr	w1, [x19]
	mov	x0, x20
	bl	_verity_map_sector
	mov	x22, x0
	str	w0, [x19]
	mov	x0, x19
	bl	_bio_sectors
	orr	w8, w0, w22
Lloh0:
	adrp	x22, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SECTOR_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	w10, [x22]
	sub	w9, w9, w10
	mov	w10, #-1
	lsl	w9, w10, w9
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_bio_end_sector
	ldr	w8, [x22]
	ldp	w9, w10, [x20]
	sub	w8, w9, w8
	asr	w8, w0, w8
	cmp	w8, w10
	b.le	LBB0_7
; %bb.3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_DMERR_LIMIT
LBB0_5:
Lloh6:
	adrp	x8, _DM_MAPIO_KILL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DM_MAPIO_KILL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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, x19
	bl	_bio_data_dir
Lloh8:
	adrp	x8, _WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dm_per_bio_data
	mov	x21, x0
	ldr	w8, [x19, #16]
	str	w8, [x0, #16]
	ldr	w8, [x20]
	ldr	w9, [x22]
	sub	w9, w8, w9
	ldp	w10, w11, [x19]
	asr	w9, w10, w9
	str	x20, [x0, #24]
	asr	w8, w11, w8
Lloh11:
	adrp	x10, _verity_end_io@GOTPAGE
Lloh12:
	ldr	x10, [x10, _verity_end_io@GOTPAGEOFF]
	stp	w9, w8, [x0]
Lloh13:
	ldr	w8, [x10]
	str	w8, [x19, #16]
	str	x0, [x19, #8]
	ldr	x8, [x19]
	str	x8, [x0, #8]
	bl	_verity_fec_init_io
	mov	x0, x20
	mov	x1, x21
	bl	_verity_submit_prefetch
	mov	x0, x19
	bl	_generic_make_request
Lloh14:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unaligned io"

	.comm	_DM_MAPIO_KILL,4,2              ; @DM_MAPIO_KILL
l_.str.1:                               ; @.str.1
	.asciz	"io out of range"

	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_verity_end_io,4,2              ; @verity_end_io
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.no_dead_strip	_verity_map
.subsections_via_symbols
