	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_chain_alloc_pbl
_qed_chain_alloc_pbl:                   ## @qed_chain_alloc_pbl
	.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
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	leal	(,%r12,8), %edi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	8(%r13), %r14
	movl	(%r13), %edx
	movl	%edx, -44(%rbp)
	movl	$1, 4(%r15)
	jmp	LBB0_5
LBB0_3:
	movq	_QED_CHAIN_PBL_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%r12d, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	callq	_dma_alloc_coherent
	movq	%rax, %r14
	movl	-44(%rbp), %edx
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_qed_chain_init_pbl_mem
	testq	%r14, %r14
	je	LBB0_1
## %bb.6:
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.7:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	movq	8(%r15), %rax
	movq	%rbx, (%rax,%r13,8)
	movq	_QED_CHAIN_PBL_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %r14
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_QED_CHAIN_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
	testq	%r13, %r13
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qed_chain_init_mem
	movq	%r15, %rdi
	callq	_qed_chain_reset
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
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
	.comm	_QED_CHAIN_PBL_ENTRY_SIZE,4,2   ## @QED_CHAIN_PBL_ENTRY_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_QED_CHAIN_PAGE_SIZE,4,2        ## @QED_CHAIN_PAGE_SIZE
	.no_dead_strip	_qed_chain_alloc_pbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_chain_alloc_pbl
_qed_chain_alloc_pbl:                   ; @qed_chain_alloc_pbl
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w24, [x1]
	str	xzr, [sp, #8]
	lsl	w0, w24, #3
	bl	_vzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x0
	cbz	x23, LBB0_3
; %bb.2:
	ldr	x21, [x23, #8]
	ldr	w2, [x23]
	str	w2, [sp, #8]
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _QED_CHAIN_PBL_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_CHAIN_PBL_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w1, w8, w24
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x2, sp, #8
	bl	_dma_alloc_coherent
	mov	x21, x0
	ldr	w2, [sp, #8]
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_qed_chain_init_pbl_mem
	cbz	x21, LBB0_11
; %bb.5:
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x23, #0
	lsl	x24, x24, #3
Lloh6:
	adrp	x25, _QED_CHAIN_PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _QED_CHAIN_PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	adrp	x27, _QED_CHAIN_PBL_ENTRY_SIZE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _QED_CHAIN_PBL_ENTRY_SIZE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x21]
	ldr	x8, [x19, #8]
	str	x22, [x8, x23]
	ldrsw	x8, [x27]
	add	x21, x21, x8, lsl #2
	add	x23, x23, #8
	cmp	x24, x23
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w1, [x25]
	ldr	w3, [x26]
	add	x2, sp, #12
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	cbnz	x23, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_qed_chain_init_mem
	mov	x0, x19
	bl	_qed_chain_reset
	b	LBB0_7
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QED_CHAIN_PBL_ENTRY_SIZE,4,2   ; @QED_CHAIN_PBL_ENTRY_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_QED_CHAIN_PAGE_SIZE,4,2        ; @QED_CHAIN_PAGE_SIZE
	.no_dead_strip	_qed_chain_alloc_pbl
.subsections_via_symbols
