	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_bridge_port_create
_mlxsw_sp_bridge_port_create:           ## @mlxsw_sp_bridge_port_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_mlxsw_sp_port_dev_lower_find
	movq	8(%rax), %rcx
	movq	%rcx, 48(%rbx)
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movl	4(%rax), %eax
	movl	%eax, 44(%rbx)
	jmp	LBB0_4
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
LBB0_4:
	movq	%r15, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_BR_LEARNING@GOTPCREL(%rip), %rax
	movq	_BR_FLOOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_BR_LEARNING_SYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BR_MCAST_FLOOD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	callq	_list_add
	movl	$1, 4(%rbx)
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BR_STATE_DISABLED,4,2          ## @BR_STATE_DISABLED
	.comm	_BR_LEARNING,4,2                ## @BR_LEARNING
	.comm	_BR_FLOOD,4,2                   ## @BR_FLOOD
	.comm	_BR_LEARNING_SYNC,4,2           ## @BR_LEARNING_SYNC
	.comm	_BR_MCAST_FLOOD,4,2             ## @BR_MCAST_FLOOD
	.no_dead_strip	_mlxsw_sp_bridge_port_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_bridge_port_create
_mlxsw_sp_bridge_port_create:           ; @mlxsw_sp_bridge_port_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_mlxsw_sp_port_dev_lower_find
	ldr	x8, [x0, #8]
	str	x8, [x20, #48]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x0, #4]
	str	w8, [x20, #44]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x0]
	str	w8, [x20, #40]
LBB0_4:
	stp	x19, x21, [x20, #24]
Lloh3:
	adrp	x8, _BR_STATE_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BR_STATE_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh6:
	adrp	x8, _BR_LEARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BR_LEARNING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BR_FLOOD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BR_FLOOD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _BR_LEARNING_SYNC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BR_LEARNING_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _BR_MCAST_FLOOD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BR_MCAST_FLOOD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	add	x0, x20, #12
	bl	_INIT_LIST_HEAD
	add	x0, x20, #8
	mov	x1, x19
	bl	_list_add
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BR_STATE_DISABLED,4,2          ; @BR_STATE_DISABLED
	.comm	_BR_LEARNING,4,2                ; @BR_LEARNING
	.comm	_BR_FLOOD,4,2                   ; @BR_FLOOD
	.comm	_BR_LEARNING_SYNC,4,2           ; @BR_LEARNING_SYNC
	.comm	_BR_MCAST_FLOOD,4,2             ; @BR_MCAST_FLOOD
	.no_dead_strip	_mlxsw_sp_bridge_port_create
.subsections_via_symbols
