	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pbl_2hop_alloc
_pbl_2hop_alloc:                        ## @pbl_2hop_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	leal	7(%rcx), %r9d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r9d
	movq	%rdx, %r14
	movl	%esi, %ebx
	sarl	$3, %r9d
	leal	(%rbx,%r9), %eax
	decl	%eax
	cltd
	idivl	%r9d
	movl	%eax, %esi
	xorl	%r15d, %r15d
	movl	$0, %eax
	cmpl	$8, %ecx
	jl	LBB0_8
## %bb.1:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$2, %esi
	movl	$1, %eax
	cmovgel	%esi, %eax
	decl	%eax
	movl	%r9d, %edi
	movq	8(%r14), %rdx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	shll	$3, %ebx
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	leal	(,%r9,8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	shlq	$2, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %r15d
	cmpl	%r15d, %esi
	movl	%ebx, %esi
	movq	%rcx, %r13
	cmovgl	%ecx, %esi
	addq	%r12, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_dma_alloc_coherent
	movq	24(%r14), %rcx
	movl	%eax, (%rcx,%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdx
	movq	16(%r14), %rax
	movl	(%rdx,%r12), %ecx
	movl	%ecx, (%rax,%r12)
	cmpq	%r12, -96(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r12
	subl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r15d, %eax
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	movq	%r13, %rcx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_2
## %bb.7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_3:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$1, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	_hns_roce_loop_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_8:
	incl	%eax
	movl	%eax, (%r14)
LBB0_9:
	movl	%r15d, %eax
	addq	$72, %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	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pbl_2hop_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pbl_2hop_alloc
_pbl_2hop_alloc:                        ; @pbl_2hop_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	add	w8, w3, #7
	cmp	w3, #0
	csel	w8, w8, w3, lt
	cmp	w3, #8
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x3
	mov	x24, #0
	mov	w22, #0
	ldr	x23, [x0]
	asr	w9, w8, #3
	add	w8, w1, w9
	sub	w8, w8, #1
	sdiv	w27, w8, w9
	cmp	w27, #1
	csinc	w8, w27, wzr, gt
	sub	w10, w8, #1
	ldr	x8, [x19, #8]
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	lsl	x28, x10, #2
	lsl	w20, w1, #3
	lsl	w26, w9, #3
	stp	x9, x0, [sp, #16]               ; 16-byte Folded Spill
	lsl	x25, x9, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w22, #1
	cmp	w27, w9
	csel	w1, w21, w20, gt
	add	x2, x8, x24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x23
	bl	_dma_alloc_coherent
	ldr	x8, [x19, #24]
	str	w0, [x8, x24]
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x19, #8]
	ldr	w10, [x8, x24]
	str	w10, [x9, x24]
	cmp	x28, x24
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	add	x24, x24, #4
	sub	w20, w20, w26
	cmp	x25, x24
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_9
LBB0_6:
	mov	w8, #0
	b	LBB0_9
LBB0_7:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #1
	mov	x3, x22
	mov	w4, #0
	bl	_hns_roce_loop_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
LBB0_9:
	mov	w0, #0
	add	w8, w8, #1
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pbl_2hop_alloc
.subsections_via_symbols
