	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pbl_indirect_initialize
_pbl_indirect_initialize:               ## @pbl_indirect_initialize
	.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, %rbx
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
	movq	_EFA_CHUNK_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_BUILD_BUG_ON
	movl	28(%rbx), %edi
	movl	%r15d, %esi
	callq	_efa_vmalloc_buf_to_sg
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%r14), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_dma_map_sg
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%r15d, 16(%rbx)
	movq	%r12, 8(%rbx)
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pbl_chunk_list_create
	leaq	8(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	(%r14), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_dma_unmap_sg
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_8:
	movl	4(%rbx), %ecx
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ibdev_dbg
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EFA_CHUNK_PAYLOAD_SIZE,8,3     ## @EFA_CHUNK_PAYLOAD_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chunk_list creation failed[%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"pbl indirect - size[%u], chunks[%u]\n"

	.no_dead_strip	_pbl_indirect_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pbl_indirect_initialize
_pbl_indirect_initialize:               ; @pbl_indirect_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
Lloh0:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_DIV_ROUND_UP
	mov	x21, x0
Lloh2:
	adrp	x8, _EFA_CHUNK_PAYLOAD_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFA_CHUNK_PAYLOAD_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, gt
	bl	_BUILD_BUG_ON
	ldr	w0, [x22, #28]
	mov	x1, x21
	bl	_efa_vmalloc_buf_to_sg
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
Lloh5:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x1, x20
	mov	x2, x21
	bl	_dma_map_sg
	cbz	w0, LBB0_5
; %bb.2:
	str	w21, [x22, #16]
	str	x20, [x22, #8]
	str	w0, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_pbl_chunk_list_create
	mov	x23, x0
	add	x0, x19, #8
	cbz	w23, LBB0_7
; %bb.3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_ibdev_dbg
	ldr	x0, [x19]
	ldr	w3, [x24]
	mov	x1, x20
	mov	x2, x21
	bl	_dma_unmap_sg
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_7:
	ldr	w2, [x22, #24]
	ldr	w8, [x22, #4]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ibdev_dbg
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EFA_CHUNK_PAYLOAD_SIZE,8,3     ; @EFA_CHUNK_PAYLOAD_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chunk_list creation failed[%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"pbl indirect - size[%u], chunks[%u]\n"

	.no_dead_strip	_pbl_indirect_initialize
.subsections_via_symbols
