	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_pci_queue_group_init
_mlxsw_pci_queue_group_init:            ## @mlxsw_pci_queue_group_init
	.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	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdx), %esi
	callq	_mlxsw_pci_queue_type_group_get
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_mlxsw_pci_queue_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	%r12, %r13
	movb	$1, %dl
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_10:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(,%rbx,4), %rcx
	addq	8(%r12), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_mlxsw_pci_queue_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	%r12, %r13
	testl	%ebx, %ebx
	sete	%dl
LBB0_6:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testb	%dl, %dl
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rax
	leaq	-4(,%rbx,4), %r14
	incq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movq	%rax, %r12
	movq	%rax, %rsi
	callq	_mlxsw_pci_queue_fini
	movq	%r12, %rax
	decq	%rbx
	addq	$-4, %r14
	cmpq	$1, %rbx
	jg	LBB0_8
LBB0_9:
	movq	8(%r13), %rdi
	callq	_kfree
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	xorl	%eax, %eax
LBB0_14:
	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
	.no_dead_strip	_mlxsw_pci_queue_group_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_pci_queue_group_init
_mlxsw_pci_queue_group_init:            ; @mlxsw_pci_queue_group_init
	.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	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w1, [x2]
	bl	_mlxsw_pci_queue_type_group_get
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w23, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x3, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	w4, #0
	bl	_mlxsw_pci_queue_init
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x25, #0
	mov	w8, #1
	tbz	w8, #0, LBB0_9
	b	LBB0_11
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_5:
	mov	x25, #0
	mov	w26, w23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x25, #1
	cmp	x25, x26
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	add	x3, x8, x25, lsl #2
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x4, x25
	bl	_mlxsw_pci_queue_init
	cbz	w0, LBB0_6
; %bb.8:
	mov	x22, x0
	cmp	w25, #0
	cset	w8, eq
	tbnz	w8, #0, LBB0_11
LBB0_9:
	add	x23, x25, #1
	lsl	x8, x25, #2
	sub	x24, x8, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x2, x8, x24
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_pci_queue_fini
	sub	x23, x23, #1
	sub	x24, x24, #4
	cmp	x23, #1
	b.gt	LBB0_10
LBB0_11:
	ldr	x0, [x21, #8]
	bl	_kfree
	b	LBB0_13
LBB0_12:
	mov	w22, #0
	str	w23, [x21]
LBB0_13:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlxsw_pci_queue_group_init
.subsections_via_symbols
