	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_sb_tc_pool_bind_set   ## -- Begin function mlxsw_sp_sb_tc_pool_bind_set
	.p2align	4, 0x90
_mlxsw_sp_sb_tc_pool_bind_set:          ## @mlxsw_sp_sb_tc_pool_bind_set
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	16(%rbp), %r15
	callq	_mlxsw_core_port_driver_priv
	movq	(%rax), %r13
	movq	_MLXSW_PORT_CPU_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movq	(%rbx), %rax
	movq	16(%rax), %rcx
	cmpl	%r14d, (%rcx,%r12,4)
	jne	LBB0_4
## %bb.5:
	movq	_MLXSW_REG_SBXX_DIR_INGRESS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r14d, (%rcx)
	sete	%dl
	movq	(%rax,%rdx,8), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	shlq	$5, %rcx
	cmpq	$0, 24(%rax,%rcx)
	je	LBB0_8
## %bb.6:
	cmpq	%r12, (%rax,%rcx)
	jne	LBB0_7
LBB0_8:
	cmpq	$0, 16(%rax,%rcx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_11
## %bb.9:
	cmpq	%rdx, 8(%rax,%rcx)
	jne	LBB0_10
LBB0_11:
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	callq	_mlxsw_sp_sb_threshold_in
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	-64(%rbp), %r8
	movq	%r12, (%rsp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_mlxsw_sp_sb_cm_write
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_PORT_CPU_PORT,8,3        ## @MLXSW_PORT_CPU_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing CPU port's binding is forbidden"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Binding egress TC to ingress pool and vice versa is forbidden"

	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,4,2 ## @MLXSW_REG_SBXX_DIR_INGRESS
L_.str.2:                               ## @.str.2
	.asciz	"Binding this TC to a different pool is forbidden"

L_.str.3:                               ## @.str.3
	.asciz	"Changing this TC's threshold is forbidden"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_sb_tc_pool_bind_set   ; -- Begin function mlxsw_sp_sb_tc_pool_bind_set
	.p2align	2
_mlxsw_sp_sb_tc_pool_bind_set:          ; @mlxsw_sp_sb_tc_pool_bind_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x6
	mov	x23, x5
	mov	x19, x4
	mov	x25, x3
	mov	x21, x2
	bl	_mlxsw_core_port_driver_priv
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _MLXSW_PORT_CPU_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_PORT_CPU_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
	ldr	x24, [x0, #8]
	ldr	x8, [x24]
	ldr	x9, [x8, #16]
	ldr	w9, [x9, x19, lsl #2]
	cmp	w9, w25
	b.ne	LBB0_9
; %bb.3:
Lloh5:
	adrp	x9, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w25
	cset	w9, eq
	ldr	x8, [x8, w9, uxtw #3]
	add	x9, x8, x21, lsl #5
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_5
; %bb.4:
	lsl	x10, x21, #5
	ldr	x10, [x8, x10]
	cmp	x10, x19
	b.ne	LBB0_10
LBB0_5:
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_7
; %bb.6:
	add	x8, x8, x21, lsl #5
	ldr	x8, [x8, #8]
	cmp	x8, x23
	b.ne	LBB0_11
LBB0_7:
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x4, x20
	bl	_mlxsw_sp_sb_threshold_in
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	x4, [sp, #8]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	mov	w5, #0
	mov	x6, x19
	bl	_mlxsw_sp_sb_cm_write
	b	LBB0_13
LBB0_9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_PORT_CPU_PORT,8,3        ; @MLXSW_PORT_CPU_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing CPU port's binding is forbidden"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Binding egress TC to ingress pool and vice versa is forbidden"

	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,4,2 ; @MLXSW_REG_SBXX_DIR_INGRESS
l_.str.2:                               ; @.str.2
	.asciz	"Binding this TC to a different pool is forbidden"

l_.str.3:                               ; @.str.3
	.asciz	"Changing this TC's threshold is forbidden"

.subsections_via_symbols
