	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_ptt_pool_alloc             ## -- Begin function qed_ptt_pool_alloc
	.p2align	4, 0x90
_qed_ptt_pool_alloc:                    ## @qed_ptt_pool_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	_PXP_EXTERNAL_BAR_PF_WINDOW_NUM@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_7
## %bb.3:
	movl	$24, %ebx
	xorl	%r12d, %r12d
	movq	_QED_BAR_INVALID_OFFSET@GOTPCREL(%rip), %rsi
	movq	_RESERVED_PTT_MAX@GOTPCREL(%rip), %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%rdx), %rax
	addq	$32, %rbx
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	%r12d, -24(%rax,%rbx)
	movl	(%rsi), %ecx
	movl	%ecx, (%rax,%rbx)
	movq	$0, -8(%rax,%rbx)
	movl	8(%r14), %ecx
	movl	%ecx, -16(%rax,%rbx)
	movslq	(%rdi), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%rbx), %rdi
	addq	$-20, %rdi
	movq	%rsi, %r14
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, %r15
	callq	_list_add
	movq	_RESERVED_PTT_MAX@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdx
	jmp	LBB0_6
LBB0_7:
	movq	%r13, (%r14)
	movq	%r13, %rdi
	callq	_spin_lock_init
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %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
	.comm	_PXP_EXTERNAL_BAR_PF_WINDOW_NUM,4,2 ## @PXP_EXTERNAL_BAR_PF_WINDOW_NUM
	.comm	_QED_BAR_INVALID_OFFSET,4,2     ## @QED_BAR_INVALID_OFFSET
	.comm	_RESERVED_PTT_MAX,4,2           ## @RESERVED_PTT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_ptt_pool_alloc             ; -- Begin function qed_ptt_pool_alloc
	.p2align	2
_qed_ptt_pool_alloc:                    ; @qed_ptt_pool_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x22, _PXP_EXTERNAL_BAR_PF_WINDOW_NUM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PXP_EXTERNAL_BAR_PF_WINDOW_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _QED_BAR_INVALID_OFFSET@GOTPAGE
Lloh6:
	ldr	x25, [x25, _QED_BAR_INVALID_OFFSET@GOTPAGEOFF]
Lloh7:
	adrp	x26, _RESERVED_PTT_MAX@GOTPAGE
Lloh8:
	ldr	x26, [x26, _RESERVED_PTT_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #32
	cmp	x24, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	str	w24, [x8]
	ldr	w9, [x25]
	str	w9, [x8, #24]
	str	xzr, [x8, #16]
	ldr	w9, [x19, #8]
	str	w9, [x8, #8]
	ldrsw	x9, [x26]
	cmp	x24, x9
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x8, #4
	mov	x1, x21
	bl	_list_add
	b	LBB0_3
LBB0_6:
	str	x20, [x19]
	mov	x0, x20
	bl	_spin_lock_init
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PXP_EXTERNAL_BAR_PF_WINDOW_NUM,4,2 ; @PXP_EXTERNAL_BAR_PF_WINDOW_NUM
	.comm	_QED_BAR_INVALID_OFFSET,4,2     ; @QED_BAR_INVALID_OFFSET
	.comm	_RESERVED_PTT_MAX,4,2           ; @RESERVED_PTT_MAX
.subsections_via_symbols
