	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sib_ports_create
_mlxsw_sib_ports_create:                ## @mlxsw_sib_ports_create
	.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
	movq	%rdi, %r13
	movq	_MLXSW_PORT_MAX_IB_PORTS@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdi
	shlq	$3, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	xorl	%r12d, %r12d
	cmpl	$2, (%r15)
	jl	LBB0_13
## %bb.2:
	movl	$2, %r14d
	leaq	-44(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r14), %eax
	cmpl	(%r15), %r14d
	movl	%eax, %r14d
	jge	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r14), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rcx
	callq	_mlxsw_sib_port_module_info_get
	testl	%eax, %eax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_sib_port_create
	testl	%eax, %eax
	je	LBB0_11
LBB0_4:
	movl	%eax, %r12d
	cmpl	$2, %ebx
	jae	LBB0_5
LBB0_8:
	movl	(%r13), %edi
	callq	_kfree
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r14d
	cmpl	$2, %r14d
	jle	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_sib_port_created
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_sib_port_remove
	jmp	LBB0_7
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_PORT_MAX_IB_PORTS,4,2    ## @MLXSW_PORT_MAX_IB_PORTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlxsw_sib_ports_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sib_ports_create
_mlxsw_sib_ports_create:                ; @mlxsw_sib_ports_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _MLXSW_PORT_MAX_IB_PORTS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MLXSW_PORT_MAX_IB_PORTS@GOTPAGEOFF]
	ldrsw	x8, [x23]
	lsl	x0, x8, #3
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	str	w0, [x19]
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.2:
	mov	w22, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	add	w9, w22, #1
	cmp	w22, w8
	mov	x22, x9
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w22, #1
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sib_port_module_info_get
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [sp, #8]
	cbz	w3, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sib_port_create
	cbz	w0, LBB0_3
LBB0_7:
	mov	x20, x0
	cmp	w21, #2
	b.hs	LBB0_10
LBB0_8:
	ldr	w0, [x19]
	bl	_kfree
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w22, w22, #1
	cmp	w22, #2
	b.le	LBB0_8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w22, #2
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sib_port_created
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sib_port_remove
	b	LBB0_9
LBB0_12:
	mov	w20, #0
	b	LBB0_14
LBB0_13:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_PORT_MAX_IB_PORTS,4,2    ; @MLXSW_PORT_MAX_IB_PORTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlxsw_sib_ports_create
.subsections_via_symbols
