	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_dcb_toggle_trust
_mlxsw_sp_port_dcb_toggle_trust:        ## @mlxsw_sp_port_dcb_toggle_trust
	.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	_MLXSW_REG_QPTS_TRUST_STATE_DSCP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%esi, (%rax)
	sete	%r13b
	xorl	%ebx, %ebx
	cmpl	%esi, (%rdi)
	je	LBB0_5
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_mlxsw_sp_port_dcb_app_update_qpts
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movb	%r13b, %r12b
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mlxsw_sp_port_dcb_app_update_qrwe
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_mlxsw_sp_port_dcb_app_update_qpts
	jmp	LBB0_5
LBB0_3:
	movl	%r15d, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_QPTS_TRUST_STATE_DSCP,4,2 ## @MLXSW_REG_QPTS_TRUST_STATE_DSCP
	.no_dead_strip	_mlxsw_sp_port_dcb_toggle_trust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_dcb_toggle_trust
_mlxsw_sp_port_dcb_toggle_trust:        ; @mlxsw_sp_port_dcb_toggle_trust
	.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
Lloh0:
	adrp	x8, _MLXSW_REG_QPTS_TRUST_STATE_DSCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_REG_QPTS_TRUST_STATE_DSCP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w22, eq
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	bl	_mlxsw_sp_port_dcb_app_update_qpts
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_mlxsw_sp_port_dcb_app_update_qrwe
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_mlxsw_sp_port_dcb_app_update_qpts
	b	LBB0_6
LBB0_5:
	str	w20, [x19]
LBB0_6:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_QPTS_TRUST_STATE_DSCP,4,2 ; @MLXSW_REG_QPTS_TRUST_STATE_DSCP
	.no_dead_strip	_mlxsw_sp_port_dcb_toggle_trust
.subsections_via_symbols
