	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_alloc_pbl_tbl
_qedr_alloc_pbl_tbl:                    ## @qedr_alloc_pbl_tbl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	(%rsi), %edi
	movl	$16, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	cmpl	$0, (%rbx)
	jle	LBB0_13
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-8(%rax), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	leaq	-52(%rbp), %rdx
	movl	%r13d, %ecx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 16(%r15)
	movl	-52(%rbp), %eax
	movl	%eax, 8(%r15)
	addq	$16, %r15
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_3
## %bb.9:
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	%rax, %rcx
	addq	$16, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	movl	%esi, (%rdi,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	decq	%rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	incq	%r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	movq	(%r15), %rdx
	movl	-8(%r15), %ecx
	movq	%r12, %rdi
	callq	_dma_free_coherent
	decq	%r14
	addq	$-16, %r15
	cmpq	$1, %r14
	jg	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_qedr_free_pbl
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	jmp	LBB0_13
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qedr_alloc_pbl_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_alloc_pbl_tbl
_qedr_alloc_pbl_tbl:                    ; @qedr_alloc_pbl_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	w0, [x1]
	mov	w1, #16
	bl	_kcalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x25, #0
	sub	x24, x19, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #4]
	add	x2, sp, #12
	mov	x0, x22
	mov	x3, x23
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [x24, #16]!
	ldr	w8, [sp, #12]
	stur	w8, [x24, #-8]
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.lt	LBB0_3
; %bb.5:
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.6:
	mov	x10, #0
	ldr	x8, [x19, #8]
	mov	w9, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x19, x9]
	str	w11, [x8, x10, lsl #2]
	add	x11, x10, #1
	ldrsw	x10, [x20]
	sub	x12, x10, #1
	add	x9, x9, #16
	mov	x10, x11
	cmp	x11, x12
	b.lt	LBB0_7
	b	LBB0_13
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_9:
	cbz	w25, LBB0_12
; %bb.10:
	add	x23, x25, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #4]
	ldr	x2, [x24]
	ldur	w3, [x24, #-8]
	mov	x0, x22
	bl	_dma_free_coherent
	sub	x23, x23, #1
	sub	x24, x24, #16
	cmp	x23, #1
	b.gt	LBB0_11
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_qedr_free_pbl
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qedr_alloc_pbl_tbl
.subsections_via_symbols
