	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_allocate_ioq_vector     ## -- Begin function octeon_allocate_ioq_vector
	.p2align	4, 0x90
_octeon_allocate_ioq_vector:            ## @octeon_allocate_ioq_vector
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	shll	$5, %edi
	callq	_vzalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movl	%ebx, %r12d
	decq	%r12
	movl	$24, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, (%r15,%r13)
	movl	%ebx, -24(%r15,%r13)
	movl	%ebx, -20(%r15,%r13)
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, -8(%r15,%r13)
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %edi
	leaq	(%r15,%r13), %rsi
	addq	$-12, %rsi
	callq	_cpumask_set_cpu
	movq	(%r14), %rax
	movq	_OCTEON_CN23XX_PF_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14), %eax
	addl	%ebx, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, -16(%r15,%r13)
	cmpq	%rbx, %r12
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %r15
	addq	$32, %r13
	incq	%rbx
	jmp	LBB0_4
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_CN23XX_PF_VID,8,3       ## @OCTEON_CN23XX_PF_VID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_octeon_allocate_ioq_vector     ; -- Begin function octeon_allocate_ioq_vector
	.p2align	2
_octeon_allocate_ioq_vector:            ; @octeon_allocate_ioq_vector
	.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	x21, x1
	mov	x19, x0
	lsl	w0, w1, #5
	bl	_vzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x20, x0
	mov	x22, #0
	mov	x23, #0
	mov	w8, w21
	lsl	x8, x8, #5
	sub	x21, x8, #32
Lloh0:
	adrp	x24, _OCTEON_CN23XX_PF_VID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OCTEON_CN23XX_PF_VID@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x20, x22
	str	x19, [x25, #24]
	stp	w23, w23, [x25]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x23, lsl #2]
	str	w8, [x25, #16]
	bl	_num_online_cpus
	sdiv	w8, w23, w0
	msub	w0, w8, w0, w23
	add	x1, x25, #12
	bl	_cpumask_set_cpu
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, w23
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x23
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x20, x22
	str	w8, [x9, #8]
	cmp	x21, x22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x19, #24]
	add	x22, x22, #32
	add	x23, x23, #1
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_CN23XX_PF_VID,8,3       ; @OCTEON_CN23XX_PF_VID
.subsections_via_symbols
