	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_integrity_alloc_journal_scatterlist
_dm_integrity_alloc_journal_scatterlist: ## @dm_integrity_alloc_journal_scatterlist
	.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	$40, %rsp
	.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, %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movl	$8, %esi
	callq	_kvmalloc_array
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, (%rbx,%r12,8)
	incq	%r12
	movl	(%r14), %eax
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_page_list_location
	movq	8(%r14), %rdx
	decq	%rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	leaq	-44(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_page_list_location
	movl	-44(%rbp), %r14d
	subl	-48(%rbp), %r14d
	incl	%r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kvmalloc_array
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_sg_init_table
	movl	-48(%rbp), %ebx
	cmpl	-44(%rbp), %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_9
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	leaq	(,%rdi,4), %rdi
	addq	%r13, %rdi
	addq	%rsi, %rax
	subl	%esi, %edx
	movq	%rax, %rsi
	callq	_sg_set_buf
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	ja	LBB0_3
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	movl	(%r15,%rax,4), %edi
	callq	_lowmem_page_address
	movl	%ebx, %edi
	subl	-48(%rbp), %edi
	movl	-56(%rbp), %esi
	movl	$0, %ecx
	cmovnel	%ecx, %esi
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	cmpl	-44(%rbp), %ebx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	addl	-52(%rbp), %edx
	jmp	LBB0_12
LBB0_5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_dm_integrity_free_journal_scatterlist
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.no_dead_strip	_dm_integrity_alloc_journal_scatterlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_integrity_alloc_journal_scatterlist
_dm_integrity_alloc_journal_scatterlist: ; @dm_integrity_alloc_journal_scatterlist
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x0]
	ldr	w8, [x25]
Lloh2:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #8
	bl	_kvmalloc_array
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x22, #0
Lloh5:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _SECTOR_SHIFT@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SECTOR_SHIFT@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [x19, x22, lsl #3]
	add	x22, x22, #1
	ldr	w8, [x20]
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	bl	_page_list_location
	ldr	x8, [x20, #8]
	sub	x2, x8, #1
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x20
	mov	x1, x22
	bl	_page_list_location
	ldr	w8, [sp, #4]
	ldr	w9, [sp, #12]
	sub	w8, w8, w9
	add	w24, w8, #1
	ldr	w2, [x25]
	mov	x0, x24
	mov	w1, #4
	bl	_kvmalloc_array
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	x1, x24
	bl	_sg_init_table
	ldr	w24, [sp, #12]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [sp, #4]
	cmp	w24, w8
	b.hi	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x21, w24, uxtw #2]
	bl	_lowmem_page_address
	ldr	w8, [x26]
	ldp	w10, w9, [sp, #8]
	subs	w9, w24, w9
	csel	w10, w10, wzr, eq
	ldp	w12, w11, [sp]
	ldr	w13, [x27]
	lsl	w13, w28, w13
	add	w12, w13, w12
	cmp	w24, w11
	csel	w11, w12, w8, eq
	add	x8, x23, w9, uxtw #2
	add	x1, x0, x10
	sub	w2, w11, w10
	mov	x0, x8
	bl	_sg_set_buf
	add	w24, w24, #1
	b	LBB0_6
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_dm_integrity_free_journal_scatterlist
	mov	x19, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.no_dead_strip	_dm_integrity_alloc_journal_scatterlist
.subsections_via_symbols
