	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pbl_3hop_alloc
_pbl_3hop_alloc:                        ## @pbl_3hop_alloc
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leal	7(%r15), %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
	sarl	$3, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leal	(%rsi,%r13), %eax
	decl	%eax
	cltd
	idivl	%r13d
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%r12), %edx
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movl	$8, %esi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_kcalloc
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, 16(%r8)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movl	$0, %ecx
	movl	$0, %r13d
	cmpl	$8, %r15d
	jl	LBB0_16
## %bb.3:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	shll	$3, %r12d
	leal	(,%rax,8), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	(,%rbx,8), %rdx
	addq	32(%r8), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %esi
	callq	_dma_alloc_coherent
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	24(%r8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	24(%r8), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r8), %rax
	movq	40(%r8), %rcx
	movq	(%rax,%rbx,8), %rax
	movl	%ebx, %edx
	imull	%r15d, %edx
	leal	7(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx,%rbx,8)
	sarl	$3, %esi
	movq	%r12, %rcx
	movslq	%esi, %rsi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	imull	%esi, %eax
	movl	%ecx, %r15d
	subl	%eax, %r15d
	shlq	$3, %rsi
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	xorl	%r13d, %r13d
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leal	(%rcx,%r13), %ebx
	incl	%ebx
	cmpl	%r12d, %ebx
	movl	%r15d, %esi
	cmovll	-112(%rbp), %esi                ## 4-byte Folded Reload
	movq	8(%r8), %rdx
	addq	%r14, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_dma_alloc_coherent
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	16(%r8), %rcx
	addq	%rsi, %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	16(%r8), %rax
	addq	%rsi, %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r8), %rax
	addq	%rsi, %rax
	movq	(%rax,%r13,8), %rax
	movq	24(%r8), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%r13,8)
	cmpl	%r12d, %ebx
	jge	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r13
	subl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	addq	$8, %r14
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	addl	%r13d, %r14d
	cmpq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_4
## %bb.15:
	movl	%r13d, %ecx
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_11:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r8, %rsi
	movl	$2, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r13d, %r8d
LBB0_6:
	callq	_hns_roce_loop_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	callq	_kfree
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	$0, 16(%r8)
LBB0_7:
	movq	8(%r8), %rdi
	movq	%r8, %rbx
	callq	_kfree
	movq	$0, 8(%rbx)
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_18:
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_16:
	incl	%ecx
	movl	%ecx, (%r8)
	incl	%r13d
	movl	%r13d, 4(%r8)
LBB0_17:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r8, %rsi
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pbl_3hop_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pbl_3hop_alloc
_pbl_3hop_alloc:                        ; @pbl_3hop_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x19, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	add	w8, w3, #7
	cmp	w3, #0
	csel	w8, w8, w3, lt
	asr	w26, w8, #3
	add	w8, w1, w26
	sub	w8, w8, #1
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	sdiv	w23, w8, w26
	mov	x0, x23
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_15
; %bb.1:
	ldr	w2, [x22]
	mov	x0, x23
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.2:
	cmp	w21, #8
	b.lt	LBB0_11
; %bb.3:
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x24, #0
	mov	w27, #0
	lsl	w28, w25, #3
	lsl	w8, w26, #3
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x19, #32]
	lsl	x20, x24, #3
	add	x2, x8, x20
	ldr	w3, [x22]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_dma_alloc_coherent
	ldr	x8, [x19, #24]
	str	x0, [x8, x20]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x20]
	cbz	x8, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	ldp	x8, x9, [x19, #32]
	ldr	x8, [x8, x20]
	str	x8, [x9, x20]
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	mul	w8, w24, w21
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	msub	w20, w9, w8, w28
	sbfiz	x22, x8, #3, #32
	str	w27, [sp, #24]                  ; 4-byte Folded Spill
	mov	w28, w27
	mov	x27, x22
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w28, w25
	add	w24, w8, #1
	cmp	w24, w23
	csel	w1, w21, w20, lt
	ldr	x8, [x19, #8]
	add	x2, x8, x27
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_dma_alloc_coherent
	ldr	x8, [x19, #16]
	add	x9, x8, x22
	lsl	x8, x25, #3
	str	x0, [x9, x8]
	ldr	x9, [x19, #16]
	add	x9, x9, x22
	ldr	x9, [x9, x8]
	cbz	x9, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [x19, #8]
	add	x9, x9, x22
	ldr	x9, [x9, x8]
	ldr	x10, [x19, #24]
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x10, [x10, x11, lsl #3]
	str	x9, [x10, x8]
	cmp	w24, w23
	b.ge	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	sub	w20, w20, w8
	add	x27, x27, #8
	cmp	x26, x25
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	add	x24, x24, #1
	ldr	w27, [sp, #24]                  ; 4-byte Folded Reload
	add	w27, w27, w25
	cmp	x24, x26
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	b.ne	LBB0_4
; %bb.10:
	mov	x25, x26
	b	LBB0_17
LBB0_11:
	mov	w26, #0
	mov	w25, #0
	b	LBB0_17
LBB0_12:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #2
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x25
LBB0_13:
	bl	_hns_roce_loop_free
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_15:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_16:
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
LBB0_17:
	mov	w0, #0
	add	w8, w26, #1
	add	w9, w25, #1
	stp	w8, w9, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #1
	mov	x3, x24
	mov	w4, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pbl_3hop_alloc
.subsections_via_symbols
